Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
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
pseer
gxpt_wechat
Commits
fa7436f0
Commit
fa7436f0
authored
Nov 14, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
29b1374e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
order.vue
pages/order/order.vue
+18
-4
No files found.
pages/order/order.vue
View file @
fa7436f0
...
...
@@ -276,8 +276,11 @@
</view>
<view
class=
"flex-between price use-coupon-box"
>
<text
class=
"text-black text-left"
>
{{
useCouponList
[
selectCouponIndex
].
couponType
==
2
?
'团购券'
:
'优惠券'
}}
</text>
<view
class=
"flex-row-center"
>
<text
class=
"text-black text-left"
>
{{
useCouponList
[
selectCouponIndex
].
couponType
==
2
?
'团购券'
:
'优惠券'
}}
</text>
<text
v-if=
"couponExpireTip && selectCouponIndex
<
0
"
class=
"text-red"
>
(有即将过期券待使用)
</text>
</view>
<view
class=
"flex-1 flex-row"
@
tap=
"onNavToSelectCoupon"
>
<text
class=
""
:class=
"useCouponList.length?'text-pink':'text-gray'"
>
{{
useCouponList
.
length
&&
selectCouponIndex
>=
0
?
useCouponList
[
selectCouponIndex
].
name
:
useCouponList
.
length
?
'请选择'
:
'暂无可用'
}}
</text>
...
...
@@ -658,7 +661,8 @@
name
:
'次卡'
},
submitBtnStatus
:
false
,
showMorePayWay
:
true
showMorePayWay
:
true
,
couponExpireTip
:
false
,
//是否进行优惠券过期提醒
};
},
filters
:
{
...
...
@@ -1331,10 +1335,20 @@
packageId
:
this
.
modeIndex2
>=
0
?
this
.
packageMode
[
this
.
modeIndex2
].
id
:
this
.
modeIndex
>=
0
&&
this
.
roomLabelList
.
length
&&
this
.
roomLabelList
[
this
.
modeIndex
].
openPack
==
1
?
this
.
roomLabelList
[
this
.
modeIndex
].
packId
:
''
,
roomLabelId
:
this
.
modeIndex
>=
0
?
this
.
roomLabelList
[
this
.
modeIndex
].
id
:
''
}).
then
(
res
=>
{
this
.
couponExpireTip
=
false
;
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
&&
res
.
data
.
data
.
length
)
{
this
.
useCouponList
=
res
.
data
.
data
;
let
i
=
this
.
useCouponList
.
findIndex
(
item
=>
item
.
isAvailable
===
0
)
let
i
=
this
.
useCouponList
.
findIndex
(
item
=>
{
if
(
item
.
isAvailable
===
0
){
if
(
moment
(
item
.
endDate
).
valueOf
()
-
moment
().
valueOf
()
<
7
*
24
*
3600
*
1000
){
this
.
couponExpireTip
=
true
}
}
return
item
.
isAvailable
===
0
})
this
.
selectCouponIndex
=
i
>=
0
?
i
:
-
1
;
}
else
{
this
.
selectCouponIndex
=
-
1
;
...
...
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