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
8ec8bd21
Commit
8ec8bd21
authored
Jan 16, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/zk123/jz_travel
parents
ae39b0ce
b88fce89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
19 deletions
+37
-19
details.vue
pages/coupon/details/details.vue
+1
-1
index.vue
pages/coupon/index/index.vue
+36
-18
No files found.
pages/coupon/details/details.vue
View file @
8ec8bd21
...
...
@@ -36,7 +36,7 @@
</view>
<view
class=
"cdTiaojianBRight"
>
<view
class=
"cdTiaojianBRTitle"
>
有效期
</view>
<view
class=
"cdTiaojianBRText"
>
{{
g
.
effectDate
}}
-
{{
g
.
expirationDate
}}
</view>
<view
class=
"cdTiaojianBRText"
>
{{
g
.
effectDate
}}
/
{{
g
.
expirationDate
}}
</view>
</view>
</view>
<view
class=
"cdTiaojianB"
>
...
...
pages/coupon/index/index.vue
View file @
8ec8bd21
...
...
@@ -30,11 +30,11 @@
<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.coupons
Type,'active1': ''
,
'active2':
'','active3': ''
,
'active4':
'','active5': ''
,
'active6':
'','active7': ''
,
'active8':
''
,
'active0': x.coupons
UseScope==-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
,
}"
v-for="(x, i) in couponDataList" :key="i">
<view
class=
"item"
>
...
...
@@ -288,7 +288,20 @@
arrList
(
res
.
data
.
pageData
)
this
.
couponDataList
=
res
.
data
.
pageData
;
this
.
couponDataList
.
forEach
(
x
=>
{
x
.
backGroubd
=
this
.
lineImgs
[
0
]
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
]
}
else
{
if
(
x
.
couponsUseScope
==-
1
)
x
.
backGroubd
=
this
.
lineImgs
[
0
]
}
})
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
)
this
.
status
=
'nomore'
...
...
@@ -399,7 +412,7 @@
display
:
flex
;
align-items
:
flex-start
;
background
:
#fff
;
overflow
:
hidden
;
//
overflow
:
hidden
;
}
.couponStyle
.item
.ticket
{
...
...
@@ -613,45 +626,48 @@
font-size
:
24
rpx
;
font-weight
:
100
;
}
.couponListBox
.nameType
{
color
:
rgba
(
29
,
152
,
144
,
1
);
background
:
rgba
(
97
,
220
,
212
,
.5
);
}
.couponListBox.active0
.nameType
{
color
:
rgba
(
29
,
152
,
144
,
1
);
background
:
rgba
(
97
,
220
,
212
,
1
);
background
:
rgba
(
97
,
220
,
212
,
.5
);
}
.couponListBox.active1
.nameType
{
color
:
rgba
(
212
,
84
,
42
,
1
);
background
:
rgba
(
253
,
127
,
86
,
1
);
background
:
rgba
(
253
,
127
,
86
,
.5
);
}
.couponListBox.active2
.nameType
{
color
:
rgba
(
60
,
103
,
160
,
1
);
background
:
rgba
(
106
,
168
,
249
,
1
);
background
:
rgba
(
106
,
168
,
249
,
.5
);
}
.couponListBox.active3
.nameType
{
color
:
rgba
(
204
,
60
,
110
,
1
);
background
:
rgba
(
243
,
108
,
155
,
1
);
background
:
rgba
(
243
,
108
,
155
,
.5
);
}
.couponListBox.active4
.nameType
{
color
:
rgba
(
40
,
132
,
163
,
1
);
background
:
rgba
(
24
,
184
,
237
,
1
);
background
:
rgba
(
24
,
184
,
237
,
.5
);
}
.couponListBox.active5
.nameType
{
color
:
rgba
(
184
,
163
,
19
,
1
);
background
:
rgba
(
233
,
235
,
51
,
1
);
background
:
rgba
(
233
,
235
,
51
,
.5
);
}
.couponListBox.active6
.nameType
{
color
:
rgba
(
186
,
110
,
1
,
1
);
background
:
rgba
(
255
,
150
,
0
,
1
);
background
:
rgba
(
255
,
150
,
0
,
.5
);
}
.couponListBox.active7
.nameType
{
color
:
rgba
(
55
,
143
,
71
,
1
);
background
:
rgba
(
31
,
193
,
62
,
1
);
background
:
rgba
(
31
,
193
,
62
,
.5
);
}
.couponListBox.active8
.nameType
{
...
...
@@ -681,7 +697,7 @@
.coupondLineGo
{
position
:
absolute
;
right
:
0
;
top
:
5
6
rpx
;
top
:
7
6
rpx
;
width
:
114
rpx
;
height
:
44
rpx
;
border-radius
:
12
rpx
;
...
...
@@ -690,7 +706,9 @@
text-align
:
center
;
line-height
:
44
rpx
;
}
.couponListBox
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#26C6A5
,
#61DCD4
);
}
.couponListBox.active0
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#26C6A5
,
#61DCD4
);
}
...
...
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