From 23fd79bdfe084b46970764a246ac449b0a3fc29f Mon Sep 17 00:00:00 2001 From: 77 <270260644@qq.com> Date: Mon, 30 Sep 2024 16:02:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E8=A3=85=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-admin-vue3/src/api/mall/product/spu.ts | 10 + .../AppLinkInput/AppLinkSelectDialog.vue | 49 ++-- .../src/components/AppLinkInput/data.ts | 25 ++ .../components/mobile/CouponCard/index.vue | 27 +- .../components/mobile/ProductCard/index.vue | 1 + .../mobile/PromotionCombination/index.vue | 56 +++- .../mobile/PromotionCombination/property.vue | 4 +- .../mobile/PromotionSeckill/index.vue | 264 ++++++++++-------- .../src/components/DiyEditor/util.ts | 2 +- 9 files changed, 284 insertions(+), 154 deletions(-) diff --git a/yudao-admin-vue3/src/api/mall/product/spu.ts b/yudao-admin-vue3/src/api/mall/product/spu.ts index e3a2162..32fe688 100644 --- a/yudao-admin-vue3/src/api/mall/product/spu.ts +++ b/yudao-admin-vue3/src/api/mall/product/spu.ts @@ -109,3 +109,13 @@ export const exportSpu = async (params) => { export const getSpuSimpleList = async () => { return request.get({ url: '/product/spu/list-all-simple' }) } + +// 获得拼团商品 SPU 列表 +export const getSpuAdminSpuList = async () => { + return request.get({ url: '/promotion/combination-activity/adminSpuList' }) +} + +// 获得秒杀商品 SPU 列表 +export const getSpuMiaoShaAdminSpuList = async () => { + return request.get({ url: '/promotion/seckill-activity/adminSpuList' }) +} diff --git a/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue b/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue index 63f1966..5133f16 100644 --- a/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue +++ b/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue @@ -21,24 +21,27 @@
- -
{{ group.name }}
- - - - {{ appLink.name }} - - + +
@@ -155,11 +158,11 @@ const linkScrollbar = ref() // 处理分组选中 const handleGroupSelected = (group: string) => { activeGroup.value = group - const titleRef = groupTitleRefs.value.find((item: HTMLInputElement) => item.textContent === group) - if (titleRef) { - // 滚动分组标题 - linkScrollbar.value?.setScrollTop(titleRef.offsetTop) - } + // const titleRef = groupTitleRefs.value.find((item: HTMLInputElement) => item.textContent === group) + // if (titleRef) { + // // 滚动分组标题 + // linkScrollbar.value?.setScrollTop(titleRef.offsetTop) + // } } // 分组滚动条 diff --git a/yudao-admin-vue3/src/components/AppLinkInput/data.ts b/yudao-admin-vue3/src/components/AppLinkInput/data.ts index 6f1747b..77fb4e1 100644 --- a/yudao-admin-vue3/src/components/AppLinkInput/data.ts +++ b/yudao-admin-vue3/src/components/AppLinkInput/data.ts @@ -250,5 +250,30 @@ export const APP_LINK_GROUP_LIST = [ path: '/pages/user/user_vip/index' } ] + }, + { + name: '自定义页面', + links: [ + { + name: '促销页面', + path: 'ss' + }, + { + name: '关于我们', + path: '/pages/pay/recharge-lo' + }, + { + name: '产品与服务', + path: '/pages/pay/recharge-l' + }, + { + name: '自定义页面', + path: '/pages/pay/recharge-' + }, + { + name: '个人中心', + path: '/pages/pay/recharge' + } + ] } ] as AppLinkGroup[] diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/CouponCard/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/CouponCard/index.vue index 3e2302a..dd557fd 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/CouponCard/index.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/CouponCard/index.vue @@ -1,7 +1,7 @@