From 3278726a25387e951ece99fe36193f1669ffb8a5 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Mon, 12 Oct 2026 10:10:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(manager):=20=E8=A3=85=E4=BF=AE=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=9D=A2=E6=9D=BF=E4=B8=89=E7=B1=BB=E5=88=86=E7=BB=84?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E9=99=A4=E4=BF=83=E9=94=80=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E7=94=BB=E5=B8=83=E5=AF=B9=E6=9C=AA?= =?UTF-8?q?=E7=9F=A5=E7=B1=BB=E5=9E=8B=E5=A2=9E=E5=8A=A0=E5=AE=88=E5=8D=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/page-decoration/wap/config.js | 27 ++++---- .../views/page-decoration/wap/decorate.vue | 6 +- .../src/views/page-decoration/wap/index.vue | 62 +++++++++++++------ .../src/views/page-decoration/wap/style.scss | 11 +++- 4 files changed, 69 insertions(+), 37 deletions(-) diff --git a/manager/src/views/page-decoration/wap/config.js b/manager/src/views/page-decoration/wap/config.js index 08002a64e..1387d996b 100644 --- a/manager/src/views/page-decoration/wap/config.js +++ b/manager/src/views/page-decoration/wap/config.js @@ -6,12 +6,14 @@ * notLink: true 没有链接功能 * notImg: true 没有选择图片功能 * close:true 右侧关闭按钮 + * group: 'base' | 'marketing' | 'tools' 组件面板分组(无 group 的条目不在面板显示,仅供抽屉使用) */ export const modelData = [ { type: "flexOne", name: "图片", + group: "base", // drawer: true, notAdd: true, onlyImg: true, @@ -31,6 +33,7 @@ export const modelData = [ { type: "carousel", name: "轮播图", + group: "base", img: "md-image", // onlyImg: true, notTitle: false, @@ -98,6 +101,7 @@ export const modelData = [ { type: "title", name: "标题栏", + group: "tools", img: "md-image", // notTitle:true, notAdd: true, @@ -366,6 +370,7 @@ export const modelData = [ { type: "textPicture", name: "文字图片", + group: "base", drawer: true, notAdd: true, @@ -411,6 +416,7 @@ export const modelData = [ { type: "tpl_ad_list", name: "广告魔方", + group: "base", img: "md-image", options: { list: [ @@ -425,6 +431,7 @@ export const modelData = [ { type: "menu", name: "宫格导航", + group: "base", img: "md-image", close: true, options: { @@ -475,6 +482,7 @@ export const modelData = [ { type: "search", name: "搜索", + group: "base", img: "md-image", notAdd: true, notLink: true, @@ -490,6 +498,7 @@ export const modelData = [ { type: "goods", name: "商品分类", + group: "base", img: "md-image", notAdd: true, notLink: true, @@ -556,6 +565,7 @@ export const modelData = [ { type: "notice", name: "公告", + group: "base", img: "md-image", notAdd: false, notLink: true, @@ -572,23 +582,12 @@ export const modelData = [ ] } }, - { - type: "promotions", - name: "促销活动", - img: "md-image", - notAdd: true, - notLink: true, - notImg: true, - close: true, - options: { - list: [] - } - }, { notAdd: true, notImg: true, notLink: true, drawerPromotions: true, + group: "marketing", type: "promotionDetail", promotionsType: "PINTUAN", name: "拼团活动", @@ -605,6 +604,7 @@ export const modelData = [ notImg: true, notLink: true, drawerPromotions: true, + group: "marketing", type: "promotionDetail", promotionsType: "LIVE", name: "直播活动", @@ -621,6 +621,7 @@ export const modelData = [ notImg: true, notLink: true, drawerPromotions: true, + group: "marketing", type: "promotionDetail", promotionsType: "SECKILL", name: "秒杀活动", @@ -637,6 +638,7 @@ export const modelData = [ notImg: true, notLink: true, drawerPromotions: true, + group: "marketing", type: "promotionDetail", promotionsType: "KANJIA", name: "砍价活动", @@ -651,6 +653,7 @@ export const modelData = [ { type: "video", name: "视频", + group: "base", img: "md-image", notAdd: true, notImg: true, diff --git a/manager/src/views/page-decoration/wap/decorate.vue b/manager/src/views/page-decoration/wap/decorate.vue index 08dc33d49..c477e2e84 100644 --- a/manager/src/views/page-decoration/wap/decorate.vue +++ b/manager/src/views/page-decoration/wap/decorate.vue @@ -20,7 +20,7 @@ style="margin-left: 20px" size="small" plain - v-if="res.type == 'promotions' || res.drawerPromotions" + v-if="res.drawerPromotions" type="primary" @click="selectPromotions()" >选择促销活动
- - - +
{{ grp.title }}
+ + + +
@@ -40,6 +44,7 @@