优化扫码叫号
This commit is contained in:
@@ -328,8 +328,18 @@ const onSlideChange = _.debounce(async function (e) {
|
||||
currentGoodsIndex.value = e.activeIndex
|
||||
}, 500)
|
||||
|
||||
// 订单已结算,清楚商品所有数字
|
||||
function clearDot() {
|
||||
goodsList.value.map(item => {
|
||||
item.map(val => {
|
||||
val.orderCount = 0
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
updateData
|
||||
updateData,
|
||||
clearDot
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
|
||||
@@ -368,6 +368,11 @@ async function createCodeAjax(type = "0") {
|
||||
masterId.value = res.code;
|
||||
queryCartAjax();
|
||||
getLocalMemberInfo()
|
||||
|
||||
if (type == 1) {
|
||||
// 结算订单 清楚商品所有红点
|
||||
goodsRef.value.clearDot()
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user