fix: 代客下单优化购物车以及优惠价格展示,修复后付费去结账未生成订单问题

This commit is contained in:
2025-03-14 10:47:19 +08:00
parent 814ca603d7
commit c371df05ce
4 changed files with 195 additions and 169 deletions

View File

@@ -354,7 +354,7 @@ async function createOrder(key) {
loading.close();
}, 1000 * 20);
try {
if (key == "to-pay" && carts.list.length <= 0) {
if (key == "to-pay" && carts.list.length <= 0 && oldOrder.value.id) {
showOrder.value = true;
return;
}