From bf99a60269e0ed1ef3024a74455ca18696895c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Thu, 12 Dec 2024 20:42:06 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=AD=89=E7=BA=A7?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/marketing/level/index.vue | 20 ++-- .../marketing/level/popup/add-coupon.vue | 61 ++++++----- .../marketing/level/popup/add-or-update.vue | 103 ++++++++++++------ 3 files changed, 119 insertions(+), 65 deletions(-) diff --git a/src/views/modules/marketing/level/index.vue b/src/views/modules/marketing/level/index.vue index 9dfa607..eaaab28 100644 --- a/src/views/modules/marketing/level/index.vue +++ b/src/views/modules/marketing/level/index.vue @@ -39,7 +39,7 @@
- 全部等级({{list.length}})全部等级({{ list.length }})+新增套餐
@@ -74,10 +74,16 @@ > @@ -102,7 +108,7 @@ - +
@@ -127,7 +133,7 @@ export default { this.formInline = { unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType, marketId: this.marketId, - shopId: "", + shopId: this.shopId, }; this.getList(); }, diff --git a/src/views/modules/marketing/level/popup/add-coupon.vue b/src/views/modules/marketing/level/popup/add-coupon.vue index fceb4d2..4143f9f 100644 --- a/src/views/modules/marketing/level/popup/add-coupon.vue +++ b/src/views/modules/marketing/level/popup/add-coupon.vue @@ -26,10 +26,24 @@ export default { show: false, width: "60%", }, - modalData: {}, - value1: [], + modalData: { + couponsName: "", + couponsThreshold: 0, + couponsMinus: 0, + couponsEffectiveTimeType: "1", + }, }; }, + watch: { + "modalConfig.show"(newVal) { + if (newVal) { + //关闭弹窗清空校验 + setTimeout(() => { + this.$refs.modal.resetFields(); + }); + } + }, + }, methods: { queryTableData(pageNo, pageSize) {}, toggle(e) { @@ -37,43 +51,33 @@ export default { this.modalConfig.show = true; } else { this.modalConfig.show = false; - this.$refs.modal.resetFields(); } if (e) { this.init(cloneDeep(e)); } return { add: (row) => { - this.modalConfig.title = "添加优惠卷"; - this.$nextTick(() => { - this.$refs.modal?.resetFields(); - }); - this.isAdd = true; - if (row) { + console.log(row); + if (row.length > 0) { this.modalData = row[0]; + } else { console.log("111"); - return; + this.modalData = { + couponsName: "", + couponsThreshold: 0, + couponsMinus: 0, + couponsEffectiveTimeType: "1", + }; } - this.modalData = { - couponsName: "", - couponsThreshold: 0, - couponsMinus: 0, - couponsEffectiveTimeType: "1", - }; - console.log("qqw"); + this.modalConfig.title = "添加优惠卷"; + this.isAdd = true; }, update: () => { this.isAdd = false; }, }; }, - init(row) { - if (row) { - this.modalData = row; - return; - } - console.log("123"); - }, + init(row) {}, }, computed: { modalCols() { @@ -146,7 +150,7 @@ export default { }, { label: "当月", - value: "2", + value: "3", }, ].map((item) => { return ( @@ -176,8 +180,11 @@ export default { loading: this.isLoading, submit: true, handle: () => { - console.log(this.modalData); - this.$emit("addCouponData", this.modalData); + console.log(JSON.parse(JSON.stringify(this.modalData))); + this.$emit( + "addCouponData", + JSON.parse(JSON.stringify(this.modalData)) + ); this.toggle(); }, }, diff --git a/src/views/modules/marketing/level/popup/add-or-update.vue b/src/views/modules/marketing/level/popup/add-or-update.vue index 12f267b..82484b1 100644 --- a/src/views/modules/marketing/level/popup/add-or-update.vue +++ b/src/views/modules/marketing/level/popup/add-or-update.vue @@ -13,7 +13,7 @@ + \ No newline at end of file diff --git a/src/views/modules/marketing/points-setting/index.vue b/src/views/modules/marketing/points-setting/index.vue index 51217aa..f66185d 100644 --- a/src/views/modules/marketing/points-setting/index.vue +++ b/src/views/modules/marketing/points-setting/index.vue @@ -4,7 +4,7 @@ 此页面数据在每日0点提交并生效;请勿频繁操作,以免影响用户体验。
积分/成长值任务(9)
-
+
+ + + - + + +
+ \ No newline at end of file diff --git a/src/views/modules/marketing/user/index.vue b/src/views/modules/marketing/user/index.vue index 7ab310e..11c8910 100644 --- a/src/views/modules/marketing/user/index.vue +++ b/src/views/modules/marketing/user/index.vue @@ -11,100 +11,8 @@ :enableAutoQuery="false" > - - + --> + ref="modifyPoints" + > - + + \ No newline at end of file diff --git a/src/views/modules/marketing/user/popup/view-details.vue b/src/views/modules/marketing/user/popup/view-details.vue new file mode 100644 index 0000000..5648073 --- /dev/null +++ b/src/views/modules/marketing/user/popup/view-details.vue @@ -0,0 +1,141 @@ + + + \ No newline at end of file From 073c5004240f134c27a8751652dcf6bf92d3c085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Sun, 15 Dec 2024 17:35:41 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/marketing.js | 8 + src/api/modules/mer_admin.js | 8 + src/router/full-routers.js | 15 +- .../modules/marketing/points-mall/index.vue | 77 +++-- .../points-mall/popup/add-or-update.vue | 0 .../marketing/points-setting/index.vue | 29 +- .../points-setting/popup/add-or-update.vue | 265 +++++++--------- .../marketing/points-setting/popup/browse.vue | 172 ++++++++++ .../points-setting/popup/evaluate.vue | 192 +++++++++++ .../points-setting/popup/product-points.vue | 171 ++++++++++ .../points-setting/popup/share-points.vue | 175 ++++++++++ .../modules/product/{ => commodity}/index.vue | 0 .../{ => commodity}/popup/add-attribute.vue | 0 .../{ => commodity}/popup/add-discount.vue | 0 .../{ => commodity}/popup/add-or-update.vue | 0 .../{ => commodity}/popup/add-price.vue | 0 .../popup/add-specifications.vue | 0 .../{ => commodity}/popup/add-stock.vue | 0 src/views/modules/product/order/index.vue | 298 ++++++++++++++++++ 19 files changed, 1239 insertions(+), 171 deletions(-) create mode 100644 src/views/modules/marketing/points-mall/popup/add-or-update.vue create mode 100644 src/views/modules/marketing/points-setting/popup/browse.vue create mode 100644 src/views/modules/marketing/points-setting/popup/evaluate.vue create mode 100644 src/views/modules/marketing/points-setting/popup/product-points.vue create mode 100644 src/views/modules/marketing/points-setting/popup/share-points.vue rename src/views/modules/product/{ => commodity}/index.vue (100%) rename src/views/modules/product/{ => commodity}/popup/add-attribute.vue (100%) rename src/views/modules/product/{ => commodity}/popup/add-discount.vue (100%) rename src/views/modules/product/{ => commodity}/popup/add-or-update.vue (100%) rename src/views/modules/product/{ => commodity}/popup/add-price.vue (100%) rename src/views/modules/product/{ => commodity}/popup/add-specifications.vue (100%) rename src/views/modules/product/{ => commodity}/popup/add-stock.vue (100%) create mode 100644 src/views/modules/product/order/index.vue diff --git a/src/api/modules/marketing.js b/src/api/modules/marketing.js index ce05810..d8443d1 100644 --- a/src/api/modules/marketing.js +++ b/src/api/modules/marketing.js @@ -98,4 +98,12 @@ export const marketing = { data, }); }, + // 会员积分商品 + PointsProductPage: (data) => { + return $http.request({ + url: `/merchant-api/memberUnitPointsProduct/page`, + method: "get", + params: data, + }); + }, }; diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index f06c096..aca5092 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -204,4 +204,12 @@ export const mer_admin = { params: data, }); }, + //订单管理 + orderPage: (data) => { + return $http.request({ + method: "get", + url: `/merchant-api/order/page`, + params: data, + }); + }, }; diff --git a/src/router/full-routers.js b/src/router/full-routers.js index 5a0a63c..1ce4141 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -43,7 +43,20 @@ export default { parentId: 0, parentName: null, name: "商品管理", - url: "product/index", + url: "product/commodity/index", + perms: "", + type: 1, + elIcon: "el-icon-menu", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "订单管理", + url: "product/order/index", perms: "", type: 1, elIcon: "el-icon-menu", diff --git a/src/views/modules/marketing/points-mall/index.vue b/src/views/modules/marketing/points-mall/index.vue index 1d0cd38..dfb8348 100644 --- a/src/views/modules/marketing/points-mall/index.vue +++ b/src/views/modules/marketing/points-mall/index.vue @@ -12,38 +12,65 @@ > + \ No newline at end of file diff --git a/src/views/modules/marketing/points-setting/popup/evaluate.vue b/src/views/modules/marketing/points-setting/popup/evaluate.vue new file mode 100644 index 0000000..7dceae2 --- /dev/null +++ b/src/views/modules/marketing/points-setting/popup/evaluate.vue @@ -0,0 +1,192 @@ + + + \ No newline at end of file diff --git a/src/views/modules/marketing/points-setting/popup/product-points.vue b/src/views/modules/marketing/points-setting/popup/product-points.vue new file mode 100644 index 0000000..961ecff --- /dev/null +++ b/src/views/modules/marketing/points-setting/popup/product-points.vue @@ -0,0 +1,171 @@ + + + \ No newline at end of file diff --git a/src/views/modules/marketing/points-setting/popup/share-points.vue b/src/views/modules/marketing/points-setting/popup/share-points.vue new file mode 100644 index 0000000..dccb2f8 --- /dev/null +++ b/src/views/modules/marketing/points-setting/popup/share-points.vue @@ -0,0 +1,175 @@ + + + \ No newline at end of file diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/commodity/index.vue similarity index 100% rename from src/views/modules/product/index.vue rename to src/views/modules/product/commodity/index.vue diff --git a/src/views/modules/product/popup/add-attribute.vue b/src/views/modules/product/commodity/popup/add-attribute.vue similarity index 100% rename from src/views/modules/product/popup/add-attribute.vue rename to src/views/modules/product/commodity/popup/add-attribute.vue diff --git a/src/views/modules/product/popup/add-discount.vue b/src/views/modules/product/commodity/popup/add-discount.vue similarity index 100% rename from src/views/modules/product/popup/add-discount.vue rename to src/views/modules/product/commodity/popup/add-discount.vue diff --git a/src/views/modules/product/popup/add-or-update.vue b/src/views/modules/product/commodity/popup/add-or-update.vue similarity index 100% rename from src/views/modules/product/popup/add-or-update.vue rename to src/views/modules/product/commodity/popup/add-or-update.vue diff --git a/src/views/modules/product/popup/add-price.vue b/src/views/modules/product/commodity/popup/add-price.vue similarity index 100% rename from src/views/modules/product/popup/add-price.vue rename to src/views/modules/product/commodity/popup/add-price.vue diff --git a/src/views/modules/product/popup/add-specifications.vue b/src/views/modules/product/commodity/popup/add-specifications.vue similarity index 100% rename from src/views/modules/product/popup/add-specifications.vue rename to src/views/modules/product/commodity/popup/add-specifications.vue diff --git a/src/views/modules/product/popup/add-stock.vue b/src/views/modules/product/commodity/popup/add-stock.vue similarity index 100% rename from src/views/modules/product/popup/add-stock.vue rename to src/views/modules/product/commodity/popup/add-stock.vue diff --git a/src/views/modules/product/order/index.vue b/src/views/modules/product/order/index.vue new file mode 100644 index 0000000..3db031e --- /dev/null +++ b/src/views/modules/product/order/index.vue @@ -0,0 +1,298 @@ + + + + + \ No newline at end of file From 28cbcff6db6092e35e280f716585bfb33a31ad81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Mon, 16 Dec 2024 21:00:34 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/modules/mer_admin.js | 48 ++ src/router/full-routers.js | 26 + .../modules/marketing/points-mall/index.vue | 13 +- .../points-mall/popup/add-or-update.vue | 593 ++++++++++++++++++ .../marketing/points-mall/popup/commodity.vue | 230 +++++++ src/views/modules/product/banner/index.vue | 320 ++++++++++ .../product/banner/popup/add-or-update.vue | 276 ++++++++ .../product/banner/popup/set-sorting.vue | 122 ++++ src/views/modules/product/notice/index.vue | 324 ++++++++++ .../product/notice/popup/add-or-update.vue | 219 +++++++ .../product/notice/popup/set-sorting.vue | 122 ++++ src/views/modules/product/order/content.vue | 47 ++ src/views/modules/product/order/index.vue | 176 ++++-- src/views/modules/wallet/index.vue | 2 +- 15 files changed, 2476 insertions(+), 44 deletions(-) create mode 100644 src/views/modules/marketing/points-mall/popup/commodity.vue create mode 100644 src/views/modules/product/banner/index.vue create mode 100644 src/views/modules/product/banner/popup/add-or-update.vue create mode 100644 src/views/modules/product/banner/popup/set-sorting.vue create mode 100644 src/views/modules/product/notice/index.vue create mode 100644 src/views/modules/product/notice/popup/add-or-update.vue create mode 100644 src/views/modules/product/notice/popup/set-sorting.vue create mode 100644 src/views/modules/product/order/content.vue diff --git a/package.json b/package.json index 172c36e..30091b7 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "mockjs": "^1.1.0", "nprogress": "0.2.0", "obj-modal": "^1.2.2", - "obj-table-plus": "^2.4.0", + "obj-table-plus": "^2.5.0", "qrcodejs2": "^0.0.2", "qs": "^6.13.0", "quill": "1.3.7", diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index aca5092..b9aaf73 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -212,4 +212,52 @@ export const mer_admin = { params: data, }); }, + // 轮播图分页 + bannerPage: (data) => { + return $http.request({ + method: "get", + url: `/admin-api/banner/page`, + params: data, + }); + }, + // 轮播图添加 + bannerAdd: (data) => { + return $http.post(`/admin-api/banner/add`, data); + }, + //编辑轮播图 + bannerUpdate: (data) => { + return $http.post(`/admin-api/banner/update`, data); + }, + //删除轮播图 + bannerDelete: (data) => { + return $http.post(`/admin-api/banner/delete`, data); + }, + //排序轮播图 + sortBanner: (data) => { + return $http.post(`/admin-api/banner/update/sort`, data); + }, + // 公告分页 + noticePage: (data) => { + return $http.request({ + method: "get", + url: `/admin-api/notice/page`, + params: data, + }); + }, + // 公告添加 + noticeAdd: (data) => { + return $http.post(`/admin-api/notice/add`, data); + }, + //编辑公告 + noticeUpdate: (data) => { + return $http.post(`/admin-api/notice/update`, data); + }, + //删除公告 + noticeDelete: (data) => { + return $http.post(`/admin-api/notice/delete`, data); + }, + //排序公告 + sortnotice: (data) => { + return $http.post(`/admin-api/notice/update/sort`, data); + }, }; diff --git a/src/router/full-routers.js b/src/router/full-routers.js index 1ce4141..d580fd2 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -64,6 +64,32 @@ export default { open: null, list: [], }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "轮播图管理", + url: "product/banner/index", + perms: "", + type: 1, + elIcon: "el-icon-menu", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "公告管理", + url: "product/notice/index", + perms: "", + type: 1, + elIcon: "el-icon-menu", + orderNum: 0, + open: null, + list: [], + }, ], }, { diff --git a/src/views/modules/marketing/points-mall/index.vue b/src/views/modules/marketing/points-mall/index.vue index dfb8348..0400454 100644 --- a/src/views/modules/marketing/points-mall/index.vue +++ b/src/views/modules/marketing/points-mall/index.vue @@ -81,26 +81,26 @@
- +添加 + +添加
- + > + \ No newline at end of file diff --git a/src/views/modules/marketing/points-mall/popup/commodity.vue b/src/views/modules/marketing/points-mall/popup/commodity.vue new file mode 100644 index 0000000..f7d4012 --- /dev/null +++ b/src/views/modules/marketing/points-mall/popup/commodity.vue @@ -0,0 +1,230 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/banner/index.vue b/src/views/modules/product/banner/index.vue new file mode 100644 index 0000000..a719add --- /dev/null +++ b/src/views/modules/product/banner/index.vue @@ -0,0 +1,320 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/banner/popup/add-or-update.vue b/src/views/modules/product/banner/popup/add-or-update.vue new file mode 100644 index 0000000..50e4e07 --- /dev/null +++ b/src/views/modules/product/banner/popup/add-or-update.vue @@ -0,0 +1,276 @@ + + + \ No newline at end of file diff --git a/src/views/modules/product/banner/popup/set-sorting.vue b/src/views/modules/product/banner/popup/set-sorting.vue new file mode 100644 index 0000000..650cf95 --- /dev/null +++ b/src/views/modules/product/banner/popup/set-sorting.vue @@ -0,0 +1,122 @@ + + + diff --git a/src/views/modules/product/notice/index.vue b/src/views/modules/product/notice/index.vue new file mode 100644 index 0000000..8ea3149 --- /dev/null +++ b/src/views/modules/product/notice/index.vue @@ -0,0 +1,324 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/notice/popup/add-or-update.vue b/src/views/modules/product/notice/popup/add-or-update.vue new file mode 100644 index 0000000..bc693e8 --- /dev/null +++ b/src/views/modules/product/notice/popup/add-or-update.vue @@ -0,0 +1,219 @@ + + + \ No newline at end of file diff --git a/src/views/modules/product/notice/popup/set-sorting.vue b/src/views/modules/product/notice/popup/set-sorting.vue new file mode 100644 index 0000000..5229aca --- /dev/null +++ b/src/views/modules/product/notice/popup/set-sorting.vue @@ -0,0 +1,122 @@ + + + diff --git a/src/views/modules/product/order/content.vue b/src/views/modules/product/order/content.vue new file mode 100644 index 0000000..c8ed5e7 --- /dev/null +++ b/src/views/modules/product/order/content.vue @@ -0,0 +1,47 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/order/index.vue b/src/views/modules/product/order/index.vue index 3db031e..1d00cbc 100644 --- a/src/views/modules/product/order/index.vue +++ b/src/views/modules/product/order/index.vue @@ -60,9 +60,10 @@