|
|
@ -105,6 +105,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
onUnload() { |
|
|
|
onUnload() { |
|
|
|
// this.cancelOrder(); |
|
|
|
// this.cancelOrder(); |
|
|
|
|
|
|
|
this.clearQueryInterval() |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
errClass() { |
|
|
|
errClass() { |
|
|
@ -132,6 +133,7 @@ |
|
|
|
cancelOrder(that.orderDetail.orderInfo.orderNumber) |
|
|
|
cancelOrder(that.orderDetail.orderInfo.orderNumber) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
uni.hideLoading(); |
|
|
|
uni.hideLoading(); |
|
|
|
|
|
|
|
this.clearQueryInterval() |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
icon: 'none', |
|
|
|
icon: 'none', |
|
|
|
title: '已取消', |
|
|
|
title: '已取消', |
|
|
@ -160,6 +162,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
this.interval = setInterval(() => { |
|
|
|
this.interval = setInterval(() => { |
|
|
|
getOrder(that.orderDetail.orderInfo.belongingPayOrderId).then((response) => { |
|
|
|
getOrder(that.orderDetail.orderInfo.belongingPayOrderId).then((response) => { |
|
|
|
|
|
|
|
console.log('response',response) |
|
|
|
// 已支付 |
|
|
|
// 已支付 |
|
|
|
if (response.data.status === 10) { |
|
|
|
if (response.data.status === 10) { |
|
|
|
that.clearQueryInterval(); |
|
|
|
that.clearQueryInterval(); |
|
|
@ -174,6 +177,7 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
printTicket(ob) |
|
|
|
printTicket(ob) |
|
|
|
.then((ress) => { |
|
|
|
.then((ress) => { |
|
|
|
|
|
|
|
|
|
|
|
const datas = JSON.stringify(that.orderDetail.orderInfo |
|
|
|
const datas = JSON.stringify(that.orderDetail.orderInfo |
|
|
|
.ticketList); |
|
|
|
.ticketList); |
|
|
|
// console.log(data) |
|
|
|
// console.log(data) |
|
|
@ -224,7 +228,6 @@ |
|
|
|
id: that.orderDetail.orderInfo.belongingPayOrderId, |
|
|
|
id: that.orderDetail.orderInfo.belongingPayOrderId, |
|
|
|
returnUrl: '' |
|
|
|
returnUrl: '' |
|
|
|
}; |
|
|
|
}; |
|
|
|
debugger |
|
|
|
|
|
|
|
submitOrder(obj).then((res) => { |
|
|
|
submitOrder(obj).then((res) => { |
|
|
|
console.log('支付结果', res) |
|
|
|
console.log('支付结果', res) |
|
|
|
const data = res.data; |
|
|
|
const data = res.data; |
|
|
@ -235,7 +238,7 @@ |
|
|
|
title: '支付中...', |
|
|
|
title: '支付中...', |
|
|
|
mask: true |
|
|
|
mask: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.createQueryInterval(); |
|
|
|
that.createQueryInterval(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// that.clearQueryInterval(); |
|
|
|
// that.clearQueryInterval(); |
|
|
@ -314,10 +317,12 @@ |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
cancelOrder(that.orderDetail.orderInfo.orderNumber) |
|
|
|
cancelOrder(that.orderDetail.orderInfo.orderNumber) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
|
|
|
|
this.clearQueryInterval() |
|
|
|
console.log(res); |
|
|
|
console.log(res); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
.catch((err) => { |
|
|
|
console.log(err); |
|
|
|
console.log(err); |
|
|
|
|
|
|
|
this.clearQueryInterval() |
|
|
|
}); |
|
|
|
}); |
|
|
|
uni.navigateBack({ |
|
|
|
uni.navigateBack({ |
|
|
|
delta: 1 |
|
|
|
delta: 1 |
|
|
|