Commit 0f007bcb authored by qipeng's avatar qipeng

BUG修改

新增退票按钮
parent d7faf185
...@@ -12,13 +12,13 @@ export default { ...@@ -12,13 +12,13 @@ export default {
} }
}, },
onLoad(option) { onLoad(option) {
let= option.orderId||'' let orderId= option.orderId||''
let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除 let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync('token') let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId') let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId') let pdUserId=uni.getStorageSync('userId')
let ifyukuaiCode=option.ifyukuaiCode||''//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程 let ifyukuaiCode=option.ifyukuaiCode||''//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
this.outUrl='https://wx.pangdly.com/#/applyAfterSales?id='+orderId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId+'&ifyukuaiCode='+ifyukuaiCode+'&enterpriseWechat='+enterpriseWechat this.outUrl='https://wx.pangdly.com/#/applyAfterSales?id='+orderId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId+'&ifyukuaiCode='+ifyukuaiCode
}, },
methods: { methods: {
} }
......
...@@ -215,12 +215,10 @@ ...@@ -215,12 +215,10 @@
</template> </template>
<template v-else-if="orderInfo.isRefund==2">随时可退</template> <template v-else-if="orderInfo.isRefund==2">随时可退</template>
<template v-if="ticketStatus"> <template v-if="ticketStatus">
<router-link class="list-btnRefund" :to="'/applyAfterSales?id='+orderInfo.id" <view class="list-btnRefund" v-if="orderInfo.orderStatus==2&&orderInfo.isRefund!=0&&ticketStatus==0" @click="refundJump(orderInfo.id)">退款/售后</view>
v-if="orderInfo.orderStatus==2&&orderInfo.isRefund!=0&&ticketStatus==0">退款/售后</router-link>
</template> </template>
<template v-else> <template v-else>
<router-link class="list-btnRefund" :to="'/applyAfterSales?id='+orderInfo.id" <view class="list-btnRefund" v-if="orderInfo.orderStatus==2&&orderInfo.isRefund!=0" @click="refundJump(orderInfo.id)">退款/售后</view>
v-if="orderInfo.orderStatus==2&&orderInfo.isRefund!=0">退款/售后</router-link>
</template> </template>
</view> </view>
</view> </view>
...@@ -436,6 +434,7 @@ ...@@ -436,6 +434,7 @@
Brightness:'',//屏幕亮度 Brightness:'',//屏幕亮度
qrCodeType:false,//是否是多个二维码 qrCodeType:false,//是否是多个二维码
btnRefundType:false,//是否可退款 btnRefundType:false,//是否可退款
ifyukuaiCode:'',
} }
}, },
onShow() { onShow() {
...@@ -459,6 +458,7 @@ ...@@ -459,6 +458,7 @@
}, },
onLoad(option) { onLoad(option) {
this.id = option.orderId this.id = option.orderId
this.ifyukuaiCode = option.ifyukuaiCode
//this.id = "z00167956572219584dc15634b62cf75" //this.id = "z00167956572219584dc15634b62cf75"
//this.openId = uni.getStorageSync("openid") //openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ //this.openId = uni.getStorageSync("openid") //openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
this.openId = "oh2UV1lyYABHMZ1rMlgjhVHyyYDQ" this.openId = "oh2UV1lyYABHMZ1rMlgjhVHyyYDQ"
...@@ -485,6 +485,9 @@ ...@@ -485,6 +485,9 @@
if(res.code=="00"){ if(res.code=="00"){
this.orderInfo = res.data this.orderInfo = res.data
this.orderExtendList = res.data.orderExtendList this.orderExtendList = res.data.orderExtendList
if(this.orderInfo.orderType==1){
this.orderTypeNum =0
}
if(this.orderInfo.orderTicketDetailList&&this.orderInfo.orderTicketDetailList.length>0){ if(this.orderInfo.orderTicketDetailList&&this.orderInfo.orderTicketDetailList.length>0){
this.verifyCode = this.orderInfo.orderTicketDetailList[0].verifyCode this.verifyCode = this.orderInfo.orderTicketDetailList[0].verifyCode
this.ticketStatus = this.orderInfo.orderTicketDetailList[0].ticketStatus this.ticketStatus = this.orderInfo.orderTicketDetailList[0].ticketStatus
...@@ -781,6 +784,11 @@ ...@@ -781,6 +784,11 @@
this.countTime(timer) this.countTime(timer)
},1000) },1000)
}, },
refundJump(id){//-------------------景区跳转
uni.reLaunch({
url: '/pages/my/order/applyAfterSales/applyAfterSales?orderId='+id+'&ifyukuaiCode='+this.ifyukuaiCode
})
},
} }
} }
</script> </script>
...@@ -837,9 +845,10 @@ ...@@ -837,9 +845,10 @@
.order-allType { .order-allType {
width: 710rpx; width: 710rpx;
background-color: #fff; background-color: #fff;
box-shadow: 0rpx 0rpx 16rpx 2rpx rgba(0, 0, 0, 0.08); box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(0, 0, 0, 0.04);
border-radius: 16rpx 16rpx 16rpx 16rpx; border-radius: 16rpx 16rpx 16rpx 16rpx;
margin: 0 auto 16rpx auto; margin: 0 auto 16rpx auto;
overflow: hidden;
} }
.order-allType .alltype-title { .order-allType .alltype-title {
...@@ -848,7 +857,7 @@ ...@@ -848,7 +857,7 @@
align-items: center; align-items: center;
height: 92rpx; height: 92rpx;
padding: 24rpx 24rpx 24rpx 24rpx; padding: 24rpx 24rpx 24rpx 24rpx;
box-shadow: 0rpx 2rpx 0rpx 2rpx rgba(0, 0, 0, 0.08); box-shadow: 0rpx 2rpx 0rpx 2rpx rgba(0, 0, 0, 0.04);
position: relative; position: relative;
} }
......
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