feat(promotion): 新增满折满赠活动及阶梯优惠规则支持

- 满额活动列表页支持满减、满折、满赠三种类型筛选与标签展示
- 新增阶梯优惠规则列,按活动类型格式化展示各级优惠详情
- 活动详情页支持1至3级阶梯优惠配置及满赠赠品选择
- 页面装修组件增加满折、满赠活动类型标签展示
- 隐藏"添加活动优惠券"按钮入口
- 优化活动类型、状态、时间等表格列宽与样式
This commit is contained in:
pikachu1995@126.com
2026-11-10 15:55:43 +08:00
parent 2be2227644
commit eb017244d3
21 changed files with 1135 additions and 540 deletions

View File

@@ -44,7 +44,7 @@ const route = useRoute();
const router = useRouter();
const closedSections = ref([]);
const allItems = computed(() => flattenNavigation(appStore.navigationMenus).filter((item) => router.hasRoute(item.name)));
const activeItem = computed(() => findNavigationItem(allItems.value, route.name));
const activeItem = computed(() => findNavigationItem(allItems.value, route.name, route.query));
const sections = computed(() => appStore.navigationMenus.map((top) => ({
...top, items: allItems.value.filter((item) => item.topName === top.name),
})).filter((top) => top.items.length));