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

显示问题处理

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