确认订单页面,商品列表清空处理

This commit is contained in:
GaoHao 2024-08-03 16:36:07 +08:00
parent 1dd800b854
commit 5fb9871900
1 changed files with 7 additions and 3 deletions

View File

@ -250,9 +250,13 @@
break;
case 'addCart':
console.log("商品列表===",msg)
if (this.listinfoid) {
this.orderorderInfo()
} else {
this.listinfo.details = msg.data;
this.listinfo.payAmount = msg.amount;
}
break;
case 'order':
uni.navigateBack()
@ -339,7 +343,7 @@
})
if (res.code == 0) {
console.log(res)
// this.listinfo = res.data
this.listinfo = res.data
if (i == 1) { //
this.showpopupclickdd()
}