删除部分打印

This commit is contained in:
2025-12-16 15:07:09 +08:00
parent 4a80b829bb
commit 251490e3ab
3 changed files with 34 additions and 9 deletions

View File

@@ -150,6 +150,7 @@
import {
back
} from "@/utils/uniapp.js";
import * as limitTimeDiscountapi from '@/common/api/market/limitTimeDiscount.js';
import {
onLoad,
onUnload
@@ -1096,6 +1097,8 @@
Object.assign(listinfo, res);
getOrderInfoAfterCalcInit(res);
}
const limitTimeDiscountRes=ref(null)
async function init(opt) {
await storeuser.actionsproductqueryProduct();
@@ -1117,6 +1120,17 @@
if (res && typeof res == "object") {
setOrder(res);
}
}else{
const limitRes = await limitTimeDiscountapi.getConfig({
shopId: uni.cache.get('shopId')
});
if (limitRes && typeof limitRes == 'object') {
limitTimeDiscountRes.value = limitRes;
} else {
limitTimeDiscountRes.value = null;
}
}
//获取店铺信息
const shopInfoRes = await APIusershopInfodetail({

View File

@@ -606,7 +606,8 @@
import isBetween from 'dayjs/plugin/isBetween';
import {
APIshopUserInfo,APIusershopInfodetail
APIshopUserInfo,
APIusershopInfodetail
} from "@/common/api/member.js";
dayjs.extend(isBetween);
import {
@@ -1535,7 +1536,7 @@
for (let cart of arr) {
const findItem = cartStore.carts.find(v => v.id == cart.id)
if (findItem&&findItem.is_time_discount != cart.is_time_discount) {
if (findItem && findItem.is_time_discount != cart.is_time_discount) {
result.push({
id: cart.id,
is_time_discount: findItem.is_time_discount
@@ -1683,7 +1684,6 @@
}
if (Message.operate_type == 'time_discount_save') {
cartStore.limitTimeDiscount = Message.data;
console.log('time_discount_save', cartStore.limitTimeDiscount);
}
//除去p 每次返回都回执消息
@@ -2183,6 +2183,17 @@
} else {
await userStore.actionsproductqueryShop(newTableCode);
await userStore.actionsproductqueryProduct();
const res = await APIhistoryOrder({
tableCode: uni.cache.get('tableCode')
});
if(res&&res.id){
return uni.showModal({
title:'提示',
content:'目标台桌使用中无法转桌',
showCancel:false
})
}
if (shopInfoRes.shopInfo.isTableFee === 1) {
// 免桌位费,直接换桌
startUseTable();
@@ -2191,6 +2202,7 @@
tableInfo.value = uni.cache.get('shopTable');
showTableInfoPeopleNumPopup.value = true;
}
}
} catch (error) {
console.log(error);
@@ -2212,9 +2224,9 @@
const shopInfoRes = await APIusershopInfodetail({
shopId: uni.cache.get('shopId')
});
if(shopInfoRes&&shopInfoRes.shopInfo){
if (shopInfoRes && shopInfoRes.shopInfo) {
Object.assign(shopInfo, shopInfoRes.shopInfo);
uni.cache.set('shopInfo',shopInfoRes.shopInfo)
uni.cache.set('shopInfo', shopInfoRes.shopInfo)
}

View File

@@ -438,7 +438,6 @@ export const useCartsStore = defineStore("cart", () => {
limitTimeDiscount.value = Message.data;
}
if (Message.operate_type == "time_discount_save") {
console.log("time_discount_save", Message.data);
limitTimeDiscount.value = Message.data;
}