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
a7ccd44b
Commit
a7ccd44b
authored
Jan 21, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化券
parent
8d549665
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
6 deletions
+46
-6
index.vue
pages/coupon/index/index.vue
+46
-6
No files found.
pages/coupon/index/index.vue
View file @
a7ccd44b
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<view
v-if=
"couponDataList.length > 0"
style=
" height: calc(100vh - 50px); width: calc(100vw); overflow: hidden;padding-bottom: 50px;"
>
<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%' }">
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }">
<view
class=
"couponList"
>
<view
class=
"couponList"
>
<view
class=
"couponListBox"
:class=
"[x.couponsUseScope>0?'active'+(x.couponsUseScope-1):'
active0
']"
<view
class=
"couponListBox"
:class=
"[x.couponsUseScope>0?'active'+(x.couponsUseScope-1):'']"
v-for=
"(x, i) in couponDataList"
:key=
"i"
>
v-for=
"(x, i) in couponDataList"
:key=
"i"
>
<view
class=
"item"
>
<view
class=
"item"
>
<view
:style=
"
{'background-image':`url(${x.backGroubd}) `}" class="couponItemLeft">
<view
:style=
"
{'background-image':`url(${x.backGroubd}) `}" class="couponItemLeft">
...
@@ -294,7 +294,6 @@
...
@@ -294,7 +294,6 @@
if
(
x
.
couponsUseScope
==
9
)
x
.
backGroubd
=
this
.
lineImgs
[
8
]
if
(
x
.
couponsUseScope
==
9
)
x
.
backGroubd
=
this
.
lineImgs
[
8
]
if
(
x
.
couponsUseScope
==
10
)
x
.
backGroubd
=
this
.
lineImgs
[
0
]
if
(
x
.
couponsUseScope
==
10
)
x
.
backGroubd
=
this
.
lineImgs
[
0
]
if
(
x
.
couponsUseScope
==
11
)
x
.
backGroubd
=
this
.
lineImgs
[
1
]
if
(
x
.
couponsUseScope
==
11
)
x
.
backGroubd
=
this
.
lineImgs
[
1
]
// if(x.couponsUseScope==this.getLineImgs()+1) x.backGroubd = this.lineImgs[this.getLineImgs()]
})
})
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
)
this
.
status
=
'nomore'
if
(
this
.
page_count
==
1
)
this
.
status
=
'nomore'
...
@@ -629,10 +628,6 @@
...
@@ -629,10 +628,6 @@
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-weight
:
100
;
font-weight
:
100
;
}
}
.couponListBox
.nameType
{
color
:
rgba
(
29
,
152
,
144
,
1
);
background
:
rgba
(
97
,
220
,
212
,
.5
);
}
.couponListBox.active0
.nameType
{
.couponListBox.active0
.nameType
{
color
:
rgba
(
29
,
152
,
144
,
1
);
color
:
rgba
(
29
,
152
,
144
,
1
);
background
:
rgba
(
97
,
220
,
212
,
.5
);
background
:
rgba
(
97
,
220
,
212
,
.5
);
...
@@ -678,6 +673,31 @@
...
@@ -678,6 +673,31 @@
background
:
#e1e1e1
;
background
:
#e1e1e1
;
}
}
.couponListBox.active9
.nameType
{
color
:
rgba
(
29
,
152
,
144
,
1
);
background
:
rgba
(
97
,
220
,
212
,
.5
);
}
.couponListBox.active10
.nameType
{
color
:
rgba
(
212
,
84
,
42
,
1
);
background
:
rgba
(
253
,
127
,
86
,
.5
);
}
.couponListBox.active11
.nameType
{
color
:
rgba
(
60
,
103
,
160
,
1
);
background
:
rgba
(
106
,
168
,
249
,
.5
);
}
.couponListBox.active12
.nameType
{
color
:
rgba
(
204
,
60
,
110
,
1
);
background
:
rgba
(
243
,
108
,
155
,
.5
);
}
.couponListBox.active13
.nameType
{
color
:
rgba
(
40
,
132
,
163
,
1
);
background
:
rgba
(
24
,
184
,
237
,
.5
);
}
.coupondLineTb
{
.coupondLineTb
{
position
:
relative
;
position
:
relative
;
}
}
...
@@ -747,4 +767,24 @@
...
@@ -747,4 +767,24 @@
.couponListBox.active8
.coupondLineGo
{
.couponListBox.active8
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#c6c6c6
,
#e1e1e1
);
background
:
linear-gradient
(
133deg
,
#c6c6c6
,
#e1e1e1
);
}
}
.couponListBox.active9
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#26C6A5
,
#61DCD4
);
}
.couponListBox.active10
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#FD7F56
,
#FFC291
);
}
.couponListBox.active11
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#3C67A0
,
#88ADDD
);
}
.couponListBox.active12
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#F36C9B
,
#FEA7C6
);
}
.couponListBox.active13
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#18B8ED
,
#89D6EF
);
}
</
style
>
</
style
>
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