Commit 32dcbacb authored by qipeng's avatar qipeng

订单详情 判断问题

parent 5cca28db
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment