Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-lottery
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9783b6ef
authored
Nov 03, 2022
by
Lays-lzq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 更改滚动条布局
parent
3aefc409
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
19 deletions
+26
-19
components/Lottery/Timing/Rewards.vue
+23
-17
components/Lottery/Timing/RulePopup.vue
+3
-2
No files found.
components/Lottery/Timing/Rewards.vue
View file @
9783b6ef
<
template
>
<div
class=
"main"
:style=
"
{
height: this.$route.path === '/mini/index' ? '65.5vh' : lotteryInfo.showType === 7 ? '46.5vh' : '37.5vh'
}"
>
<div
class=
"intro"
>
<div
class=
"intro__title"
>
活动介绍
</div>
<div
class=
"intro__detail"
>
{{
lotteryInfo
.
intro
}}
</div>
</div>
<div
class=
"rule"
>
<div
class=
"rule__sub"
>
本场活动奖品:
</div>
<div
class=
"intro__rewards"
>
<div
v-for=
"item in lotteryInfo.prizeConfigs"
:key=
"item.id"
class=
"intro__rewards-item"
>
<img
v-if=
"item.icon"
:src=
"item.icon"
alt=
""
/>
<img
v-else
src=
"./img/gift.png"
alt=
""
/>
<div>
{{
item
.
name
}}
</div>
<div
class=
"main"
>
<div
:style=
"
{
height: this.$route.path === '/mini/index' ? '65.5vh' : lotteryInfo.showType === 7 ? '46.5vh' : '37.5vh'
}"
>
<div
class=
"intro"
>
<div
class=
"intro__title"
>
活动介绍
</div>
<div
class=
"intro__detail"
>
{{
lotteryInfo
.
intro
}}
</div>
</div>
<div
class=
"rule"
>
<div
class=
"rule__sub"
>
本场活动奖品:
</div>
<div
class=
"intro__rewards"
>
<div
v-for=
"item in lotteryInfo.prizeConfigs"
:key=
"item.id"
class=
"intro__rewards-item"
>
<img
v-if=
"item.icon"
:src=
"item.icon"
alt=
""
/>
<img
v-else
src=
"./img/gift.png"
alt=
""
/>
<div>
{{
item
.
name
}}
</div>
</div>
</div>
</div>
</div>
...
...
@@ -45,6 +46,10 @@ export default {
</
script
>
<
style
lang=
"less"
scoped
>
.main
{
width
:
100%
;
height
:
100%
;
padding
:
0
13px
;
overflow-x
:
scroll
;
display
:
flex
;
flex-direction
:
column
;
.intro
{
...
...
@@ -107,6 +112,7 @@ export default {
img
{
width
:
48px
;
height
:
48px
;
border-radius
:
2px
;
}
div
{
width
:
100%
;
...
...
components/Lottery/Timing/RulePopup.vue
View file @
9783b6ef
...
...
@@ -67,10 +67,11 @@ export default {
height
:
calc
(
100%
-
46px
);
&__main
{
width
:
100%
;
height
:
100%
;
border-radius
:
6px
;
padding
:
13px
;
position
:
relative
;
padding-bottom
:
13px
;
padding-top
:
38px
;
position
:
relative
;
.main-link
{
width
:
24px
;
height
:
74px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment