优化预下单不同店铺扫码逻辑

This commit is contained in:
gyq
2025-12-04 16:13:50 +08:00
parent ca829d7f00
commit 663fb5a7ec
2 changed files with 100 additions and 18 deletions

View File

@@ -80,6 +80,7 @@ const scanCodehandle = (i) => {
// 预点单
function beforehandOrderHandle() {
popupShow.value = false;
let shopUserInfo = uni.cache.get('shopUserInfo');
uni.cache.set('dinersNum', 1);
uni.cache.set('tableCode', shopUserInfo.id);
@@ -90,6 +91,7 @@ function beforehandOrderHandle() {
// 扫码点餐
async function scanOrderHandle() {
popupShow.value = false;
const store = productStore();
await store.scanCodeactions();
}