Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
e8fb8612
Commit
e8fb8612
authored
Jan 20, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化样式
parent
f175a236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
23 deletions
+21
-23
index.vue
pages/coupon/index/index.vue
+21
-23
No files found.
pages/coupon/index/index.vue
View file @
e8fb8612
...
...
@@ -4,7 +4,7 @@
<view
class=
"couponHeader"
>
<view
class=
"couponHeadLeft"
>
<view
class=
"couponHeadLText"
@
click
.
stop=
"CouponsUseScopeShow=!CouponsUseScopeShow"
>
<
text
class=
"couponHeadLTextL"
>
{{
CouponsUseScopeName
}}
</text
>
<
view
class=
"couponHeadLTextL"
>
{{
CouponsUseScopeName
}}
</view
>
<view>
<u-icon
:name=
"!CouponsUseScopeShow?'arrow-down':'arrow-up'"
size=
"24"
></u-icon>
</view>
...
...
@@ -29,13 +29,7 @@
<view
v-if=
"couponDataList.length > 0"
style=
" height: calc(100vh - 50px); width: calc(100vw); overflow: hidden;padding-bottom: 50px;"
>
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }">
<view
class=
"couponList"
>
<view
class=
"couponListBox"
:class=
"
{
'active0': x.couponsUseScope==-1,'active1': x.couponsUseScope==0,
'active2': x.couponsUseScope==1,'active3': x.couponsUseScope==2,
'active4': x.couponsUseScope==3,'active5': x.couponsUseScope==4,
'active6': x.couponsUseScope==5,'active7': x.couponsUseScope==6,
'active8': x.couponsUseScope==7,
}"
<view
class=
"couponListBox"
:class=
"[x.couponsUseScope>=0?'active'+x.couponsUseScope:'active0']"
v-for=
"(x, i) in couponDataList"
:key=
"i"
>
<view
class=
"item"
>
<view
:style=
"
{'background-image':`url(${x.backGroubd}) `}" class="couponItemLeft">
...
...
@@ -290,18 +284,18 @@
arrList
(
res
.
data
.
pageData
)
this
.
couponDataList
=
res
.
data
.
pageData
;
this
.
couponDataList
.
forEach
(
x
=>
{
if
(
x
.
couponsUseScope
<=
7
){
if
(
x
.
couponsUseScope
==
-
1
)
x
.
backGroubd
=
this
.
lineImgs
[
0
]
if
(
x
.
couponsUseScope
==
0
)
x
.
backGroubd
=
this
.
lineImgs
[
1
]
if
(
x
.
couponsUseScope
==
1
)
x
.
backGroubd
=
this
.
lineImgs
[
2
]
if
(
x
.
couponsUseScope
==
2
)
x
.
backGroubd
=
this
.
lineImgs
[
3
]
if
(
x
.
couponsUseScope
==
3
)
x
.
backGroubd
=
this
.
lineImgs
[
4
]
if
(
x
.
couponsUseScope
==
4
)
x
.
backGroubd
=
this
.
lineImgs
[
5
]
if
(
x
.
couponsUseScope
==
5
)
x
.
backGroubd
=
this
.
lineImgs
[
6
]
if
(
x
.
couponsUseScope
==
6
)
x
.
backGroubd
=
this
.
lineImgs
[
7
]
if
(
x
.
couponsUseScope
==
7
)
x
.
backGroubd
=
this
.
lineImgs
[
8
]
if
(
x
.
couponsUseScope
<=
8
){
if
(
x
.
couponsUseScope
==
0
)
x
.
backGroubd
=
this
.
lineImgs
[
0
]
if
(
x
.
couponsUseScope
==
1
)
x
.
backGroubd
=
this
.
lineImgs
[
1
]
if
(
x
.
couponsUseScope
==
2
)
x
.
backGroubd
=
this
.
lineImgs
[
2
]
if
(
x
.
couponsUseScope
==
3
)
x
.
backGroubd
=
this
.
lineImgs
[
3
]
if
(
x
.
couponsUseScope
==
4
)
x
.
backGroubd
=
this
.
lineImgs
[
4
]
if
(
x
.
couponsUseScope
==
5
)
x
.
backGroubd
=
this
.
lineImgs
[
5
]
if
(
x
.
couponsUseScope
==
6
)
x
.
backGroubd
=
this
.
lineImgs
[
6
]
if
(
x
.
couponsUseScope
==
7
)
x
.
backGroubd
=
this
.
lineImgs
[
7
]
if
(
x
.
couponsUseScope
==
8
)
x
.
backGroubd
=
this
.
lineImgs
[
8
]
}
else
{
if
(
x
.
couponsUseScope
==-
1
)
x
.
backGroubd
=
this
.
lineImgs
[
0
]
x
.
backGroubd
=
this
.
lineImgs
[
0
]
}
})
...
...
@@ -513,20 +507,24 @@
.couponHeadLeft
{
flex-shrink
:
0
;
border-right
:
1
rpx
solid
rgba
(
207
,
207
,
207
,
.4
);
padding-right
:
3
rpx
;
}
.couponHeadLText
{
width
:
210
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
padding-left
:
43
rpx
;
border-right
:
1
rpx
solid
rgba
(
207
,
207
,
207
,
.4
);
}
.couponHeadLTextL
{
//
margin-right
:
42
rpx
;
display
:
inline-block
;
width
:
120
rpx
;
font-size
:
28
rpx
;
word-spacing
:
normal
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.couponHeadLText
view
{
...
...
@@ -557,7 +555,7 @@
.couponHeadRight
text
{
display
:
inline-block
;
padding
:
0
31
rpx
;
padding
:
0
27
rpx
;
font-size
:
28
rpx
;
white-space
:
nowrap
;
}
...
...
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