|
@@ -300,7 +300,8 @@ export default defineComponent({
|
|
|
} else {
|
|
|
this.orderInfo = orderStatus.orderObject || {}
|
|
|
this.orderNo = orderStatus.orderObject.orderNo
|
|
|
- const paymentChannel = this.orderInfo.paymentConfig.paymentChannel
|
|
|
+ const paymentChannel = this.orderInfo.paymentConfig.paymentConfig.paymentChannel
|
|
|
+ console.log(this.orderInfo.paymentConfig, 'this.orderInfo.paymentConfig')
|
|
|
// 判断是否为原生支付
|
|
|
if (
|
|
|
this.orderInfo.paymentVendor?.indexOf('wxpay') > -1 ||
|
|
@@ -472,7 +473,8 @@ export default defineComponent({
|
|
|
},
|
|
|
onConfirm(val: any) {
|
|
|
// debugger
|
|
|
- const config: any = this.orderInfo.paymentConfig || {}
|
|
|
+ const config: any = this.orderInfo.paymentConfig.paymentConfig || {}
|
|
|
+ console.log(config, '1212')
|
|
|
this.pay_channel = val.pay_channel
|
|
|
const params = qs.stringify({
|
|
|
pay_channel: val.pay_channel,
|
|
@@ -485,10 +487,13 @@ export default defineComponent({
|
|
|
userId: config.userId
|
|
|
})
|
|
|
orderStatus.orderObject.paymentConfig.paymentChannel = val.pay_channel
|
|
|
+
|
|
|
+ console.log(params, 'params ---')
|
|
|
if (val.payCode === 'payResult') {
|
|
|
window.location.href =
|
|
|
window.location.origin + state.payBackPath + '#/payResult?' + params
|
|
|
} else {
|
|
|
+
|
|
|
this.qrCodeUrl =
|
|
|
window.location.origin + state.payBackPath + '#/payDefine?' + params
|
|
|
this.showQrcode = true
|
|
@@ -574,7 +579,6 @@ export default defineComponent({
|
|
|
item={item}
|
|
|
disabled={this.disabledCoupon}
|
|
|
onPriceChange={(price: number) => {
|
|
|
-
|
|
|
// 畅学卡变更状态时需要重新选择优惠券
|
|
|
orderStatus.orderObject.couponId = ''
|
|
|
orderStatus.orderObject.couponDiscountPrice = 0
|
|
@@ -583,7 +587,6 @@ export default defineComponent({
|
|
|
const lastAmount = Number(
|
|
|
numberToTwoUp(
|
|
|
Number(this.orderAmount) -
|
|
|
- Number(item.discountPrice) -
|
|
|
Number(orderStatus.orderObject.couponDiscountPrice)
|
|
|
)
|
|
|
)
|