|
@@ -190,7 +190,7 @@ export default defineComponent({
|
|
// if (this.orderPrice === 0 && orderStatus.orderObject.orderType) {
|
|
// if (this.orderPrice === 0 && orderStatus.orderObject.orderType) {
|
|
// this.loading = true
|
|
// this.loading = true
|
|
// this.onSubmit()
|
|
// this.onSubmit()
|
|
- // }
|
|
|
|
|
|
+ // }
|
|
this.dataLoading = false
|
|
this.dataLoading = false
|
|
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -401,7 +401,7 @@ export default defineComponent({
|
|
} else {
|
|
} else {
|
|
this.paymentStatus = true
|
|
this.paymentStatus = true
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -496,7 +496,7 @@ export default defineComponent({
|
|
orderStatus.orderObject.orderNo = result?.orderNo
|
|
orderStatus.orderObject.orderNo = result?.orderNo
|
|
this.orderInfo = result
|
|
this.orderInfo = result
|
|
this.orderNo = result.orderNo
|
|
this.orderNo = result.orderNo
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
// console.log(orderStatus.orderObject, orderStatus.orderObject.paymentConfig, '111')
|
|
// console.log(orderStatus.orderObject, orderStatus.orderObject.paymentConfig, '111')
|
|
this.paymentStatus = true
|
|
this.paymentStatus = true
|
|
@@ -562,7 +562,7 @@ export default defineComponent({
|
|
for(let i in tempPrice) {
|
|
for(let i in tempPrice) {
|
|
tempAllAmount += tempPrice[i]
|
|
tempAllAmount += tempPrice[i]
|
|
}
|
|
}
|
|
- // 判断 通用券的金额是否大于订单的金额
|
|
|
|
|
|
+ // 判断 通用券的金额是否大于订单的金额
|
|
if(universalCount >= tempAllAmount) {
|
|
if(universalCount >= tempAllAmount) {
|
|
universalCount = tempAllAmount
|
|
universalCount = tempAllAmount
|
|
}
|
|
}
|
|
@@ -594,7 +594,7 @@ export default defineComponent({
|
|
orderNo: config.merOrderNo,
|
|
orderNo: config.merOrderNo,
|
|
userId: config.userId
|
|
userId: config.userId
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
orderStatus.orderObject.paymentConfig.paymentConfig.paymentChannel = val.pay_channel
|
|
orderStatus.orderObject.paymentConfig.paymentConfig.paymentChannel = val.pay_channel
|
|
|
|
|
|
console.log(params, 'params ---', config)
|
|
console.log(params, 'params ---', config)
|
|
@@ -602,7 +602,7 @@ export default defineComponent({
|
|
window.location.href =
|
|
window.location.href =
|
|
getHttpOrigin() + state.payBackPath + '#/payResult?' + params
|
|
getHttpOrigin() + state.payBackPath + '#/payResult?' + params
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
|
|
+
|
|
this.qrCodeUrl =
|
|
this.qrCodeUrl =
|
|
getHttpOrigin() + state.payBackPath + '#/payDefine?' + params
|
|
getHttpOrigin() + state.payBackPath + '#/payDefine?' + params
|
|
this.showQrcode = true
|
|
this.showQrcode = true
|
|
@@ -915,9 +915,8 @@ export default defineComponent({
|
|
) : (
|
|
) : (
|
|
''
|
|
''
|
|
)}
|
|
)}
|
|
-
|
|
|
|
- {/* 优惠券使用 */}
|
|
|
|
- {!this.dataLoading && (
|
|
|
|
|
|
+ {/* 优惠券使用 如果有订单号且使用了优惠券 ,没有使用则不显示 */}
|
|
|
|
+ {(!this.dataLoading && (orderStatus.orderObject.orderNo && orderStatus.orderObject.discountPrice > 0 || !orderStatus.orderObject.orderNo)) && (
|
|
<UseCoupon
|
|
<UseCoupon
|
|
ref="useCouponRef"
|
|
ref="useCouponRef"
|
|
couponId={orderStatus.orderObject.couponId}
|
|
couponId={orderStatus.orderObject.couponId}
|