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 }} - - + + + {{ 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 @@ - + - - @@ -40,11 +37,11 @@ 立即领取 - + --> + @@ -64,8 +61,7 @@ - - + @@ -139,4 +135,11 @@ onMounted(() => { phoneWidth.value = containerRef.value?.wrapRef?.offsetWidth || 375 }) - + diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/ProductCard/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/ProductCard/index.vue index f05d4fa..a7f0de4 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/ProductCard/index.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/ProductCard/index.vue @@ -26,6 +26,7 @@ 'w-140px': property.layoutType === 'oneColSmallImg' } ]" + style="padding:10px;" > diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue index fe6f3a8..328c049 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue @@ -1,6 +1,26 @@ - + + + + + + + + + + 92人拼团成功 + + + 查看更多 + + + + + + + + diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/property.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/property.vue index ec09dc4..b479582 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/property.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/property.vue @@ -14,7 +14,7 @@ - + diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue index 1b4113b..b851de6 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue @@ -1,125 +1,165 @@ - - - + + + + + + + + + 已有99人购买 + + + 查看更多 + + + + + + + + + - - - - - - - - - + + + + + + + + + + - - - {{ spu.name }} - - - - - ¥{{ spu.price }} - - - - - - + ]"> + + + {{ spu.name }} + + + + + ¥{{ spu.price }} + + + + + + - + \ No newline at end of file diff --git a/yudao-admin-vue3/src/components/DiyEditor/util.ts b/yudao-admin-vue3/src/components/DiyEditor/util.ts index c75945f..5154c9b 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/util.ts +++ b/yudao-admin-vue3/src/components/DiyEditor/util.ts @@ -146,7 +146,7 @@ export const PAGE_LIBS = [ components: [ 'PromotionCombination', 'PromotionSeckill', - 'PromotionPoint', + // 'PromotionPoint', 'CouponCard', 'PromotionArticle' ] -- 2.45.2 From d477567030c4e0d94fc17e0ed963761c2ce7910b Mon Sep 17 00:00:00 2001 From: 77 <270260644@qq.com> Date: Mon, 30 Sep 2024 19:02:16 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=98=E5=8C=963?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DiyEditor/components/ComponentLibrary.vue | 4 +- .../seckill/config/SeckillConfigForm.vue | 232 ++++++++---------- 2 files changed, 110 insertions(+), 126 deletions(-) diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/ComponentLibrary.vue b/yudao-admin-vue3/src/components/DiyEditor/components/ComponentLibrary.vue index b8bd1ec..f2af137 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/ComponentLibrary.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/ComponentLibrary.vue @@ -128,8 +128,8 @@ const handleCloneComponent = (component: DiyComponent) => { width: 86px; height: 86px; cursor: move; - border-right: 1px solid var(--el-border-color-lighter); - border-bottom: 1px solid var(--el-border-color-lighter); + // border-right: 1px solid var(--el-border-color-lighter); + // border-bottom: 1px solid var(--el-border-color-lighter); flex-direction: column; align-items: center; justify-content: center; diff --git a/yudao-admin-vue3/src/views/mall/promotion/seckill/config/SeckillConfigForm.vue b/yudao-admin-vue3/src/views/mall/promotion/seckill/config/SeckillConfigForm.vue index a7ce5fe..d596ec1 100644 --- a/yudao-admin-vue3/src/views/mall/promotion/seckill/config/SeckillConfigForm.vue +++ b/yudao-admin-vue3/src/views/mall/promotion/seckill/config/SeckillConfigForm.vue @@ -1,133 +1,117 @@ - - - - - - - - - - - - - - - - - - {{ dict.label }} - - - - - - 确 定 - 取 消 - - + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + 确 定 + 取 消 + + + /** 重置表单 */ + const resetForm = () => { + formData.value = { + id: undefined, + name: undefined, + startTime: undefined, + endTime: undefined, + sliderPicUrls: [], + status: CommonStatusEnum.ENABLE + } + formRef.value?.resetFields() + } + \ No newline at end of file -- 2.45.2 From d83522607b9fb0ea1aa2c32bb54d176a24b1f1a5 Mon Sep 17 00:00:00 2001 From: 77 <270260644@qq.com> Date: Sat, 5 Oct 2024 11:47:25 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=B0=86=E8=A3=85=E4=BF=AE=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E9=9D=A2=E5=8E=BB=E6=8E=89=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=9C=A8=E8=8F=9C=E5=8D=95=E6=A0=8F=E9=87=8C=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=8C=89=E9=92=AE=E8=B7=B3=E8=BD=AC=E5=88=B0=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E7=9A=84=E8=A3=85=E4=BF=AE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/DiyEditor/index.vue | 1 + .../src/router/modules/remaining.ts | 2 +- .../mall/promotion/diy/template/decorate.vue | 291 +++++++++--------- .../mall/promotion/diy/template/decorate1.vue | 175 +++++++++++ .../mall/promotion/diy/template/decorate3.vue | 175 +++++++++++ 5 files changed, 500 insertions(+), 144 deletions(-) create mode 100644 yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate1.vue create mode 100644 yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate3.vue diff --git a/yudao-admin-vue3/src/components/DiyEditor/index.vue b/yudao-admin-vue3/src/components/DiyEditor/index.vue index 700d32b..942a153 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/index.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/index.vue @@ -249,6 +249,7 @@ watch( const component = componentConfigs[item.id] return { ...component, property: item.property } }) + console.log(modelValue,"pageComponents.value") }, { immediate: true diff --git a/yudao-admin-vue3/src/router/modules/remaining.ts b/yudao-admin-vue3/src/router/modules/remaining.ts index 05c227a..a91a181 100644 --- a/yudao-admin-vue3/src/router/modules/remaining.ts +++ b/yudao-admin-vue3/src/router/modules/remaining.ts @@ -469,7 +469,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ ] }, { - path: '/diy', + path: '/diy-template/diy', name: 'DiyCenter', meta: { hidden: true }, component: Layout, diff --git a/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate.vue b/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate.vue index e7838f2..4fa8d08 100644 --- a/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate.vue +++ b/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate.vue @@ -1,18 +1,10 @@ - - - + + + + + }) + + // watch(() => route.path, (newPath, oldPath) => { + // console.log(newPath,'newPathnewPath'); + // // handleTemplateItemChange() + // }, { immediate: true }); + \ No newline at end of file diff --git a/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate1.vue b/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate1.vue new file mode 100644 index 0000000..42502fa --- /dev/null +++ b/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate1.vue @@ -0,0 +1,175 @@ + + + + + + + + \ No newline at end of file diff --git a/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate3.vue b/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate3.vue new file mode 100644 index 0000000..5ea5f26 --- /dev/null +++ b/yudao-admin-vue3/src/views/mall/promotion/diy/template/decorate3.vue @@ -0,0 +1,175 @@ + + + + + + + + \ No newline at end of file -- 2.45.2