优化预下单不同店铺扫码逻辑
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user