From a70c74199092cd753a1f05789ad45a940e3275db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Tue, 11 Oct 2022 17:24:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:art:=20=E6=96=B0=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=93=E9=A2=98=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/other.js | 9 + .../components/lili-dialog/template/index.js | 2 + .../lili-dialog/template/special.vue | 167 ++++++++++++++++++ manager/src/components/lili-dialog/wap.js | 5 + manager/src/store/index.js | 3 +- .../views/page-decoration/wap/advertising.vue | 72 ++++++-- .../page-decoration/wap/alertAdvertising.vue | 70 +++++++- .../views/page-decoration/wap/decorate.vue | 50 +++++- .../src/views/page-decoration/wap/main.vue | 12 +- .../src/views/page-decoration/wap/navbar.vue | 112 ++++++++++-- .../src/views/page-decoration/wap/wapList.vue | 62 +++++-- 11 files changed, 504 insertions(+), 60 deletions(-) create mode 100644 manager/src/components/lili-dialog/template/special.vue diff --git a/manager/src/api/other.js b/manager/src/api/other.js index 4c3b5ab0..ff126ab2 100644 --- a/manager/src/api/other.js +++ b/manager/src/api/other.js @@ -90,3 +90,12 @@ export const getMemberFeedbackDetail = (id) => { export const getMemberMessage = (params) => { return getRequest(`/other/memberMessage`, params); }; + +// 弹窗广告 +export const getOpenHomeData = params => { + return getRequest(`/other/pageData/pageType/${params}`); +}; +// 保存修改弹窗广告 +export const addOpenHomeData = params => { + return postRequest(`/other/pageData/pageType/${params}`); +}; diff --git a/manager/src/components/lili-dialog/template/index.js b/manager/src/components/lili-dialog/template/index.js index 83d39f35..03bdfccb 100644 --- a/manager/src/components/lili-dialog/template/index.js +++ b/manager/src/components/lili-dialog/template/index.js @@ -5,6 +5,7 @@ import marketing from './marketing.vue' import pages from './pages.vue' import goods from '../goods-dialog.vue' import other from './other.vue' +import special from './special.vue' export default { pages, marketing, @@ -12,4 +13,5 @@ export default { category, goods, other, + special } diff --git a/manager/src/components/lili-dialog/template/special.vue b/manager/src/components/lili-dialog/template/special.vue new file mode 100644 index 00000000..c9d592b7 --- /dev/null +++ b/manager/src/components/lili-dialog/template/special.vue @@ -0,0 +1,167 @@ + + + diff --git a/manager/src/components/lili-dialog/wap.js b/manager/src/components/lili-dialog/wap.js index 2d2d675c..140f1675 100644 --- a/manager/src/components/lili-dialog/wap.js +++ b/manager/src/components/lili-dialog/wap.js @@ -25,6 +25,11 @@ export default [ url: "3", name: "pages" }, + { + title: "专题", + url: "4", + name: "special" + }, { title: "其他", url: "3", diff --git a/manager/src/store/index.js b/manager/src/store/index.js index 57665ece..8f2cf2cf 100644 --- a/manager/src/store/index.js +++ b/manager/src/store/index.js @@ -10,7 +10,8 @@ Vue.use(Vuex); const store = new Vuex.Store({ state: { // 状态 - + openStyleStore: "", // 移动端楼层装修中选择风格存储 + openStoreId:"", notices: "" //通知提示信息 }, mutations: { diff --git a/manager/src/views/page-decoration/wap/advertising.vue b/manager/src/views/page-decoration/wap/advertising.vue index 70257cc8..d4d68906 100644 --- a/manager/src/views/page-decoration/wap/advertising.vue +++ b/manager/src/views/page-decoration/wap/advertising.vue @@ -70,17 +70,24 @@ - + + + + diff --git a/manager/src/views/page-decoration/wap/alertAdvertising.vue b/manager/src/views/page-decoration/wap/alertAdvertising.vue index cddee110..c9f9b78f 100644 --- a/manager/src/views/page-decoration/wap/alertAdvertising.vue +++ b/manager/src/views/page-decoration/wap/alertAdvertising.vue @@ -48,7 +48,7 @@ @click="handleClickFile(item, index)" ghost type="primary" - >选择照片选择链接 @@ -69,15 +69,28 @@ - + + + + diff --git a/manager/src/views/page-decoration/wap/decorate.vue b/manager/src/views/page-decoration/wap/decorate.vue index cb6d7cb8..aed4d755 100644 --- a/manager/src/views/page-decoration/wap/decorate.vue +++ b/manager/src/views/page-decoration/wap/decorate.vue @@ -139,6 +139,20 @@ +
+
+ +
+
选择照片
@@ -325,9 +339,15 @@ {{ ways.find((e) => { return item.url.___type == e.name; - }).title + }) ? ways.find((e) => { + return item.url.___type == e.name; + }).title : '发现' }} - + + + {{ item.url.name }} {{ item.url.goodsName }} 1 && index !== 0) { + newArr = this.swapItems(arr, index, index - 1); + } + return newArr; + }, + swapItems(arr, index1, index2) { + arr[index1] = arr.splice(index2, 1, arr[index1])[0]; + return arr; + }, + downData(arr,index) { + let newArr = []; + if (arr.length > 1 && index !== arr.length - 1) { + newArr = this.swapItems(arr, index, index + 1); + } + return newArr; + }, // 改变横纵切换title内容 changeDirection(val, data) { if (val == "horizontal") { @@ -558,7 +604,7 @@ export default { title: "标题", link: "", url: "", - size: this.res.options.list[0].size, + size: this.res.options.list[0] ? this.res.options.list[0].size : "", model: "link", }; this.res.options.list.push(way); diff --git a/manager/src/views/page-decoration/wap/main.vue b/manager/src/views/page-decoration/wap/main.vue index 62bd675e..06a82b73 100644 --- a/manager/src/views/page-decoration/wap/main.vue +++ b/manager/src/views/page-decoration/wap/main.vue @@ -1,7 +1,7 @@