fix: 增加活动满减功能测试,备份之前的结算文件
This commit is contained in:
parent
1c6739532a
commit
8b1cb63651
|
|
@ -13,7 +13,7 @@ import {
|
||||||
BackendCoupon,
|
BackendCoupon,
|
||||||
ActivityConfig,
|
ActivityConfig,
|
||||||
OrderExtraConfig, MerchantReductionConfig, MerchantReductionType,
|
OrderExtraConfig, MerchantReductionConfig, MerchantReductionType,
|
||||||
GoodsType
|
GoodsType,
|
||||||
} from "@/utils/goods";
|
} from "@/utils/goods";
|
||||||
|
|
||||||
const shopUser = useUserStoreHook();
|
const shopUser = useUserStoreHook();
|
||||||
|
|
@ -217,6 +217,33 @@ export const useCartsStore = defineStore("carts", () => {
|
||||||
})
|
})
|
||||||
//使用积分数量
|
//使用积分数量
|
||||||
const userPoints = ref(0);
|
const userPoints = ref(0);
|
||||||
|
const testFullReductionActivity = {
|
||||||
|
"id": 231,
|
||||||
|
"shopId": 26,
|
||||||
|
"status": 2, // 2=进行中
|
||||||
|
"sort": 10,
|
||||||
|
"createTime": "2025-10-14 13:56:07",
|
||||||
|
"updateTime": "2025-10-14 14:41:02", // 最新修改
|
||||||
|
"validStartTime": "2025-10-14",
|
||||||
|
"validEndTime": "2025-12-14",
|
||||||
|
"useType": "dine,pickup,deliv,express", // 支持所有就餐类型
|
||||||
|
"useDays": "周一,周二,周三,周四,周五,周六,周日", // 全周期
|
||||||
|
"useTimeType": "all", // 全时段
|
||||||
|
"useStartTime": null,
|
||||||
|
"useEndTime": null,
|
||||||
|
"couponShare": 0, // 与优惠券不同享
|
||||||
|
"discountShare": 0, // 与限时折扣不同享
|
||||||
|
"vipPriceShare": 0, // 与会员价不同享
|
||||||
|
"pointsShare": 0, // 与积分不同享
|
||||||
|
"thresholds": [ // 多门槛(此处1个)
|
||||||
|
{
|
||||||
|
"activityId": 231,
|
||||||
|
"fullAmount": 1, // 满1元
|
||||||
|
"discountAmount": 10 // 减10元
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"isDel": false
|
||||||
|
};
|
||||||
// 订单额外配置(现在依赖响应式的 merchantReduction)
|
// 订单额外配置(现在依赖响应式的 merchantReduction)
|
||||||
const orderExtraConfig = computed<OrderExtraConfig>(() => ({
|
const orderExtraConfig = computed<OrderExtraConfig>(() => ({
|
||||||
// 引用扩展后的商家减免配置
|
// 引用扩展后的商家减免配置
|
||||||
|
|
@ -227,7 +254,8 @@ export const useCartsStore = defineStore("carts", () => {
|
||||||
currentStoreId: shopUser.userInfo.shopId?.toString() || '',
|
currentStoreId: shopUser.userInfo.shopId?.toString() || '',
|
||||||
userPoints: userPoints.value,
|
userPoints: userPoints.value,
|
||||||
isMember: useVipPrice.value,
|
isMember: useVipPrice.value,
|
||||||
memberDiscountRate: shopUser.userInfo.memberDiscountRate || 1
|
memberDiscountRate: shopUser.userInfo.memberDiscountRate || 1,
|
||||||
|
fullReductionActivities: [testFullReductionActivity]
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// 营销活动列表
|
// 营销活动列表
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue