Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
a7bc68a8
Commit
a7bc68a8
authored
May 10, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加愉快码:ifyukuaiCode 显示判定
parent
992b4b27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
12 deletions
+64
-12
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+64
-12
No files found.
pages/my/order/electronicTicket/electronicTicket.vue
View file @
a7bc68a8
...
@@ -27,7 +27,14 @@
...
@@ -27,7 +27,14 @@
</view>
</view>
<view
class=
"title-label"
>
入园凭证
</view>
<view
class=
"title-label"
>
入园凭证
</view>
</view>
-->
</view>
-->
<view
class=
"certificate-box"
v-if=
"orderInfo.exchangeMode==1||orderInfo.exchangeMode==4||orderInfo.exchangeMode==5"
>
<view
class=
"certificate-box"
v-if=
"ifyukuaiCode!=''&&ifyukuaiCode!=undefined"
>
<view
class=
"box-prompt2"
>
温馨提示
</view>
<!--
<view
class=
"box-prompt2"
>
验证码用于入园游玩时核验使用
</view>
<view
class=
"box-prompt2"
>
注:验证码信息已自动同步至订单所有游玩人渝快码,游玩人直接使用本人渝快码即可入园核验
</view>
-->
<view
class=
"box-prompt2"
>
购票用户直接使用本人渝快码即可入园核验
</view>
<view
class=
"box-promptBtn"
@
click=
"returnMini()"
>
我知道了
</view>
</view>
<view
class=
"certificate-box"
v-else-if=
"orderInfo.exchangeMode==1||orderInfo.exchangeMode==4||orderInfo.exchangeMode==5"
>
<view
class=
"box-verificationCode"
>
验证码:
{{
ticketCode
}}
</view>
<view
class=
"box-verificationCode"
>
验证码:
{{
ticketCode
}}
</view>
<canvas
class=
"box-QRcode"
canvas-id=
"qrcode"
/>
<canvas
class=
"box-QRcode"
canvas-id=
"qrcode"
/>
<view
class=
"progress-box"
v-if=
"qrCodeType==true"
>
<view
class=
"progress-box"
v-if=
"qrCodeType==true"
>
...
@@ -543,17 +550,19 @@
...
@@ -543,17 +550,19 @@
this
.
ticketCode
=
this
.
orderInfo
.
orderTicketDetailList
[
0
].
ticketCode
this
.
ticketCode
=
this
.
orderInfo
.
orderTicketDetailList
[
0
].
ticketCode
}
}
this
.
touristInfo
=
res
.
data
.
orderTouristList
this
.
touristInfo
=
res
.
data
.
orderTouristList
if
(
this
.
orderInfo
.
orderType
==
1
||
this
.
orderInfo
.
orderType
==
3
){
if
(
this
.
ifyukuaiCode
==
''
||
this
.
ifyukuaiCode
==
undefined
){
if
(
this
.
orderInfo
.
subOrderType
!=
4
&&
this
.
orderInfo
.
subOrderType
!=
5
){
if
(
this
.
orderInfo
.
orderType
==
1
||
this
.
orderInfo
.
orderType
==
3
){
this
.
$nextTick
(()
=>
{
if
(
this
.
orderInfo
.
subOrderType
!=
4
&&
this
.
orderInfo
.
subOrderType
!=
5
){
if
(
this
.
orderInfo
.
playDate
.
substr
(
0
,
10
)
==
this
.
$commonjs
.
today
()
&&
this
.
orderInfo
.
exchangeMode
==
4
||
this
.
orderInfo
.
playDate
.
substr
(
0
,
10
)
==
this
.
$commonjs
.
today
()
&&
this
.
orderInfo
.
exchangeMode
==
5
){
this
.
$nextTick
(()
=>
{
this
.
dynamicCode
()
if
(
this
.
orderInfo
.
playDate
.
substr
(
0
,
10
)
==
this
.
$commonjs
.
today
()
&&
this
.
orderInfo
.
exchangeMode
==
4
||
this
.
orderInfo
.
playDate
.
substr
(
0
,
10
)
==
this
.
$commonjs
.
today
()
&&
this
.
orderInfo
.
exchangeMode
==
5
){
this
.
qrCodeType
=
true
this
.
dynamicCode
()
}
else
if
(
this
.
orderInfo
.
exchangeMode
==
1
){
this
.
qrCodeType
=
true
this
.
qecode
()
}
else
if
(
this
.
orderInfo
.
exchangeMode
==
1
){
this
.
qrCodeType
=
false
this
.
qecode
()
}
this
.
qrCodeType
=
false
})
}
})
}
}
}
}
}
if
(
this
.
orderInfo
.
isFetch
==
1
){
//isFetch==1需要排队
if
(
this
.
orderInfo
.
isFetch
==
1
){
//isFetch==1需要排队
...
@@ -855,6 +864,37 @@
...
@@ -855,6 +864,37 @@
url
:
'/pages/my/order/applyAfterSales/applyAfterSales?orderId='
+
id
+
'&ifyukuaiCode='
+
this
.
ifyukuaiCode
url
:
'/pages/my/order/applyAfterSales/applyAfterSales?orderId='
+
id
+
'&ifyukuaiCode='
+
this
.
ifyukuaiCode
})
})
},
},
returnMini
(){
//#ifdef MP-WEIXIN
wx
.
navigateBackMiniProgram
({
extraData
:
{
cqQRCode
:
1
},
fail
(
res
){
uni
.
showToast
({
title
:
"获取失败,请退出后重新进入渝快码小程序获取验证码"
,
icon
:
"none"
,
duration
:
3000
})
}
})
//#endif
//#ifdef MP-ALIPAY
my
.
navigateBackMiniProgram
({
extraData
:{
cqQRCode
:
1
},
fail
:
(
res
)
=>
{
uni
.
showToast
({
title
:
"获取失败,请退出后重新进入渝快码小程序获取验证码"
,
icon
:
"none"
,
duration
:
3000
})
}
})
//#endif
},
}
}
}
}
</
script
>
</
script
>
...
@@ -1151,6 +1191,18 @@
...
@@ -1151,6 +1191,18 @@
line-height
:
40
rpx
;
line-height
:
40
rpx
;
text-align
:
center
;
text-align
:
center
;
margin
:
24
rpx
0
0
0
;
margin
:
24
rpx
0
0
0
;
padding
:
0
24
rpx
}
.order-certificate
.certificate-box
.box-promptBtn
{
width
:
152
rpx
;
height
:
64
rpx
;
border
:
solid
1px
#ccc
;
border-radius
:
8
rpx
;
line-height
:
64
rpx
;
color
:
#333333
;
text-align
:
center
;
box-sizing
:
content-box
;
margin
:
24
rpx
auto
0
auto
;
}
}
/*订单信息*/
/*订单信息*/
...
...
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