修改无台桌时也获取一次购物车
This commit is contained in:
@@ -482,16 +482,20 @@
|
|||||||
return isShow;
|
return isShow;
|
||||||
});
|
});
|
||||||
$originGoods = goods
|
$originGoods = goods
|
||||||
if (!data.table.tableId) {
|
// if (!data.table.tableId) {
|
||||||
//无桌台
|
// //无桌台
|
||||||
|
|
||||||
setTabBar(category, goods, [])
|
// setTabBar(category, goods, [])
|
||||||
return
|
// return
|
||||||
|
// }
|
||||||
|
// const {
|
||||||
|
// masterId
|
||||||
|
// } = await getMasterId()
|
||||||
|
// data.masterId = masterId
|
||||||
|
if(data.table.tableId){
|
||||||
|
const masterRes = await getMasterId()
|
||||||
|
data.masterId = masterRes.masterId
|
||||||
}
|
}
|
||||||
const {
|
|
||||||
masterId
|
|
||||||
} = await getMasterId()
|
|
||||||
data.masterId = masterId
|
|
||||||
const cartRes = await getCart()
|
const cartRes = await getCart()
|
||||||
cars.length = 0
|
cars.length = 0
|
||||||
const cartArr = getNowCart(cartRes.records)
|
const cartArr = getNowCart(cartRes.records)
|
||||||
|
|||||||
Reference in New Issue
Block a user