优化扫码叫号

This commit is contained in:
gyq
2024-06-27 13:42:35 +08:00
parent 89b078daae
commit 105ad4ee52
7 changed files with 41 additions and 13 deletions

View File

@@ -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 () => {

View File

@@ -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);
}