修复:

1.代客下单先付费下直接点扫码支付获取支付链接失败
2.修复清空购物车删除因为报错导致购物车清空事变
This commit is contained in:
2024-10-23 16:32:04 +08:00
parent ab1f5bd199
commit 5ea24d76c8
2 changed files with 9 additions and 7 deletions

View File

@@ -1166,7 +1166,7 @@
<return-cart
ref="refReturnCart"
:max="order.selGoods.number"
:max="order.selGoods?order.selGoods.number:1"
@confirm="refReturnCartConfirm"
></return-cart>
</div>
@@ -1856,9 +1856,10 @@ export default {
return;
}
await this.returnCreateOrderData();
this.payBeforeClear();
console.log( this.createOrder.data )
this.order.payType = "scanCode";
this.payTypeItemClick({ payType: "scanCode" });
this.payBeforeClear();
},
async changeOrderUseType(useType) {
if (useType && this.order.list.length) {
@@ -2047,7 +2048,7 @@ export default {
}
if (item.payType == "scanCode") {
//扫码支付
return this.refToggle("refWxScanCode", true);
return this.refToggle("refWxScanCode", true,this.createOrder.data);
}
},
ChangeDiscount(discount) {
@@ -2181,7 +2182,7 @@ export default {
return this.refChooseUserOpen();
}
if (this.order.payType == "scanCode") {
return this.refToggle("refWxScanCode", true);
return this.refToggle("refWxScanCode", true,this.createOrder.data);
}
if (this.order.payType == "deposit") {
return this.refToggle("refScanCode", true);