|
@@ -202,8 +202,9 @@ export default {
|
|
|
createOrder(this.params).then(res => {
|
|
createOrder(this.params).then(res => {
|
|
|
this.$log.warn(this.pageName + '下单成功')
|
|
this.$log.warn(this.pageName + '下单成功')
|
|
|
this.createOrderStatus = 1
|
|
this.createOrderStatus = 1
|
|
|
- this.orderTempInfo = res
|
|
|
|
|
- this.$refs.XSCQrCodeReader.show(this.tickets, this.currentPayChannel)
|
|
|
|
|
|
|
+ this.orderTempInfo = res.data.order || {}
|
|
|
|
|
+ this.payCodeDialogVisible = true
|
|
|
|
|
+ // this.$refs.XSCQrCodeReader.show(this.tickets, this.currentPayChannel)
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
@@ -255,13 +256,14 @@ export default {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.payCodeDialogVisible = false
|
|
this.payCodeDialogVisible = false
|
|
|
- this.createOrder(this.params, true)
|
|
|
|
|
|
|
+ this.submit(this.payCode)
|
|
|
|
|
+ // this.createOrder(this.params, true)
|
|
|
},
|
|
},
|
|
|
createOrder (params, isOnlinePay = false) {
|
|
createOrder (params, isOnlinePay = false) {
|
|
|
- if (this.payType === 'B_SCAN_C_PAY' && !isOnlinePay) {
|
|
|
|
|
- this.payCodeDialogVisible = true
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (this.payType === 'B_SCAN_C_PAY' && !isOnlinePay) {
|
|
|
|
|
+ // this.payCodeDialogVisible = true
|
|
|
|
|
+ // return
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
this.submitDisable = true
|
|
this.submitDisable = true
|
|
|
params.tickets.forEach(ticket => {
|
|
params.tickets.forEach(ticket => {
|
|
@@ -280,6 +282,7 @@ export default {
|
|
|
params.discountDescription = params.tickets.map((item) => item.discountDescription).filter(i => i).join(',')
|
|
params.discountDescription = params.tickets.map((item) => item.discountDescription).filter(i => i).join(',')
|
|
|
params.createOrderRemark = this.createOrderRemark
|
|
params.createOrderRemark = this.createOrderRemark
|
|
|
this.tickets = params.tickets
|
|
this.tickets = params.tickets
|
|
|
|
|
+ // debugger;
|
|
|
|
|
|
|
|
if (this.createOrderStatus === 1) {
|
|
if (this.createOrderStatus === 1) {
|
|
|
handlePay(this.params, this.orderTempInfo, this, () => { })
|
|
handlePay(this.params, this.orderTempInfo, this, () => { })
|