积分问题修复
This commit is contained in:
@@ -175,7 +175,6 @@ export const useCartsStore = defineStore('cart',
|
||||
// 订单费用汇总
|
||||
const orderCostSummary = computed(() => {
|
||||
allGoods.value = getAllGoodsList()
|
||||
console.log('orderCostSummary:allGoods.value',allGoods.value );
|
||||
const costSummary = OrderPriceCalculator.calculateOrderCostSummary(
|
||||
allGoods.value,
|
||||
dinnerType.value,
|
||||
@@ -350,6 +349,7 @@ export const useCartsStore = defineStore('cart',
|
||||
|
||||
function setOldOrder(data) {
|
||||
oldOrder.value = data
|
||||
allGoods.value=getAllGoodsList()
|
||||
}
|
||||
|
||||
|
||||
@@ -560,7 +560,10 @@ export const useCartsStore = defineStore('cart',
|
||||
|
||||
|
||||
function clearOrderConfig(){
|
||||
console.log('clearOrderConfig');
|
||||
backendCoupons.value=[];
|
||||
allGoods.value=[];
|
||||
carts.value=[]
|
||||
seatFeeConfig.value.personCount=uni.cache.get('dinersNum') || 0;
|
||||
dinnerType.value='dine-in';
|
||||
userPoints.value=0
|
||||
@@ -586,6 +589,7 @@ export const useCartsStore = defineStore('cart',
|
||||
totalOriginPrice,
|
||||
orderCostSummary,
|
||||
setCoupons,
|
||||
userPoints,
|
||||
setUserPoints,
|
||||
setPointDeductionRule,
|
||||
setOldOrder,
|
||||
|
||||
Reference in New Issue
Block a user