Commit 4f4a87e8 authored by 潘永坪's avatar 潘永坪

显示问题处理

parent ebb5e922
......@@ -29,15 +29,12 @@ export default {
this.ticketStatus()
let intFun=()=>{ //页面初始化
this.timer = setTimeout(()=>{
if (this.status == '2' || this.status == '4' || this.status == '5') {
return
}
if (this.status == '3') {
if (this.status == '2' ||this.status == '3'|| this.status == '4' || this.status == '5') {
return
}
this.ticketStatus()
intFun()
}, 2000)
}, 3000)
}
intFun()
},
......@@ -57,6 +54,7 @@ export default {
let data = {
orderId: this.orderId
}
this.loadImg=true
this.$request('order/userOrder/getStatusById', data).then((res) => {
if (res.code == '00') {
//如果是组合票,直接跳订单列表页面
......@@ -68,17 +66,15 @@ export default {
return
}
this.status = res.main.orderStatus
this.loadImg=false
if (this.status == '2' || this.status == '4' || this.status == '5') {
//1.跳订单列表,2.订单详情,3.停留该页面显示支付成功(ourPayment页面跳入时,无afterBuyUrl,停留在该页面)
this.title='支付成功!'
this.loadImg=false
uni.reLaunch({
url:this.afterBuyUrl+'?orderId=' + this.orderId+'&ifyukuaiCode='+this.ifyukuaiCode
})
}
if (this.status == '3') {
this.title = '失败...'
this.loadImg = false
}else{
this.title =res.main.errorMessage||'预订失败'
}
} else {
uni.showToast({
......
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