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
32dcbacb
Commit
32dcbacb
authored
Aug 23, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情 判断问题
parent
5cca28db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
4 deletions
+34
-4
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+34
-4
No files found.
pages/my/order/electronicTicket/electronicTicket.vue
View file @
32dcbacb
...
...
@@ -19,7 +19,7 @@
<view
class=
"status-product"
>
{{orderInfo.merchantName}}({{orderInfo.productName}})
</view>
</view>
</view>
<
template
v-if=
"orderInfo.orderType==1&&ticketCode!=null
||orderInfo.orderType==3&&ticketCode!=null
"
>
<
template
v-if=
"orderInfo.orderType==1&&ticketCode!=null
&&orderInfo.orderStatus==2||orderInfo.orderType==1&&ticketCode!=null&&orderInfo.orderStatus==4||orderInfo.orderType==3&&ticketCode!=null&&orderInfo.orderStatus==4||orderInfo.orderType==3&&ticketCode!=null&&orderInfo.orderStatus==2
"
>
<view
class=
"order-certificate order-allType order-positionTop"
>
<!--
<view
class=
"alltype-title"
>
<view
class=
"title-line"
>
...
...
@@ -531,6 +531,7 @@ export default {
visitorIndex
:
''
,
//短信特殊字段
showtip
:
false
,
//领取提示
showUseRule
:
false
,
//使用规则提示
findPageMarketList
:[],
//券信息
}
},
onShow
()
{
...
...
@@ -567,9 +568,8 @@ export default {
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
//this.id = "z00167956572219584dc15634b62cf75"
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
//this.openId =
"oh2UV1lyYABHMZ1rMlgjhVHyyYDQ"
//this.openId =
'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ'
this
.
getDetail
()
},
onUnload
()
{
if
(
this
.
timer1
)
{
...
...
@@ -589,6 +589,34 @@ export default {
})
},
methods
:
{
closeMask
(){
//遮罩关闭
this
.
showtip
=
false
//领取提示
this
.
showUseRule
=
false
//使用规则提示
},
findPageMarketFun
(){
//优惠券
var
userId
=
uni
.
getStorageSync
(
'userId'
)
var
data
=
{
pageCode
:
'orderInfo'
,
marketingStatus
:
1
,
openid
:
this
.
openId
,
//用户Id
userId
:
userId
,
}
this
.
$request
(
'scenic/market/findPageMarket'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
findPageMarketList
=
res
.
data
// showtip: false,//领取提示
// showUseRule: false,//使用规则提示
if
(
this
.
findPageMarketList
.
length
>
0
){
this
.
showtip
=
true
}
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
orderTypeNumFun
(){
if
(
this
.
orderTypeNum
==
0
){
this
.
orderTypeNum
=
1
...
...
@@ -649,6 +677,7 @@ export default {
// clearInterval(timer)
// })
}
//this.findPageMarketFun()
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
...
...
@@ -1464,11 +1493,12 @@ export default {
}
}
.coupon
{
display
:
none
;
display
:none
;
position
:
fixed
;
right
:
-30rpx
;
bottom
:
200rpx
;
width
:
120rpx
;
height
:
120rpx
;
z-index
:
20
;
}
</
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