From f512caa81dd4b1c045cb56efe53d53bc281393a3 Mon Sep 17 00:00:00 2001 From: paulGao Date: Wed, 21 Jul 2021 08:00:24 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=88=86=E8=AF=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/index.js | 21 ++ manager/src/views/customWords/index.vue | 323 ++++++++++++++++++++++++ 2 files changed, 344 insertions(+) create mode 100644 manager/src/views/customWords/index.vue diff --git a/manager/src/api/index.js b/manager/src/api/index.js index da5eb871..c07340ad 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -417,3 +417,24 @@ export const resetPassword = (params) => { export const createIndex = () => { return getRequest(`/elasticsearch`); }; + +// 分页查询自定义分词 +export const getCustomWordsPage = (params) => { + return getRequest(`/manager/custom-words`, params); +}; + +// 添加自定义分词 +export const insertCustomWords = (params) => { + return postRequest(`/manager/custom-words`, params); +}; + +// 修改自定义分词 +export const updateCustomWords = (params) => { + return putRequest(`/manager/custom-words`, params); +}; + +// 删除自定义分词 +export const delCustom = (id) => { + return deleteRequest(`/manager/custom-words/${id}`); +}; + diff --git a/manager/src/views/customWords/index.vue b/manager/src/views/customWords/index.vue new file mode 100644 index 00000000..5638fb08 --- /dev/null +++ b/manager/src/views/customWords/index.vue @@ -0,0 +1,323 @@ + + + From 75bff1edc4a6d865f7b1425d6ef1ff649d0257ac Mon Sep 17 00:00:00 2001 From: mabo Date: Wed, 21 Jul 2021 15:27:39 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=9A=E5=91=98=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A6=96=E9=A1=B5=E6=8C=89=E9=92=AE=EF=BC=8C?= =?UTF-8?q?pclogo=E6=94=B9=E4=B8=BA=E9=98=BF=E9=87=8C=E4=BA=91=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=EF=BC=8C=E7=BC=96=E8=BE=91=E6=8A=98=E6=89=A3=E5=88=B8?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E4=BC=A0=E6=8A=98=E6=89=A3=E5=80=BC=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/App.vue | 11 - buyer/src/components/Search.vue | 16 +- buyer/src/components/header/Header.vue | 1 + buyer/src/config/index.js | 16 +- buyer/src/pages/Login.vue | 6 +- buyer/src/pages/SignUp.vue | 7 +- buyer/src/pages/forgetPassword.vue | 4 +- buyer/src/pages/payment/Pay.vue | 13 +- buyer/src/vuex/store.js | 3 +- manager/src/api/promotion.js | 5 +- manager/src/config/index.js | 16 +- manager/src/router/router.js | 12 - .../src/views/goods/goods-info/goodsApply.vue | 87 ++-- .../views/goods/goods-info/goodsDetail.scss | 381 ------------------ .../views/goods/goods-info/goodsDetail.vue | 148 +++---- .../src/views/goods/goods-manage/brand.vue | 53 +-- .../src/views/goods/goods-manage/category.vue | 255 ++++++------ .../views/goods/goods-manage/parameter.vue | 8 +- manager/src/views/goods/goods-manage/spec.vue | 54 ++- .../src/views/goods/goods-review/index.scss | 48 --- .../src/views/goods/goods-review/index.vue | 55 ++- .../my-components/lili/upload-pic-input.vue | 30 +- .../src/views/promotion/fullCut/full-cut.vue | 57 ++- seller/src/api/promotion.js | 4 + seller/src/libs/util.js | 1 + seller/src/store/modules/app.js | 6 +- .../my-components/lili/upload-pic-input.vue | 21 +- .../views/promotion/coupon/couponPublish.vue | 1 - .../src/views/promotion/fullCut/fullCut.vue | 66 ++- .../views/promotion/fullCut/newFullCut.vue | 8 +- 30 files changed, 490 insertions(+), 903 deletions(-) delete mode 100644 manager/src/views/goods/goods-info/goodsDetail.scss delete mode 100644 manager/src/views/goods/goods-review/index.scss diff --git a/buyer/src/App.vue b/buyer/src/App.vue index 71dbc4bc..ff215123 100644 --- a/buyer/src/App.vue +++ b/buyer/src/App.vue @@ -7,7 +7,6 @@ diff --git a/buyer/src/components/Search.vue b/buyer/src/components/Search.vue index 7d6b5471..b8ee208f 100644 --- a/buyer/src/components/Search.vue +++ b/buyer/src/components/Search.vue @@ -2,7 +2,7 @@
diff --git a/manager/src/views/goods/goods-manage/parameter.vue b/manager/src/views/goods/goods-manage/parameter.vue index 5291af29..dee7a669 100644 --- a/manager/src/views/goods/goods-manage/parameter.vue +++ b/manager/src/views/goods/goods-manage/parameter.vue @@ -116,7 +116,6 @@ import { } from "@/api/goods"; export default { name: "categoryParams", - components: {}, data() { return { /** 分类ID */ @@ -127,19 +126,17 @@ export default { modalType: 0, /** 添加或编辑标题 */ modalTitle: "", - modalTitle1: "", /** 参数添加或编辑弹出框 */ dialogParamsVisible: false, /** 参数组添加或编辑弹出框 */ dialogParamsGroupVisible: false, - /** 参数ID **/ - paramId: "", //参数表单 paramForm: {}, /** 参数值 **/ ops:{ options: [] }, + // 参数表单 paramGroupForm: {}, /** 添加、编辑参数 规格 */ formValidate: { @@ -161,6 +158,7 @@ export default { }, }, methods: { + // 初始化数据 init() { this.getDataList(); }, @@ -207,6 +205,7 @@ export default { this.modalTitle = "修改参数组"; this.dialogParamsGroupVisible = true; }, + // 添加参数 handleAddParamsGroup() { this.paramGroupForm = { @@ -279,6 +278,7 @@ export default { } }); }, + // 获取分类列表 getDataList() { getCategoryParamsListData(this.categoryId).then((res) => { if (res.success) { diff --git a/manager/src/views/goods/goods-manage/spec.vue b/manager/src/views/goods/goods-manage/spec.vue index e55533df..a0b5370a 100644 --- a/manager/src/views/goods/goods-manage/spec.vue +++ b/manager/src/views/goods/goods-manage/spec.vue @@ -1,27 +1,25 @@ diff --git a/buyer/src/pages/home/orderCenter/ApplyAfterSale.vue b/buyer/src/pages/home/orderCenter/ApplyAfterSale.vue index f2a45781..d716a60d 100644 --- a/buyer/src/pages/home/orderCenter/ApplyAfterSale.vue +++ b/buyer/src/pages/home/orderCenter/ApplyAfterSale.vue @@ -71,7 +71,7 @@ - +
快递至第三方卖家
diff --git a/buyer/src/pages/home/userCenter/Coupons.vue b/buyer/src/pages/home/userCenter/Coupons.vue index ea14a3c9..297effc3 100644 --- a/buyer/src/pages/home/userCenter/Coupons.vue +++ b/buyer/src/pages/home/userCenter/Coupons.vue @@ -1,32 +1,137 @@ diff --git a/buyer/src/pages/payment/Pay.vue b/buyer/src/pages/payment/Pay.vue index fefa29b2..bd6ef7e1 100644 --- a/buyer/src/pages/payment/Pay.vue +++ b/buyer/src/pages/payment/Pay.vue @@ -190,7 +190,7 @@ {{ item.couponDiscount }}{{ item.discount }}