From ff3f4dd8c05308370311c3e0d64fdb0e386bc3c9 Mon Sep 17 00:00:00 2001 From: mabo Date: Wed, 23 Jun 2021 17:32:08 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E8=85=BE=E8=AE=AF=E4=BA=91=E6=99=BA?= =?UTF-8?q?=E6=9C=8D=E6=A0=87=E8=AF=86=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/seller/shop/shopOperation.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/src/views/seller/shop/shopOperation.vue b/manager/src/views/seller/shop/shopOperation.vue index ccafc805..c2fea83e 100644 --- a/manager/src/views/seller/shop/shopOperation.vue +++ b/manager/src/views/seller/shop/shopOperation.vue @@ -65,13 +65,13 @@ - + From 6d94b6fbdc7406dea544bc0e7a74e12bc681b370 Mon Sep 17 00:00:00 2001 From: lifenlong Date: Wed, 23 Jun 2021 15:22:07 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E7=A7=92=E6=9D=80=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=EF=BC=8C=E7=8A=B6=E6=80=81=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/config/index.js | 16 ++--- manager/src/views/order/order/orderList.vue | 68 +++---------------- .../src/views/promotion/seckill/seckill.vue | 8 +-- seller/src/views/order/order/orderList.vue | 9 +-- .../src/views/promotion/seckill/seckill.vue | 4 +- 5 files changed, 27 insertions(+), 78 deletions(-) diff --git a/manager/src/config/index.js b/manager/src/config/index.js index 8b6b162f..680fb1b1 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -17,14 +17,14 @@ export default { * @description api请求基础路径 */ api_dev: { - // common: "https://common-api.pickmall.cn", - // buyer: "https://buyer-api.pickmall.cn", - // seller: "https://store-api.pickmall.cn", - // manager: "https://admin-api.pickmall.cn" - common: 'http://192.168.0.109:8890', - buyer: 'http://192.168.0.109:8888', - seller: 'http://192.168.0.109:8889', - manager: 'http://192.168.0.109:8887' + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + seller: "https://store-api.pickmall.cn", + manager: "https://admin-api.pickmall.cn" + // common: 'http://192.168.0.109:8890', + // buyer: 'http://192.168.0.109:8888', + // seller: 'http://192.168.0.109:8889', + // manager: 'http://192.168.0.109:8887' }, api_prod: { common: "https://common-api.pickmall.cn", diff --git a/manager/src/views/order/order/orderList.vue b/manager/src/views/order/order/orderList.vue index c78cb517..ae5d0fd6 100644 --- a/manager/src/views/order/order/orderList.vue +++ b/manager/src/views/order/order/orderList.vue @@ -40,7 +40,7 @@
- @@ -72,10 +72,6 @@ export default { 订单编号: "sn", 下单时间: "createTime", 客户名称: "memberName", - 客户账号: "", - 收货人: "", - 收货人手机号: "", - 收货人地址: "", 支付方式: { field: "clientType", callback: (value) => { @@ -92,15 +88,7 @@ export default { } }, }, - 配送方式: "", - 配送费用: "", - 订单商品金额: "", - 订单优惠金额: "", - 订单应付金额: "", - 商品SKU编号: "", 商品数量: "groupNum", - 买家备注: "", - 订单状态: "", 付款状态: { field: "payStatus", callback: (value) => { @@ -111,9 +99,6 @@ export default { : ""; }, }, - 发货状态: "", - 发票类型: "", - 发票抬头: "", 店铺: "storeName", }, loading: true, // 表单加载状态 @@ -222,56 +207,23 @@ export default { title: "下单时间", key: "createTime", width: 170, - sortable: true, - sortType: "desc", }, - { title: "操作", key: "action", align: "center", width: 150, render: (h, params) => { - return h("div", [ - h( - "Button", - - { - props: { - type: "primary", - size: "small", - }, - attrs: { - disabled: params.row.orderStatus == "UNPAID" ? false : true, - }, - style: { - marginRight: "5px", - }, - on: { - click: () => { - this.confirmPrice(params.row); - }, - }, - }, - "收款" + return h("div", [h("Button", {props: {type: "primary", size: "small",}, + attrs: {disabled: params.row.orderStatus == "UNPAID" ? false : true,}, + style: {marginRight: "5px",}, + on: {click: () => {this.confirmPrice(params.row);},}, + }, "收款" ), - h( - "Button", - { - props: { - type: "info", - size: "small", - }, - style: { - marginRight: "5px", - }, - on: { - click: () => { - this.detail(params.row); - }, - }, - }, - "查看" + h("Button", {props: {type: "info", size: "small",}, + style: {marginRight: "5px",}, + on: {click: () => {this.detail(params.row);},}, + }, "查看" ), ]); }, diff --git a/manager/src/views/promotion/seckill/seckill.vue b/manager/src/views/promotion/seckill/seckill.vue index f8b32ce4..7ee3c957 100644 --- a/manager/src/views/promotion/seckill/seckill.vue +++ b/manager/src/views/promotion/seckill/seckill.vue @@ -102,13 +102,13 @@ export default { width: 100, render: (h, params) => { if (params.row.promotionStatus == "NEW") { - return h("Tag", {props: {color: "volcano",},},"新建"); + return h("Tag", {props: {color: "geekblue",},},"新建"); } else if (params.row.promotionStatus == "START") { - return h("Tag", {props: {color: "blue",},},"开始"); + return h("Tag", {props: {color: "green",},},"开始"); } else if (params.row.promotionStatus == "END") { - return h("Tag", {props: {color: "green",},},"结束"); - } else if (params.row.promotionStatus == "CLOSE") { return h("Tag", {props: {color: "volcano",},},"结束"); + } else if (params.row.promotionStatus == "CLOSE") { + return h("Tag", {props: {color: "red",},},"结束"); } }, }, diff --git a/seller/src/views/order/order/orderList.vue b/seller/src/views/order/order/orderList.vue index 76303816..3b599e73 100644 --- a/seller/src/views/order/order/orderList.vue +++ b/seller/src/views/order/order/orderList.vue @@ -80,7 +80,7 @@ export default { { title: "订单号", key: "sn", - minWidth: 240, + minWidth: 200, tooltip: true, }, { @@ -95,7 +95,7 @@ export default { } else if (params.row.clientType == "WECHAT_MP") { return h("div", {}, "小程序端"); } else if (params.row.clientType == "APP") { - return h("div", {}, "移动应用端"); + return h("div", {}, "APP端"); } else { return h("div", {}, params.row.clientType); } @@ -145,11 +145,8 @@ export default { { title: "下单时间", key: "createTime", - width: 170, - sortable: true, - sortType: "desc", + width: 170 }, - { title: "操作", key: "action", diff --git a/seller/src/views/promotion/seckill/seckill.vue b/seller/src/views/promotion/seckill/seckill.vue index 06225112..fa0c6ed9 100644 --- a/seller/src/views/promotion/seckill/seckill.vue +++ b/seller/src/views/promotion/seckill/seckill.vue @@ -105,13 +105,13 @@ export default { color = "default"; if (params.row.promotionStatus == "NEW") { text = "未开始"; - color = "default"; + color = "geekblue"; } else if (params.row.promotionStatus == "START") { text = "已开始"; color = "green"; } else if (params.row.promotionStatus == "END") { text = "已结束"; - color = "red"; + color = "volcano"; } else if (params.row.promotionStatus == "CLOSE") { text = "已关闭"; color = "red"; From 2391f71d9aab33e1cdbe151d4693dfc36e29f59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Wed, 23 Jun 2021 18:08:22 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2ui=E4=BB=A5=E5=8F=8Abug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/forgetPassword.vue | 8 +- manager/src/config/index.js | 16 +- .../views/distribution/distributionGoods.vue | 4 +- manager/src/views/main-components/footer.vue | 2 +- .../views/page/article-manage/articleList.vue | 19 +- manager/src/views/promotion/coupon/coupon.vue | 2 +- .../promotion/pointsGoods/pointsGoods.vue | 135 ++--- seller/src/views/goods/goods-seller/goods.vue | 38 +- seller/src/views/login.vue | 2 +- seller/src/views/main-components/footer.vue | 8 +- seller/src/views/order/order/orderList.vue | 7 +- .../views/order/order/virtualOrderList.vue | 5 +- .../views/order/receiptManager/receipt.vue | 500 ++++++++---------- seller/src/views/promotion/live/addLive.vue | 4 +- .../src/views/promotion/pintuan/pintuan.scss | 34 +- .../src/views/promotion/pintuan/pintuan.vue | 2 + 16 files changed, 324 insertions(+), 462 deletions(-) diff --git a/buyer/src/pages/forgetPassword.vue b/buyer/src/pages/forgetPassword.vue index 511cffb3..322c6e50 100644 --- a/buyer/src/pages/forgetPassword.vue +++ b/buyer/src/pages/forgetPassword.vue @@ -93,13 +93,13 @@
- 帮助 - 隐私 - 条款 + 帮助 + 隐私 + 条款 Copyright © 2020 - Present - lili-shop 版权所有 diff --git a/manager/src/config/index.js b/manager/src/config/index.js index 8b6b162f..680fb1b1 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -17,14 +17,14 @@ export default { * @description api请求基础路径 */ api_dev: { - // common: "https://common-api.pickmall.cn", - // buyer: "https://buyer-api.pickmall.cn", - // seller: "https://store-api.pickmall.cn", - // manager: "https://admin-api.pickmall.cn" - common: 'http://192.168.0.109:8890', - buyer: 'http://192.168.0.109:8888', - seller: 'http://192.168.0.109:8889', - manager: 'http://192.168.0.109:8887' + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + seller: "https://store-api.pickmall.cn", + manager: "https://admin-api.pickmall.cn" + // common: 'http://192.168.0.109:8890', + // buyer: 'http://192.168.0.109:8888', + // seller: 'http://192.168.0.109:8889', + // manager: 'http://192.168.0.109:8887' }, api_prod: { common: "https://common-api.pickmall.cn", diff --git a/manager/src/views/distribution/distributionGoods.vue b/manager/src/views/distribution/distributionGoods.vue index a78c5830..05acecf5 100644 --- a/manager/src/views/distribution/distributionGoods.vue +++ b/manager/src/views/distribution/distributionGoods.vue @@ -67,10 +67,12 @@ export default { { type: "selection", width: 60, - align: "center" + align: "center", + fixed: "left", }, { title: "商品图片", + fixed: "left", key: "thumbnail", width: 120, align: "center", diff --git a/manager/src/views/main-components/footer.vue b/manager/src/views/main-components/footer.vue index 666ae443..e471877c 100644 --- a/manager/src/views/main-components/footer.vue +++ b/manager/src/views/main-components/footer.vue @@ -8,7 +8,7 @@ Copyright © 2020 - Present lili-shop {{ $t('rights') }} diff --git a/manager/src/views/page/article-manage/articleList.vue b/manager/src/views/page/article-manage/articleList.vue index 360492c8..cc66d389 100644 --- a/manager/src/views/page/article-manage/articleList.vue +++ b/manager/src/views/page/article-manage/articleList.vue @@ -57,7 +57,7 @@ - + @@ -435,28 +435,13 @@ export default { this.form.categoryId = res.result.categoryId; this.treeValue = data.articleCategoryName; this.form.id = data.id; - this.form.content = htmlEscape(res.result.content); + this.form.content =res.result.content; this.form.title = res.result.title; this.form.sort = res.result.sort; this.form.openStatus = res.result.openStatus; } }); }, - - htmlEscape(text) { - return text.replace(/[<>"&]/g, function (match, pos, originalText) { - switch (match) { - case "<": - return "<"; - case ">": - return ">"; - case "&": - return "&"; - case '"': - return """; - } - }); - }, remove(v) { this.$Modal.confirm({ title: "确认删除", diff --git a/manager/src/views/promotion/coupon/coupon.vue b/manager/src/views/promotion/coupon/coupon.vue index 306a25af..b39dd19d 100644 --- a/manager/src/views/promotion/coupon/coupon.vue +++ b/manager/src/views/promotion/coupon/coupon.vue @@ -161,7 +161,7 @@ export default { }, { title: "活动时间", - + width: 150, render: (h, params) => { if (params.row.getType === "ACTIVITY") { return h("div", "长期有效"); diff --git a/manager/src/views/promotion/pointsGoods/pointsGoods.vue b/manager/src/views/promotion/pointsGoods/pointsGoods.vue index dd209a87..fcb82b30 100644 --- a/manager/src/views/promotion/pointsGoods/pointsGoods.vue +++ b/manager/src/views/promotion/pointsGoods/pointsGoods.vue @@ -2,78 +2,37 @@ @@ -159,55 +85,62 @@ export default { pageSize: 10, // 页面大小 order: "desc", // 默认排序方式 }, - statusList: [ // 活动状态 + statusList: [ + // 活动状态 { label: "未开始", value: "NEW" }, { label: "已开始", value: "START" }, { label: "已结束", value: "END" }, { label: "已关闭", value: "CLOSE" }, ], - columns: [ // 表头 + columns: [ + // 表头 { title: "商品名称", slot: "goodsName", - minWidth: 120, + minWidth: 150, + fixed: "left", tooltip: true, }, { title: "市场价", slot: "price", + width: 100, }, { title: "结算价", slot: "settlementPrice", + width: 100, }, - { - title: "分类", - key: "pointsGoodsCategoryName", - }, + { title: "库存数量", slot: "quantity", + width: 100, }, { title: "活动剩余库存", key: "activeStock", + width: 150, }, { title: "兑换积分", key: "points", + width: 100, }, { title: "所属店铺", key: "storeName", + width: 100, }, { title: "活动开始时间", slot: "startTime", - minWidth:100 + minWidth: 150, }, { title: "状态", key: "promotionStatus", + width: 100, render: (h, params) => { let text = "未知", color = ""; @@ -227,10 +160,16 @@ export default { return h("div", [h("Tag", { props: { color: color } }, text)]); }, }, + { + title: "分类", + key: "pointsGoodsCategoryName", + width: 100, + }, { title: "操作", slot: "action", align: "center", + fixed: "right", width: 150, }, ], @@ -327,5 +266,5 @@ export default { }; diff --git a/seller/src/views/goods/goods-seller/goods.vue b/seller/src/views/goods/goods-seller/goods.vue index df95601d..5952cb47 100644 --- a/seller/src/views/goods/goods-seller/goods.vue +++ b/seller/src/views/goods/goods-seller/goods.vue @@ -4,7 +4,7 @@
- + - + @@ -55,8 +55,7 @@
- +
@@ -67,15 +66,21 @@ - + - -
+ + +
+
+ + + +
+
@@ -86,8 +91,7 @@ - + 卖家承担运费 @@ -259,9 +263,9 @@ export default { key: "goodsType", width: 130, render: (h, params) => { - if (params.row.goodsType === 'PHYSICAL_GOODS') { + if (params.row.goodsType === "PHYSICAL_GOODS") { return h("div", "实物商品"); - } else if (params.row.goodsType === 'VIRTUAL_GOODS') { + } else if (params.row.goodsType === "VIRTUAL_GOODS") { return h("div", "虚拟商品"); } else { return h("div", "电子卡券"); @@ -455,10 +459,10 @@ export default { this.getDataList(); }, addGoods() { - this.$router.push({name: "goods-operation"}); + this.$router.push({ name: "goods-operation" }); }, editGoods(v) { - this.$router.push({name: "goods-operation-edit", query: {id: v.id}}); + this.$router.push({ name: "goods-operation-edit", query: { id: v.id } }); }, //批量操作 @@ -481,7 +485,7 @@ export default { } }, getStockDetail(id) { - getGoodsSkuListDataSeller({goodsId: id, pageSize: 1000}).then((res) => { + getGoodsSkuListDataSeller({ goodsId: id, pageSize: 1000 }).then((res) => { if (res.success) { this.updateStockModalVisible = true; this.stockAllUpdate = undefined; @@ -491,7 +495,7 @@ export default { }, updateStock() { let updateStockList = this.stockList.map((i) => { - let j = {skuId: i.id, quantity: i.quantity}; + let j = { skuId: i.id, quantity: i.quantity }; if (this.stockAllUpdate) { j.quantity = this.stockAllUpdate; } diff --git a/seller/src/views/login.vue b/seller/src/views/login.vue index bb014b1a..a1bd088a 100644 --- a/seller/src/views/login.vue +++ b/seller/src/views/login.vue @@ -162,7 +162,7 @@ export default { } .login { height: 100%; - background: url("../assets/background.svg") no-repeat; + background: url("../assets/background.png") no-repeat; background-size: 100%; background-position-y: bottom; background-color: #edf0f3; diff --git a/seller/src/views/main-components/footer.vue b/seller/src/views/main-components/footer.vue index 4df03af6..c1fb9ba6 100644 --- a/seller/src/views/main-components/footer.vue +++ b/seller/src/views/main-components/footer.vue @@ -1,14 +1,14 @@ diff --git a/seller/src/views/promotion/live/addLive.vue b/seller/src/views/promotion/live/addLive.vue index 8f1ee673..5dcd9529 100644 --- a/seller/src/views/promotion/live/addLive.vue +++ b/seller/src/views/promotion/live/addLive.vue @@ -517,7 +517,7 @@ export default { if (res.success) { this.$Message.success("修改成功!"); - this.$router.push({ path: "/storePromotion/live" }); + this.$router.push({ path: "/promotion/live" }); } this.spinShow = false; }); @@ -528,7 +528,7 @@ export default { if (res.success) { this.$Message.success("添加成功!"); - this.$router.push({ path: "/storePromotion/live" }); + this.$router.push({ path: "/promotion/live" }); } this.spinShow = false; }); diff --git a/seller/src/views/promotion/pintuan/pintuan.scss b/seller/src/views/promotion/pintuan/pintuan.scss index a1f97b1f..c80994d4 100644 --- a/seller/src/views/promotion/pintuan/pintuan.scss +++ b/seller/src/views/promotion/pintuan/pintuan.scss @@ -1,41 +1,11 @@ - .search { .operation { margin-bottom: 2vh; } - - .select-count { - font-weight: 600; - color: #40a9ff; - } - - .select-clear { - margin-left: 10px; - } - .page { margin-top: 2vh; } - - .drop-down { - margin-left: 5px; - } } - -.newPromotionView { - width: 80%; - flex-direction: column; - align-items: center; - justify-content: center; - - - Input { - flex-direction: row; - } - - .slotSpan { - flex-direction: column; - align-items: center; - justify-content: center; - } +.row { + margin-bottom: 5px; } diff --git a/seller/src/views/promotion/pintuan/pintuan.vue b/seller/src/views/promotion/pintuan/pintuan.vue index 9270a0c6..e05ff24a 100644 --- a/seller/src/views/promotion/pintuan/pintuan.vue +++ b/seller/src/views/promotion/pintuan/pintuan.vue @@ -52,6 +52,7 @@ @on-selection-change="changeSelect" > From 31295d7cb23a8b024fed12f12b4adb9de4267ab3 Mon Sep 17 00:00:00 2001 From: mabo Date: Wed, 23 Jun 2021 18:18:38 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=88=91=E7=9A=84=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E6=8E=89=E7=94=A8=E6=88=B7=E5=90=8D=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/home/orderCenter/MyOrder.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/buyer/src/pages/home/orderCenter/MyOrder.vue b/buyer/src/pages/home/orderCenter/MyOrder.vue index c66c1ec5..fa03011e 100644 --- a/buyer/src/pages/home/orderCenter/MyOrder.vue +++ b/buyer/src/pages/home/orderCenter/MyOrder.vue @@ -29,7 +29,6 @@
{{ filterOrderStatus(order.orderStatus) }}
订单号:{{ order.sn }}      {{order.createTime}} -    {{ order.memberName | secrecyMobile }}
From 4d7b4eb2b4e96cb9720f2ce5d37445c86416f733 Mon Sep 17 00:00:00 2001 From: mabo Date: Wed, 23 Jun 2021 18:19:43 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=95=86=E5=93=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/config/index.js | 16 +-- seller/src/api/goods.js | 12 +- seller/src/config/index.js | 8 +- .../goods/goods-seller/goodsOperation.vue | 108 +----------------- 4 files changed, 24 insertions(+), 120 deletions(-) diff --git a/manager/src/config/index.js b/manager/src/config/index.js index 8b6b162f..680fb1b1 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -17,14 +17,14 @@ export default { * @description api请求基础路径 */ api_dev: { - // common: "https://common-api.pickmall.cn", - // buyer: "https://buyer-api.pickmall.cn", - // seller: "https://store-api.pickmall.cn", - // manager: "https://admin-api.pickmall.cn" - common: 'http://192.168.0.109:8890', - buyer: 'http://192.168.0.109:8888', - seller: 'http://192.168.0.109:8889', - manager: 'http://192.168.0.109:8887' + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + seller: "https://store-api.pickmall.cn", + manager: "https://admin-api.pickmall.cn" + // common: 'http://192.168.0.109:8890', + // buyer: 'http://192.168.0.109:8888', + // seller: 'http://192.168.0.109:8889', + // manager: 'http://192.168.0.109:8887' }, api_prod: { common: "https://common-api.pickmall.cn", diff --git a/seller/src/api/goods.js b/seller/src/api/goods.js index 958e3770..36359d22 100644 --- a/seller/src/api/goods.js +++ b/seller/src/api/goods.js @@ -132,13 +132,13 @@ export const delSpec = (id, params) => { return deleteRequest(`/goods/spec/del/${id}`, params); }; // 获取商品规格值列表 -export const getSpecValuesListData = (id, params) => { - return getRequest(`/goods/spec-values/values/${id}`, params); -}; +// export const getSpecValuesListData = (id, params) => { +// return getRequest(`/goods/spec-values/values/${id}`, params); +// }; // 添加商品规格值 -export const saveSpecValues = (id, params) => { - return postRequest(`/goods/spec-values/save/${id}`, params); -}; +// export const saveSpecValues = (id, params) => { +// return postRequest(`/goods/spec-values/save/${id}`, params); +// }; // 查询某分类下的全部子分类列表 export const getGoodsCategory = parent_id => { diff --git a/seller/src/config/index.js b/seller/src/config/index.js index 27da5927..17f824e8 100644 --- a/seller/src/config/index.js +++ b/seller/src/config/index.js @@ -22,10 +22,10 @@ export default { // buyer: 'https://buyer-api.pickmall.cn', // seller: 'https://store-api.pickmall.cn', // manager: 'https://admin-api.pickmall.cn', - common: 'http://192.168.0.109:8890', - buyer: 'http://192.168.0.109:8888', - seller: 'http://192.168.0.109:8889', - manager: 'http://192.168.0.109:8887' + common: 'http://192.168.0.100:8890', + buyer: 'http://192.168.0.100:8888', + seller: 'http://192.168.0.100:8889', + manager: 'http://192.168.0.100:8887' }, api_prod: { common: 'https://common-api.pickmall.cn', diff --git a/seller/src/views/goods/goods-seller/goodsOperation.vue b/seller/src/views/goods/goods-seller/goodsOperation.vue index d892cdf4..b5dbab40 100644 --- a/seller/src/views/goods/goods-seller/goodsOperation.vue +++ b/seller/src/views/goods/goods-seller/goodsOperation.vue @@ -185,10 +185,7 @@
- + @@ -197,22 +194,8 @@
- - + +
@@ -853,6 +836,7 @@ export default { fieldData.unshift(fieldData.splice(index, 1)[0]); } }, + // 获取商品模板 GET_GoodsTemplate() { let searchParams = { saveType: "TEMPLATE", @@ -865,6 +849,7 @@ export default { } }); }, + // 编辑sku图片 editSkuPicture(row) { console.log(row); if (row.images && row.images.length > 0) { @@ -952,26 +937,6 @@ export default { } return !check; }, - async getActiveSkuItem(index, $index, item, val) { - this.specSelected = ""; - await this.GET_SkuSpec(); - }, - async getActiveSkuValueItem(index, $index, item, val) { - this.specValSelected = ""; - await this.GET_SkuSpecVal(item.spec_id); - }, - async editSkuItem(item, $index) { - if (item.name) { - API_GOODS.insertSpecSeller({ - specName: item.name, - categoryPath: this.baseInfoForm.categoryPath, - }).then((res) => { - if (res.message !== "60001") { - this.skuItemChange(item.name, $index); - } - }); - } - }, gotoGoodsList() { this.$router.push({ name: "goods" }); @@ -1170,25 +1135,7 @@ export default { } ); }, - async GET_SkuSpec() { - if(!this.specSelected){ - return; - } - let specResult = await API_GOODS.getSpecListSellerData({ - pageNumber: 1, - pageSize: 10, - specName: this.specSelected, - categoryPath: this.baseInfoForm.categoryPath, - }); - if (specResult.success && specResult.result.records.length > 0) { - this.specListSelected = specResult.result.records.map( - (i) => i.specName - ); - this.specList = specResult.result.records; - } else { - this.specListSelected = []; - } - }, + /** 添加规格项 */ addSkuItem() { if (this.skuInfo.length >= 5) { @@ -1296,49 +1243,6 @@ export default { */ this.renderTableData(); }, - /** 编辑规格值时触发 */ - async editSkuIValue(item, val, $index, index) { - await API_GOODS.saveSpecValuesSeller(item.spec_id, { - spec_value: [val.value], - }); - - /** - * 渲染规格详细表格 - */ - this.renderTableData(); - }, - /** 获取编辑时的skuInfo信息 */ - getSkuInfo() { - /** 下拉列表数据(skuData)存在时 检测productSkuInfo中对应的规格(spec_id)项 并且赋值于skuInfo中对应的规格项信息(描述 + 名称) */ - if (this.categoryId) { - API_GOODS.getSpecValuesListData(this.categoryId, {}).then( - (response) => { - this.skuData = response; - if ( - this.skuData.length > 0 && - Array.isArray(this.productSkuInfo) && - this.productSkuInfo.length > 0 - ) { - this.skuInfo = cloneObj(this.productSkuInfo); - if (this.skuInfo.length > 0) { - this.skuInfo.forEach((key) => { - this.skuData.forEach((item) => { - if (key.spec_id === item.spec_id) { - key.name = item.name; - key.spec_memo = item.spec_memo; - } - }); - }); - } - } - } - ); - } - /** - * 渲染规格详细表格 - */ - this.renderTableData(); - }, /** * 渲染table所需要的column 和 data */ From 4133badc465ddb4a1503827e3f61de1563939a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Thu, 24 Jun 2021 10:32:51 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9B=B4=E6=92=AD=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E8=87=AA=E8=90=A5=E5=BA=97=E5=8F=AF=E4=BB=A5=E8=B5=A0=E9=80=81?= =?UTF-8?q?=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/promotion.js | 2 +- seller/src/config/index.js | 16 ++++++++-------- .../src/views/promotion/fullCut/newFullCut.vue | 2 ++ seller/src/views/promotion/live/addLive.vue | 5 ++--- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/manager/src/api/promotion.js b/manager/src/api/promotion.js index 42173562..0c7c6113 100644 --- a/manager/src/api/promotion.js +++ b/manager/src/api/promotion.js @@ -30,7 +30,7 @@ export const getLiveList = params => { // 获取直播间详情 export const getLiveInfo = studioId => { - return getRequest(`/broadcast/studio/studioInfo/${studioId}`); + return getRequest(`/broadcast/studio/${studioId}`); }; // 获取当前进行中的促销活动商品 diff --git a/seller/src/config/index.js b/seller/src/config/index.js index 27da5927..a7163666 100644 --- a/seller/src/config/index.js +++ b/seller/src/config/index.js @@ -18,14 +18,14 @@ export default { * @description api请求基础路径 */ api_dev: { - // common: 'https://common-api.pickmall.cn', - // buyer: 'https://buyer-api.pickmall.cn', - // seller: 'https://store-api.pickmall.cn', - // manager: 'https://admin-api.pickmall.cn', - common: 'http://192.168.0.109:8890', - buyer: 'http://192.168.0.109:8888', - seller: 'http://192.168.0.109:8889', - manager: 'http://192.168.0.109:8887' + common: 'https://common-api.pickmall.cn', + buyer: 'https://buyer-api.pickmall.cn', + seller: 'https://store-api.pickmall.cn', + manager: 'https://admin-api.pickmall.cn', + // common: 'http://192.168.0.109:8890', + // buyer: 'http://192.168.0.109:8888', + // seller: 'http://192.168.0.109:8889', + // manager: 'http://192.168.0.109:8887' }, api_prod: { common: 'https://common-api.pickmall.cn', diff --git a/seller/src/views/promotion/fullCut/newFullCut.vue b/seller/src/views/promotion/fullCut/newFullCut.vue index 9f44bb6d..3f4c4d9f 100644 --- a/seller/src/views/promotion/fullCut/newFullCut.vue +++ b/seller/src/views/promotion/fullCut/newFullCut.vue @@ -113,9 +113,11 @@ >  送积分 +