去除部分调试打印,优化环境变量控制,修复再来一单只有一个商品时自动弹出图片预览问题,
This commit is contained in:
@@ -233,7 +233,6 @@ export const useWebSocket = defineStore('socketTask', () => {
|
||||
|
||||
// 发送消息
|
||||
const sendMessage = (data) => {
|
||||
console.log('data',data)
|
||||
if(!data){
|
||||
return
|
||||
}
|
||||
|
||||
@@ -97,7 +97,6 @@ export const useCartsStore = defineStore("cart", () => {
|
||||
.flat()
|
||||
.map(convertToBaseCartItem);
|
||||
|
||||
console.log('oldOrder.value', oldOrder.value)
|
||||
if (!oldOrder.value.id) {
|
||||
|
||||
}
|
||||
@@ -469,7 +468,6 @@ export const useCartsStore = defineStore("cart", () => {
|
||||
});
|
||||
|
||||
function setOldOrder(data) {
|
||||
console.log("setOldOrder", data);
|
||||
oldOrder.value = data;
|
||||
allGoods.value = getAllGoodsList();
|
||||
}
|
||||
@@ -695,8 +693,18 @@ export const useCartsStore = defineStore("cart", () => {
|
||||
originAmount: 0,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
// 重置优惠
|
||||
function clearDiscount(){
|
||||
newUserDiscount.value=0;
|
||||
consumeDiscount.value={}
|
||||
fullReductionActivities.value = [];
|
||||
isFreeDine.value = false;
|
||||
userPoints.value = 0;
|
||||
}
|
||||
|
||||
return {
|
||||
clearDiscount,
|
||||
getTotalPackFee,
|
||||
getTotalSeatcharge,
|
||||
getTotalTotalPrices,
|
||||
|
||||
Reference in New Issue
Block a user