|
|
|
@ -106,7 +106,8 @@ |
|
|
|
|
this.orderDetail = null; |
|
|
|
|
this.orderDetail = JSON.parse(params.order); |
|
|
|
|
console.log('this.orderDetail', this.orderDetail); |
|
|
|
|
this.orderPrice = this.orderDetail.orderInfo.settlementAmount*100; |
|
|
|
|
this.orderPrice = Math.round(this.orderDetail.orderInfo.settlementAmount * 100) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onUnload() { |
|
|
|
@ -183,7 +184,7 @@ |
|
|
|
|
}; |
|
|
|
|
printTicket(ob) |
|
|
|
|
.then((ress) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const datas = JSON.stringify(that.orderDetail.orderInfo |
|
|
|
|
.ticketList); |
|
|
|
|
// console.log(data) |
|
|
|
@ -243,7 +244,7 @@ |
|
|
|
|
console.log('支付结果', res) |
|
|
|
|
const data = res.data; |
|
|
|
|
// 打开轮询任务 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (data.status === 0) { |
|
|
|
|
that.createQueryInterval(); |
|
|
|
|
return; |
|
|
|
@ -263,7 +264,7 @@ |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
printTicket(ob) |
|
|
|
|
.then((ress) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const datas = JSON.stringify(that.orderDetail.orderInfo |
|
|
|
|
.ticketList); |
|
|
|
|
console.log('ress',ress) |
|
|
|
@ -278,7 +279,7 @@ |
|
|
|
|
},1000) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
|
// uni.showLoading({ |
|
|
|
|
// title: '支付中...' |
|
|
|
@ -392,7 +393,7 @@ |
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.m-way-item { |
|
|
|
|
width: 49%; |
|
|
|
|
height: 102upx; |
|
|
|
@ -505,4 +506,4 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
</style> |
|
|
|
|