修复后付费问题
This commit is contained in:
@@ -783,7 +783,21 @@
|
||||
|
||||
} else {
|
||||
//后付
|
||||
|
||||
|
||||
// 购物车有数据
|
||||
if (!cartStore.isEmpty) {
|
||||
usePoints=cartStore.orderCostSummary.pointUsed
|
||||
const res = await createOrder()
|
||||
//历史订单数据
|
||||
const res1 = await APIgetOrderById({
|
||||
orderId: res.id
|
||||
})
|
||||
console.log('历史订单数据',res1);
|
||||
orderRemarker.value=res1.remark;
|
||||
cartStore.setOldOrder(res1)
|
||||
goToPay()
|
||||
return
|
||||
}
|
||||
// 先调用历史订单
|
||||
let APIhistoryOrderres = await APIhistoryOrder({
|
||||
tableCode: listinfo.tableCode
|
||||
|
||||
Reference in New Issue
Block a user