From 336643419e79d4908b47239f8239ee4c86339f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 18 Jun 2021 14:52:40 +0800 Subject: [PATCH 01/48] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E4=B8=8D=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E8=A7=A3=E5=86=B3pc=E7=AB=AF?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E7=A5=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/components/invoiceModal/index.vue | 195 ++- buyer/src/pages/payment/Pay.vue | 1266 +++++++++-------- manager/src/api/goods.js | 7 + manager/src/config/index.js | 13 +- .../src/views/goods/goods-manage/brand.vue | 697 +++++---- .../src/views/goods/goods-manage/category.vue | 83 +- 6 files changed, 1130 insertions(+), 1131 deletions(-) diff --git a/buyer/src/components/invoiceModal/index.vue b/buyer/src/components/invoiceModal/index.vue index e332635b..a746f5e7 100644 --- a/buyer/src/components/invoiceModal/index.vue +++ b/buyer/src/components/invoiceModal/index.vue @@ -11,42 +11,37 @@ --> @@ -54,100 +49,104 @@ diff --git a/manager/src/views/goods/goods-manage/category.vue b/manager/src/views/goods/goods-manage/category.vue index b4183fe8..f2b70e07 100644 --- a/manager/src/views/goods/goods-manage/category.vue +++ b/manager/src/views/goods/goods-manage/category.vue @@ -11,7 +11,7 @@ From be42bfcf4018c1f24d5ad6df47d047f1d9c3e107 Mon Sep 17 00:00:00 2001 From: pikachu <1321288662@qq.com> Date: Sat, 19 Jun 2021 16:10:55 +0800 Subject: [PATCH 03/48] =?UTF-8?q?=E8=99=9A=E6=8B=9F=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=92=8C=E5=95=86=E5=93=81=E8=AE=A2=E5=8D=95=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/libs/routerJson.js | 14 + seller/src/views/order/order/orderList.vue | 46 +-- .../views/order/order/virtualOrderList.vue | 300 ++++++++++++++++++ 3 files changed, 316 insertions(+), 44 deletions(-) create mode 100644 seller/src/views/order/order/virtualOrderList.vue diff --git a/seller/src/libs/routerJson.js b/seller/src/libs/routerJson.js index 994f24e6..b020ba62 100644 --- a/seller/src/libs/routerJson.js +++ b/seller/src/libs/routerJson.js @@ -143,6 +143,20 @@ export const result = [ url: "", children: null, permTypes: [] + }, + { + name: "virtualOrderList", + showAlways: true, + level: 2, + type: 0, + title: "虚拟订单", + path: "virtualOrderList", + component: "order/order/virtualOrderList", + icon: "md-person", + isMenu: true, + url: "", + children: null, + permTypes: [] } ] }, diff --git a/seller/src/views/order/order/orderList.vue b/seller/src/views/order/order/orderList.vue index bbda4d7d..ec8987a5 100644 --- a/seller/src/views/order/order/orderList.vue +++ b/seller/src/views/order/order/orderList.vue @@ -8,14 +8,6 @@ - - - - - - - - - -
+
@@ -83,6 +56,7 @@ export default { orderSn: "", buyerName: "", orderStatus: "", + orderType:"NORMAL" }, selectDate: null, form: { @@ -123,22 +97,6 @@ export default { } }, }, - { - title: "订单类型", - key: "orderType", - width: 120, - render: (h, params) => { - if (params.row.orderType == "NORMAL") { - return h("div", [h("span", {}, "普通订单")]); - } else if (params.row.orderType == "PINTUAN") { - return h("div", [h("span", {}, "拼团订单")]); - } else if (params.row.orderType == "GIFT") { - return h("div", [h("span", {}, "赠品订单")]); - } else if (params.row.orderType == "VIRTUAL") { - return h("div", [h("tag", {}, "核验订单")]); - } - }, - }, { title: "买家名称", key: "memberName", diff --git a/seller/src/views/order/order/virtualOrderList.vue b/seller/src/views/order/order/virtualOrderList.vue new file mode 100644 index 00000000..2eb671c3 --- /dev/null +++ b/seller/src/views/order/order/virtualOrderList.vue @@ -0,0 +1,300 @@ + + + + From 861c7f905a3b333960598a92b3677421a601c02b Mon Sep 17 00:00:00 2001 From: pikachu <1321288662@qq.com> Date: Sat, 19 Jun 2021 16:25:17 +0800 Subject: [PATCH 04/48] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E5=95=86=E5=93=81=E8=AE=A2=E5=8D=95=E5=92=8C=E8=99=9A=E6=8B=9F?= =?UTF-8?q?=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/views/order/order/orderDetail.vue | 3 ++- seller/src/views/order/order/orderList.vue | 8 ++++++-- .../src/views/order/order/virtualOrderList.vue | 16 +--------------- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/seller/src/views/order/order/orderDetail.vue b/seller/src/views/order/order/orderDetail.vue index 740dfa33..e758ffd2 100644 --- a/seller/src/views/order/order/orderDetail.vue +++ b/seller/src/views/order/order/orderDetail.vue @@ -94,7 +94,7 @@
{{ orderInfo.order.remark }}
-
+
配送方式:
{{ @@ -521,6 +521,7 @@ export default { }, //弹出订单核销框 orderTake() { + this.orderTakeForm.qrCode = this.orderInfo.order.verificationCode this.orderTakeModal = true; }, //订单核销提交 diff --git a/seller/src/views/order/order/orderList.vue b/seller/src/views/order/order/orderList.vue index ec8987a5..b6458775 100644 --- a/seller/src/views/order/order/orderList.vue +++ b/seller/src/views/order/order/orderList.vue @@ -16,7 +16,6 @@ - @@ -27,7 +26,12 @@ -
+
+ +
+
diff --git a/seller/src/views/order/order/virtualOrderList.vue b/seller/src/views/order/order/virtualOrderList.vue index 2eb671c3..a95e5875 100644 --- a/seller/src/views/order/order/virtualOrderList.vue +++ b/seller/src/views/order/order/virtualOrderList.vue @@ -13,8 +13,6 @@ @@ -214,14 +208,6 @@ export default { }); } }, - /** - * 批量发货 - */ - expressOrderDeliver() { - this.$router.push({ - path: "/export-order-deliver", - }); - }, init() { this.getDataList(); }, From 85bfb48c0cb21204a100546f26e4397dada0b223 Mon Sep 17 00:00:00 2001 From: pikachu <1321288662@qq.com> Date: Sun, 20 Jun 2021 10:32:35 +0800 Subject: [PATCH 05/48] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E9=83=A8=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E4=B8=8D=E8=83=BD=E6=89=8B=E5=8A=A8=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/order/order/exportOrderDeliver.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/seller/src/views/order/order/exportOrderDeliver.vue b/seller/src/views/order/order/exportOrderDeliver.vue index e22e8777..b2c4b69d 100644 --- a/seller/src/views/order/order/exportOrderDeliver.vue +++ b/seller/src/views/order/order/exportOrderDeliver.vue @@ -44,7 +44,7 @@ import JsonExcel from "vue-json-excel"; import { downLoadDeliverExcel, uploadDeliverExcel } from "@/api/order.js"; import { baseUrl } from "@/libs/axios.js"; export default { - components: { + components: { "download-excel": JsonExcel, }, data() { @@ -79,10 +79,14 @@ export default { methods: { // 点击选择步骤 handleCheckStep(val) { - this.stepList.map((item) => { - item.checked = false; - }); - val.checked = true; + if(val.title.search('3') == -1){ + console.warn(val) + this.stepList.map((item) => { + item.checked = false; + }); + val.checked = true; + } + }, From c3be931218922dc257c660f42bada20a135babdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Mon, 21 Jun 2021 14:15:52 +0800 Subject: [PATCH 06/48] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=E6=B2=A1=E6=9C=89=E8=B7=B3=E8=BD=AC=E7=9A=84?= =?UTF-8?q?Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/libs/routerJson.js | 72 ++++++++++------- .../views/order/order/exportOrderDeliver.vue | 53 ++++++++++--- seller/src/views/order/order/orderList.vue | 7 +- seller/src/views/promotion/live/addLive.vue | 79 +++++++++++++++---- 4 files changed, 154 insertions(+), 57 deletions(-) diff --git a/seller/src/libs/routerJson.js b/seller/src/libs/routerJson.js index b020ba62..2016930c 100644 --- a/seller/src/libs/routerJson.js +++ b/seller/src/libs/routerJson.js @@ -395,6 +395,49 @@ export const result = [ } ] }, + { + name: "lives", + showAlways: true, + level: 1, + type: 0, + title: "直播活动", + path: "/promotion", + component: "Main", + icon: "md-person", + isMenu: true, + url: "", + permTypes: [], + children: [ + { + name: "live", + showAlways: true, + level: 2, + type: 0, + title: "直播管理", + path: "live", + component: "promotion/live/live", + icon: "md-person", + isMenu: true, + url: "", + permTypes: [], + children: null + }, + { + name: "liveGoods", + showAlways: true, + level: 2, + type: 0, + title: "直播商品", + path: "liveGoods", + component: "promotion/live/liveGoods", + icon: "md-person", + isMenu: true, + url: "", + permTypes: [], + children: null + } + ] + }, { name: "storePromotion", showAlways: true, @@ -436,34 +479,7 @@ export const result = [ permTypes: [], children: null }, - { - name: "live", - showAlways: true, - level: 2, - type: 0, - title: "直播管理", - path: "live", - component: "promotion/live/live", - icon: "md-person", - isMenu: true, - url: "", - permTypes: [], - children: null - }, - { - name: "liveGoods", - showAlways: true, - level: 2, - type: 0, - title: "直播商品", - path: "liveGoods", - component: "promotion/live/liveGoods", - icon: "md-person", - isMenu: true, - url: "", - permTypes: [], - children: null - } + ] }, { diff --git a/seller/src/views/order/order/exportOrderDeliver.vue b/seller/src/views/order/order/exportOrderDeliver.vue index b2c4b69d..cc2ba500 100644 --- a/seller/src/views/order/order/exportOrderDeliver.vue +++ b/seller/src/views/order/order/exportOrderDeliver.vue @@ -17,8 +17,8 @@
- +

选择或拖拽文件上传

@@ -26,11 +26,13 @@
-
+
+

发货完成

- + +
@@ -44,7 +46,7 @@ import JsonExcel from "vue-json-excel"; import { downLoadDeliverExcel, uploadDeliverExcel } from "@/api/order.js"; import { baseUrl } from "@/libs/axios.js"; export default { - components: { + components: { "download-excel": JsonExcel, }, data() { @@ -79,32 +81,50 @@ export default { methods: { // 点击选择步骤 handleCheckStep(val) { - if(val.title.search('3') == -1){ - console.warn(val) + if (val.title.search("3") == -1) { + console.warn(val); this.stepList.map((item) => { item.checked = false; }); val.checked = true; } - }, - handleUpload(file) { this.file = file; this.upload(); return false; }, + navigationToGoodsOrder() { + this.$router.push({ + path: "/order/orderList", + }); + }, + + close() { + this.$store.commit("removeTag", "export-order-deliver"); + localStorage.storeOpenedList = JSON.stringify( + this.$store.state.app.storeOpenedList + ); + this.$router.go(-1); + }, + /** * 上传文件 */ async upload() { let fd = new FormData(); fd.append("files", this.file); - await uploadDeliverExcel(fd); - }, + let res = await uploadDeliverExcel(fd); + if (res.success) { + this.stepList.map((item) => { + item.checked = false; + }); + this.stepList[2].checked = true; + } + }, /** * 下载excel @@ -176,4 +196,15 @@ img { width: 100px; height: 100px; } +.success { + align-items: center; + flex-direction: column; + > h1 { + font-size: 28px; + margin: 10px; + } + /deep/ .btn { + margin: 10px; + } +} diff --git a/seller/src/views/order/order/orderList.vue b/seller/src/views/order/order/orderList.vue index b6458775..4bc99a0b 100644 --- a/seller/src/views/order/order/orderList.vue +++ b/seller/src/views/order/order/orderList.vue @@ -60,7 +60,7 @@ export default { orderSn: "", buyerName: "", orderStatus: "", - orderType:"NORMAL" + orderType: "NORMAL", }, selectDate: null, form: { @@ -191,8 +191,6 @@ export default { let result = await verificationCode(this.orderCode); if (result.success) { - - this.$router.push({ name: "order-detail", query: { sn: result.result.sn || this.orderCode }, @@ -271,6 +269,9 @@ export default { }); }, }, + mounted() { + this.init(); + }, activated() { this.init(); }, diff --git a/seller/src/views/promotion/live/addLive.vue b/seller/src/views/promotion/live/addLive.vue index f2d9327f..5b5d0090 100644 --- a/seller/src/views/promotion/live/addLive.vue +++ b/seller/src/views/promotion/live/addLive.vue @@ -172,6 +172,7 @@ export default { // 不能选择今天以前的时间 optionsTime: { disabledDate(date) { + // console.log(data) return date && date.valueOf() < Date.now() - 86400000; }, }, @@ -191,7 +192,7 @@ export default { startTime: [ { required: true, - message: "请输入开始时间以及结束时间", + message: "请正确输入开始时间以及结束时间", }, ], feedsImg: [ @@ -331,8 +332,9 @@ export default { * dialog点击确定时判断 */ addGoods() { - this.liveData.forEach((item) => { - this.commodityList.forEach((oldVal) => { + this.liveData.forEach((item, index) => { + this.commodityList.forEach((oldVal, i) => { + // 如果商品里面没有商品,以及添加商品为第一次的话 if (oldVal.liveGoodsId != item.liveGoodsId) { addLiveGoods({ roomId: this.$route.query.roomId, @@ -389,21 +391,66 @@ export default { this.liveForm.coverImg = res.result; }, + tipsDateError() { + this.$Message.error({ + content: + "直播开播时间需要在当前时间的10分钟后并且,开始时间不能在6个月后,直播计划结束时间(开播时间和结束时间间隔不得短于30分钟,不得超过24小时)", + duration: 5, + }); + }, + /** * 选择时间后的回调 */ handleChangeTime(daterange) { - this.times = daterange; - this.$set( - this.liveForm, - "startTime", - new Date(daterange[0]).getTime() / 1000 - ); - this.$set( - this.liveForm, - "endTime", - new Date(daterange[1]).getTime() / 1000 - ); + /** + * 直播开播时间需要在当前时间的10分钟后 + * 此处设置默认为15分钟方便调整 + */ + let siteTime = new Date().getTime() / 1000; + let selectTime = new Date(daterange[0]).getTime() / 1000; + let currentTime = this.$options.filters.unixToDate(siteTime); + /** + * 开播时间和结束时间间隔不得短于30分钟,不得超过24小时 + * 判断用户设置的结束时间 + */ + let endTime = new Date(daterange[1]).getTime() / 1000; + if (selectTime <= siteTime + 15 * 60) { + this.tipsDateError(); + return false; + } else if (selectTime + 30 * 60 >= endTime) { + // 不能小于30分钟 + + this.tipsDateError(); + return false; + } else if (selectTime + 24 * 60 * 60 <= endTime) { + // 不能超过24小时 + + this.tipsDateError(); + return false; + } else if ( + // 不能超过6个月 + siteTime >= + new Date().getTime() + 6 * 31 * 24 * 3600 * 1000 + 86400000 + ) { + this.tipsDateError(); + return false; + } else { + this.$set(this.times, [0], currentTime); + this.times[1] = daterange[1]; + + // this.times = daterange; + this.$set( + this.liveForm, + "startTime", + new Date(daterange[0]).getTime() / 1000 + ); + this.$set( + this.liveForm, + "endTime", + new Date(daterange[1]).getTime() / 1000 + ); + } }, /** @@ -448,7 +495,9 @@ export default { // 需判断当前是否是添加商品 if (this.$route.query.id && this.liveData.length != 0) { this.spinShow = true; - this.liveForm.commodityList = JSON.stringify(this.liveForm.commodityList); + this.liveForm.commodityList = JSON.stringify( + this.liveForm.commodityList + ); // 将当前直播间修改 editLive(this.liveForm).then((res) => { if (res.success) { From 597af1a2100a52e7a9aa0968726df29fa2cdbfdc Mon Sep 17 00:00:00 2001 From: Chopper Date: Mon, 21 Jun 2021 14:35:33 +0800 Subject: [PATCH 07/48] =?UTF-8?q?=E4=BF=9D=E5=AD=98json=20excel=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/seller/package.json b/seller/package.json index dee8c0ed..8ee9e65b 100644 --- a/seller/package.json +++ b/seller/package.json @@ -29,7 +29,7 @@ "sockjs-client": "^1.4.0", "stompjs": "^2.3.3", "swiper": "^6.3.5", - "vue-qr": "^2.3.0", + "uuid": "^8.3.2", "view-design": "^4.2.0", "vue": "^2.6.10", "vue-awesome": "^4.0.2", @@ -37,15 +37,16 @@ "vue-clipboard2": "^0.3.0", "vue-cropper": "^0.4.9", "vue-i18n": "^8.15.1", + "vue-json-excel": "^0.3.0", "vue-json-pretty": "^1.4.1", "vue-lazyload": "^1.3.3", + "vue-qr": "^2.3.0", "vue-router": "^3.1.3", "vuedraggable": "^2.23.2", "vuex": "^3.4.0", "wangeditor": "^4.6.13", "xlsx": "^0.16.2", - "xss": "^1.0.7", - "uuid": "^8.3.2" + "xss": "^1.0.7" }, "devDependencies": { "@vue/cli-plugin-babel": "^4.4.4", From 4a6fd431bc6eb7610cb5af684e6050011830a997 Mon Sep 17 00:00:00 2001 From: Chopper Date: Mon, 21 Jun 2021 16:03:23 +0800 Subject: [PATCH 08/48] =?UTF-8?q?=E7=89=B9=E6=AE=8A=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=E4=BC=9A=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/views/goods/goods-seller/goodsOperation.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seller/src/views/goods/goods-seller/goodsOperation.vue b/seller/src/views/goods/goods-seller/goodsOperation.vue index 34434bfe..f6bd0ec1 100644 --- a/seller/src/views/goods/goods-seller/goodsOperation.vue +++ b/seller/src/views/goods/goods-seller/goodsOperation.vue @@ -1203,6 +1203,9 @@ export default { ); }, async GET_SkuSpec() { + if(!this.specSelected){ + return; + } let specResult = await API_GOODS.getSpecListSellerData({ pageNumber: 1, pageSize: 10, From d89b984344ed468f02c7496b66a4d02ad4e27d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Mon, 21 Jun 2021 18:11:46 +0800 Subject: [PATCH 09/48] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E9=97=B4=E6=97=B6=E9=97=B4=E6=B2=A1=E6=9C=89=E5=88=A4=E6=96=AD?= =?UTF-8?q?bug,=E5=BA=97=E9=93=BA=E5=90=8E=E5=8F=B0=EF=BC=8C=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E5=8F=91=E8=B4=A7=E6=B2=A1=E6=9C=89=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?bug,=E7=9B=B4=E6=92=AD=E5=90=8E=E5=8F=B0=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9B=B4=E6=92=AD=EF=BC=8C=E5=89=8D?= =?UTF-8?q?=E5=8F=B0=E6=98=BE=E7=A4=BA=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9B=B4?= =?UTF-8?q?=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/config/index.js | 8 ++--- .../src/views/lili-dialog/template/other.vue | 9 ++++-- manager/src/views/order/order/orderList.vue | 2 +- seller/src/config/index.js | 8 ++--- seller/src/views/promotion/live/addLive.vue | 32 +++++++++++++------ 5 files changed, 39 insertions(+), 20 deletions(-) diff --git a/manager/src/config/index.js b/manager/src/config/index.js index 8b6b162f..1a28698c 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -21,10 +21,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/manager/src/views/lili-dialog/template/other.vue b/manager/src/views/lili-dialog/template/other.vue index 2e44016b..709e28d6 100644 --- a/manager/src/views/lili-dialog/template/other.vue +++ b/manager/src/views/lili-dialog/template/other.vue @@ -18,7 +18,7 @@
- +
@@ -74,7 +74,12 @@ export default { icon: "md-happy", ___type: "sign", }, - + { + title: "小程序直播", + icon: "ios-videocam", + ___type: "live", + }, + ], linkItem: { title: "外部链接", diff --git a/manager/src/views/order/order/orderList.vue b/manager/src/views/order/order/orderList.vue index 19bb9905..03b982b8 100644 --- a/manager/src/views/order/order/orderList.vue +++ b/manager/src/views/order/order/orderList.vue @@ -230,7 +230,7 @@ export default { title: "操作", key: "action", align: "center", - width: 100, + width: 150, render: (h, params) => { return h("div", [ h( 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/promotion/live/addLive.vue b/seller/src/views/promotion/live/addLive.vue index 5b5d0090..8f1ee673 100644 --- a/seller/src/views/promotion/live/addLive.vue +++ b/seller/src/views/promotion/live/addLive.vue @@ -328,20 +328,34 @@ export default { this.$set(this, "liveData", way); }, + /** + * 提交直播间商品 + */ + addGoods() { + addLiveGoods({ + roomId: this.$route.query.roomId, + liveGoodsId: item.liveGoodsId, + }); + }, + /** * dialog点击确定时判断 */ addGoods() { + console.log(this.commodityList); this.liveData.forEach((item, index) => { - this.commodityList.forEach((oldVal, i) => { - // 如果商品里面没有商品,以及添加商品为第一次的话 - if (oldVal.liveGoodsId != item.liveGoodsId) { - addLiveGoods({ - roomId: this.$route.query.roomId, - liveGoodsId: item.liveGoodsId, - }); - } - }); + if (this.commodityList.length == 1 && this.liveData.length == 1) { + addLiveGoods({ + roomId: this.$route.query.roomId, + liveGoodsId: item.liveGoodsId, + }); + } else { + this.commodityList.forEach((oldVal, i) => { + // 如果商品里面没有商品,以及添加商品为第一次的话 + if (oldVal.liveGoodsId != item.liveGoodsId) { + } + }); + } }); }, From 3b922839a1583e01dc038b9f61bf22db285dfea2 Mon Sep 17 00:00:00 2001 From: Chopper Date: Tue, 22 Jun 2021 14:59:20 +0800 Subject: [PATCH 10/48] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=B1=95=E7=A4=BA=E6=90=9C=E7=B4=A2=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=8C=E5=B1=95=E7=A4=BA=E5=95=86=E5=93=81=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/goods/goods-info/goods.vue | 21 ++++++ seller/src/views/goods/goods-seller/goods.vue | 69 ++++++++++++------- 2 files changed, 67 insertions(+), 23 deletions(-) diff --git a/manager/src/views/goods/goods-info/goods.vue b/manager/src/views/goods/goods-info/goods.vue index d46ce5e8..21271b7e 100644 --- a/manager/src/views/goods/goods-info/goods.vue +++ b/manager/src/views/goods/goods-info/goods.vue @@ -38,6 +38,12 @@ + + + @@ -132,6 +138,7 @@ export default { pageSize: 10, // 页面大小 sort: "create_time", // 默认排序字段 order: "desc", // 默认排序方式 + goodsType: "", // 商品类型 }, underForm: { // 下架原因 reason: "", @@ -174,6 +181,20 @@ export default { ); }, }, + { + title: "商品类型", + key: "goodsType", + width: 130, + render: (h, params) => { + if (params.row.goodsType === 'PHYSICAL_GOODS') { + return h("div", "实物商品"); + } else if (params.row.goodsType === 'VIRTUAL_GOODS') { + return h("div", "虚拟商品"); + } else { + return h("div", "电子卡券"); + } + }, + }, { title: "状态", key: "marketEnable", diff --git a/seller/src/views/goods/goods-seller/goods.vue b/seller/src/views/goods/goods-seller/goods.vue index c20f5c3e..df95601d 100644 --- a/seller/src/views/goods/goods-seller/goods.vue +++ b/seller/src/views/goods/goods-seller/goods.vue @@ -4,7 +4,7 @@
- + + + + - + @@ -45,11 +51,12 @@
- +
@@ -60,13 +67,14 @@ - + - +
@@ -78,7 +86,8 @@ - + 卖家承担运费 @@ -245,6 +254,20 @@ export default { ); }, }, + { + title: "商品类型", + key: "goodsType", + width: 130, + render: (h, params) => { + if (params.row.goodsType === 'PHYSICAL_GOODS') { + return h("div", "实物商品"); + } else if (params.row.goodsType === 'VIRTUAL_GOODS') { + return h("div", "虚拟商品"); + } else { + return h("div", "电子卡券"); + } + }, + }, { title: "商品价格", key: "price", @@ -432,10 +455,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}}); }, //批量操作 @@ -458,7 +481,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; @@ -468,7 +491,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; } @@ -481,28 +504,28 @@ export default { } }); }, - changePage (v) { + changePage(v) { this.searchForm.pageNumber = v; this.getDataList(); this.clearSelectAll(); }, - changePageSize (v) { + changePageSize(v) { this.searchForm.pageSize = v; this.getDataList(); }, - handleSearch () { + handleSearch() { this.searchForm.pageNumber = 1; this.searchForm.pageSize = 10; this.getDataList(); }, - handleReset () { + handleReset() { this.searchForm = {}; this.searchForm.pageNumber = 1; this.searchForm.pageSize = 10; // 重新加载数据 this.getDataList(); }, - changeSort (e) { + changeSort(e) { this.searchForm.sort = e.key; this.searchForm.order = e.order; if (e.order === "normal") { @@ -510,15 +533,15 @@ export default { } this.getDataList(); }, - clearSelectAll () { + clearSelectAll() { this.$refs.table.selectAll(false); }, - changeSelect (e) { + changeSelect(e) { this.selectList = e; this.selectCount = e.length; }, //保存运费模板信息 - saveShipTemplate () { + saveShipTemplate() { if (this.shipTemplateForm.freightPayer == "STORE") { { this.shipTemplateForm.templateId = 0; @@ -716,10 +739,10 @@ export default { }); }, }, - mounted () { - this.init(); + mounted() { + this.init(); }, - activated () { + activated() { this.init(); }, }; From d3576b691cc388ce1c8335096a970b3c5035633b Mon Sep 17 00:00:00 2001 From: Chopper Date: Tue, 22 Jun 2021 15:16:02 +0800 Subject: [PATCH 11/48] =?UTF-8?q?=E5=95=86=E5=93=81=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=88=9D=E5=A7=8B=E5=8C=96=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/goods/goods-info/goods.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/manager/src/views/goods/goods-info/goods.vue b/manager/src/views/goods/goods-info/goods.vue index 21271b7e..a63543e9 100644 --- a/manager/src/views/goods/goods-info/goods.vue +++ b/manager/src/views/goods/goods-info/goods.vue @@ -138,7 +138,6 @@ export default { pageSize: 10, // 页面大小 sort: "create_time", // 默认排序字段 order: "desc", // 默认排序方式 - goodsType: "", // 商品类型 }, underForm: { // 下架原因 reason: "", From 8e239a5bbfab4d4b63d2784488f53a16e37e027f Mon Sep 17 00:00:00 2001 From: Chopper Date: Tue, 22 Jun 2021 17:36:07 +0800 Subject: [PATCH 12/48] =?UTF-8?q?token=20=E8=A7=A3=E6=9E=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/plugins/request.js | 104 +++++++++++++++++------------------ 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/buyer/src/plugins/request.js b/buyer/src/plugins/request.js index b937df34..7d3233d5 100644 --- a/buyer/src/plugins/request.js +++ b/buyer/src/plugins/request.js @@ -1,27 +1,27 @@ // import Vue from 'vue'; -import axios from "axios"; -import https from "https"; -import { Message, Spin, Modal } from "view-design"; -import Storage from "./storage"; -import config from "@/config"; -import router from "../router/index.js"; -import store from "../vuex/store"; -import { handleRefreshToken } from "@/api/index"; -const qs = require("qs"); +import axios from 'axios'; +import https from 'https'; +import { Message, Spin, Modal } from 'view-design'; +import Storage from './storage'; +import config from '@/config'; +import router from '../router/index.js'; +import store from '../vuex/store'; +import { handleRefreshToken } from '@/api/index'; +const qs = require('qs'); export const buyerUrl = - process.env.NODE_ENV === "development" + process.env.NODE_ENV === 'development' ? config.api_dev.buyer : config.api_prod.buyer; export const commonUrl = - process.env.NODE_ENV === "development" + process.env.NODE_ENV === 'development' ? config.api_dev.common : config.api_prod.common; export const managerUrl = - process.env.NODE_ENV === "development" + process.env.NODE_ENV === 'development' ? config.api_dev.manager : config.api_prod.manager; export const sellerUrl = - process.env.NODE_ENV === "development" + process.env.NODE_ENV === 'development' ? config.api_dev.seller : config.api_prod.seller; // 创建axios实例 @@ -35,7 +35,7 @@ const service = axios.create({ }), paramsSerializer: params => qs.stringify(params, { - arrayFormat: "repeat" + arrayFormat: 'repeat' }) }); @@ -44,15 +44,15 @@ service.interceptors.request.use( config => { const { loading } = config; // 如果是put/post请求,用qs.stringify序列化参数 - const isPutPost = config.method === "put" || config.method === "post"; - const isJson = config.headers["Content-Type"] === "application/json"; - const isFile = config.headers["Content-Type"] === "multipart/form-data"; + const isPutPost = config.method === 'put' || config.method === 'post'; + const isJson = config.headers['Content-Type'] === 'application/json'; + const isFile = config.headers['Content-Type'] === 'multipart/form-data'; if (isPutPost && isJson) { config.data = JSON.stringify(config.data); } if (isPutPost && !isFile && !isJson) { config.data = qs.stringify(config.data, { - arrayFormat: "repeat" + arrayFormat: 'repeat' }); } /** 配置全屏加载 */ @@ -60,16 +60,16 @@ service.interceptors.request.use( config.loading = Spin.show(); } - const uuid = Storage.getItem("uuid"); - config.headers["uuid"] = uuid; + const uuid = Storage.getItem('uuid'); + config.headers['uuid'] = uuid; // 获取访问Token - let accessToken = Storage.getItem("accessToken"); + let accessToken = Storage.getItem('accessToken'); if (accessToken && config.needToken) { - config.headers["accessToken"] = accessToken; + config.headers['accessToken'] = accessToken; // 解析当前token时间 let jwtData = JSON.parse( - decodeURIComponent(escape(window.atob(accessToken.split(".")[1]))) + decodeURIComponent(escape(window.atob(accessToken.split('.')[1].replace(/-/g, '+').replace(/_/g, '/')))) ); if (jwtData.exp < Math.round(new Date() / 1000)) { refresh() @@ -83,33 +83,33 @@ service.interceptors.request.use( } ); -async function refresh() { +async function refresh () { const getTokenRes = await refreshToken(); - if (getTokenRes === "success") { + if (getTokenRes === 'success') { // 刷新token if (isRefreshToken === 1) { error.response.config.headers.accessToken = Storage.getItem( - "accessToken" + 'accessToken' ); return service(error.response.config); } else { router.go(0); } } else { - Storage.removeItem("accessToken"); - Storage.removeItem("refreshToken"); - Storage.removeItem("userInfo"); - Storage.setItem("cartNum", 0); - store.commit("SET_CARTNUM", 0); - console.log("1111"); + Storage.removeItem('accessToken'); + Storage.removeItem('refreshToken'); + Storage.removeItem('userInfo'); + Storage.setItem('cartNum', 0); + store.commit('SET_CARTNUM', 0); + console.log('1111'); Modal.confirm({ - title: "请登录", - content: "

请登录后执行此操作

", - okText: "立即登录", - cancelText: "继续浏览", + title: '请登录', + content: '

请登录后执行此操作

', + okText: '立即登录', + cancelText: '继续浏览', onOk: () => { router.push({ - path: "/login", + path: '/login', query: { rePath: router.history.current.path, query: JSON.stringify(router.history.current.query) @@ -146,9 +146,9 @@ service.interceptors.response.use( } else { if (error.message) { let _message = - error.code === "ECONNABORTED" - ? "连接超时,请稍候再试!" - : "网络错误,请稍后再试!"; + error.code === 'ECONNABORTED' + ? '连接超时,请稍候再试!' + : '网络错误,请稍后再试!'; Message.error(errorData.message || _message); } } @@ -171,13 +171,13 @@ const closeLoading = target => { }; export const Method = { - GET: "get", - POST: "post", - PUT: "put", - DELETE: "delete" + GET: 'get', + POST: 'post', + PUT: 'put', + DELETE: 'delete' }; -export default function request(options) { +export default function request (options) { // 如果是服务端或者是请求的刷新token,不需要检查token直接请求。 // if (process.server || options.url.indexOf('passport/token') !== -1) { return service(options); @@ -186,19 +186,19 @@ export default function request(options) { } // 防抖闭包来一波 -function getTokenDebounce() { +function getTokenDebounce () { let lock = false; let success = false; - return function() { + return function () { if (!lock) { lock = true; - let oldRefreshToken = Storage.getItem("refreshToken"); + let oldRefreshToken = Storage.getItem('refreshToken'); handleRefreshToken(oldRefreshToken) .then(res => { if (res.success) { let { accessToken, refreshToken } = res.result; - Storage.setItem("accessToken", accessToken); - Storage.setItem("refreshToken", refreshToken); + Storage.setItem('accessToken', accessToken); + Storage.setItem('refreshToken', refreshToken); success = true; lock = false; @@ -220,9 +220,9 @@ function getTokenDebounce() { if (!lock) { clearInterval(timer); if (success) { - resolve("success"); + resolve('success'); } else { - resolve("fail"); + resolve('fail'); } } }, 500); // 轮询时间间隔 From bce709a57a1b4b2449f53768075c319832c0e1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Tue, 22 Jun 2021 18:11:23 +0800 Subject: [PATCH 13/48] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=BF=90=E8=90=A5?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=87=BA=E7=8E=B0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/config/index.js | 8 +- .../views/order/order/fictitiousOrderList.vue | 6 +- manager/src/views/order/order/orderDetail.vue | 2 +- manager/src/views/promotion/coupon/coupon.vue | 6 +- .../src/views/promotion/seckill/seckill.vue | 97 ++++--------- .../views/promotion/seckill/setupSeckill.vue | 4 +- .../views/statistics/order/orderDetail.vue | 2 +- seller/src/config/index.js | 16 +- seller/src/utils/filters.js | 137 +++++++++++------- seller/src/views/order/order/orderDetail.vue | 2 +- seller/src/views/promotion/coupon/coupon.vue | 132 +++++------------ 11 files changed, 172 insertions(+), 240 deletions(-) diff --git a/manager/src/config/index.js b/manager/src/config/index.js index 1a28698c..8b6b162f 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -21,10 +21,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.100:8890', - buyer: 'http://192.168.0.100:8888', - seller: 'http://192.168.0.100:8889', - manager: 'http://192.168.0.100:8887' + 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/fictitiousOrderList.vue b/manager/src/views/order/order/fictitiousOrderList.vue index 2d4c9ac3..da5d7bb9 100644 --- a/manager/src/views/order/order/fictitiousOrderList.vue +++ b/manager/src/views/order/order/fictitiousOrderList.vue @@ -94,8 +94,8 @@ // 搜索框初始化对象 pageNumber: 1, // 当前页数 pageSize: 10, // 页面大小 - sort: "createTime", // 默认排序字段 - order: "desc", // 默认排序方式 + sort: "", // 默认排序字段 + order: "", // 默认排序方式 startDate: "", // 起始时间 endDate: "", // 终止时间 orderType: "FICTITIOUS", @@ -118,8 +118,6 @@ title: "下单时间", key: "createTime", width: 200, - sortable: true, - sortType: "desc", }, { title: "订单来源", diff --git a/manager/src/views/order/order/orderDetail.vue b/manager/src/views/order/order/orderDetail.vue index 2005fe73..ddf1d3a0 100644 --- a/manager/src/views/order/order/orderDetail.vue +++ b/manager/src/views/order/order/orderDetail.vue @@ -37,7 +37,7 @@
订单来源:
- {{ orderInfo.order.clientType }} + {{ orderInfo.order.clientType | clientTypeWay}}
diff --git a/manager/src/views/promotion/coupon/coupon.vue b/manager/src/views/promotion/coupon/coupon.vue index 7f2ae93d..c34bb812 100644 --- a/manager/src/views/promotion/coupon/coupon.vue +++ b/manager/src/views/promotion/coupon/coupon.vue @@ -101,7 +101,7 @@ export default { { title: "面额/折扣", key: "price", - width: 120, + width: 100, render: (h, params) => { if (params.row.price) { return h( @@ -117,14 +117,14 @@ export default { { title: "领取数量/总数量", key: "publishNum", - width: 150, + width: 130, render: (h, params) => { return h( "div", params.row.receivedNum + "/" + params.row.publishNum ); }, - minWidth: 130, + }, { title: "优惠券类型", diff --git a/manager/src/views/promotion/seckill/seckill.vue b/manager/src/views/promotion/seckill/seckill.vue index 00e634dd..3b2531ab 100644 --- a/manager/src/views/promotion/seckill/seckill.vue +++ b/manager/src/views/promotion/seckill/seckill.vue @@ -24,78 +24,35 @@ - - -
- - -
@@ -302,7 +259,7 @@ export default { diff --git a/manager/src/views/promotion/seckill/setupSeckill.vue b/manager/src/views/promotion/seckill/setupSeckill.vue index 9ad7c77b..0ab8ce68 100644 --- a/manager/src/views/promotion/seckill/setupSeckill.vue +++ b/manager/src/views/promotion/seckill/setupSeckill.vue @@ -1,5 +1,5 @@ @@ -132,10 +132,10 @@ export default { color: $theme_color; } } + .selected-cate{ color: $theme_color; } - } .page-size { width: 1200px; diff --git a/buyer/src/pages/payment/Pay.vue b/buyer/src/pages/payment/Pay.vue index 0c91be7e..48ec2f7e 100644 --- a/buyer/src/pages/payment/Pay.vue +++ b/buyer/src/pages/payment/Pay.vue @@ -4,15 +4,23 @@ @@ -24,18 +32,35 @@ 管理收货人地址
-
+
- {{item.name}} + {{ item.name }} 默认 - {{item.alias}} + {{ + item.alias + }} +
+
{{ item.mobile }}
+
+ {{ item.consigneeAddressPath | unitAddress }} {{ item.detail }}
-
{{item.mobile}}
-
{{ item.consigneeAddressPath | unitAddress }} {{item.detail}}
修改 - 删除 + 删除
@@ -48,8 +73,12 @@
-
- {{moreAddr ? '收起地址' : '更多地址'}} +
+ {{ moreAddr ? "收起地址" : "更多地址" }}
@@ -60,10 +89,17 @@ 商品信息 返回购物车
-
+
- {{shop.storeName}}   + {{ + shop.storeName + }}  
-
- - - {{goods.goodsSku.goodsName}} +
+ + + {{ + goods.goodsSku.goodsName + }} - {{goods.goodsSku.price | unitPrice('¥')}} - x{{goods.num}} - {{goods.goodsSku.quantity > 0 ? '有货' : '无货'}} - {{goods.goodsSku.price * goods.num | unitPrice('¥')}} + {{ + goods.goodsSku.price | unitPrice("¥") + }} + x{{ goods.num }} + {{ goods.goodsSku.quantity > 0 ? "有货" : "无货" }} + {{ + (goods.goodsSku.price * goods.num) | unitPrice("¥") + }}
- - 提示:请勿填写有关支付、收货、发票方面的信息 + + 提示:请勿填写有关支付、收货、发票方面的信息
- 发票信息 - 开企业抬头发票须填写纳税人识别号,以免影响报销 - + 发票信息 + 开企业抬头发票须填写纳税人识别号,以免影响报销 +
- {{invoiceData.receiptTitle}} - {{invoiceData.receiptContent}} + {{ invoiceData.receiptTitle }} + {{ invoiceData.receiptContent }} 编辑
@@ -108,24 +171,49 @@
优惠券
-
- 无可用优惠券 -
+
无可用优惠券
    -
  • +
  • - {{item.price | unitPrice}} - {{item.couponDiscount}} - 满{{item.consumeThreshold}}元可用 + {{ + item.price | unitPrice + }} + {{ item.couponDiscount }} + 满{{ item.consumeThreshold }}元可用
    -

    使用范围:{{useScope(item.scopeType)}}

    -

    有效期:{{item.endTime}}

    +

    使用范围:{{ useScope(item.scopeType) }}

    +

    有效期:{{ item.endTime }}

    - + 立即使用 - 放弃优惠 + 放弃优惠
  • @@ -138,81 +226,116 @@
- 使用积分: 您当前的可用积分为 {{otherMsgForm.totalPoint}} - ,本订单最多可以使用{{otherMsgForm.availablePoint}} + 使用积分: + 您当前的可用积分为 + {{ otherMsgForm.totalPoint }} ,本订单最多可以使用{{ + otherMsgForm.availablePoint + }}
- {{totalNum}}件商品,总商品金额:{{priceDetailDTO.goodsPrice | unitPrice('¥')}} + {{ totalNum }}件商品,总商品金额:{{ priceDetailDTO.goodsPrice | unitPrice("¥") }}
- 运费:{{ priceDetailDTO.freightPrice | unitPrice('¥')}} + 运费:{{ priceDetailDTO.freightPrice | unitPrice("¥") }}
- 优惠金额:-{{ priceDetailDTO.discountPrice + priceDetailDTO.couponPrice + priceDetailDTO.updatePrice | unitPrice('¥')}} + 优惠金额:-{{ + (priceDetailDTO.discountPrice + + priceDetailDTO.couponPrice + + priceDetailDTO.updatePrice) + | unitPrice("¥") + }}
- 应付金额:{{priceDetailDTO.billPrice | unitPrice('¥')}} + 应付金额:{{ + priceDetailDTO.billPrice | unitPrice("¥") + }}
-
- + - +
diff --git a/buyer/src/plugins/request.js b/buyer/src/plugins/request.js index b937df34..727ab21f 100644 --- a/buyer/src/plugins/request.js +++ b/buyer/src/plugins/request.js @@ -1,27 +1,27 @@ // import Vue from 'vue'; -import axios from "axios"; -import https from "https"; -import { Message, Spin, Modal } from "view-design"; -import Storage from "./storage"; -import config from "@/config"; -import router from "../router/index.js"; -import store from "../vuex/store"; -import { handleRefreshToken } from "@/api/index"; -const qs = require("qs"); +import axios from 'axios'; +import https from 'https'; +import { Message, Spin, Modal } from 'view-design'; +import Storage from './storage'; +import config from '@/config'; +import router from '../router/index.js'; +import store from '../vuex/store'; +import { handleRefreshToken } from '@/api/index'; +const qs = require('qs'); export const buyerUrl = - process.env.NODE_ENV === "development" + process.env.NODE_ENV === 'development' ? config.api_dev.buyer : config.api_prod.buyer; export const commonUrl = - process.env.NODE_ENV === "development" + process.env.NODE_ENV === 'development' ? config.api_dev.common : config.api_prod.common; export const managerUrl = - process.env.NODE_ENV === "development" + process.env.NODE_ENV === 'development' ? config.api_dev.manager : config.api_prod.manager; export const sellerUrl = - process.env.NODE_ENV === "development" + process.env.NODE_ENV === 'development' ? config.api_dev.seller : config.api_prod.seller; // 创建axios实例 @@ -35,7 +35,7 @@ const service = axios.create({ }), paramsSerializer: params => qs.stringify(params, { - arrayFormat: "repeat" + arrayFormat: 'repeat' }) }); @@ -44,15 +44,15 @@ service.interceptors.request.use( config => { const { loading } = config; // 如果是put/post请求,用qs.stringify序列化参数 - const isPutPost = config.method === "put" || config.method === "post"; - const isJson = config.headers["Content-Type"] === "application/json"; - const isFile = config.headers["Content-Type"] === "multipart/form-data"; + const isPutPost = config.method === 'put' || config.method === 'post'; + const isJson = config.headers['Content-Type'] === 'application/json'; + const isFile = config.headers['Content-Type'] === 'multipart/form-data'; if (isPutPost && isJson) { config.data = JSON.stringify(config.data); } if (isPutPost && !isFile && !isJson) { config.data = qs.stringify(config.data, { - arrayFormat: "repeat" + arrayFormat: 'repeat' }); } /** 配置全屏加载 */ @@ -60,16 +60,16 @@ service.interceptors.request.use( config.loading = Spin.show(); } - const uuid = Storage.getItem("uuid"); - config.headers["uuid"] = uuid; + const uuid = Storage.getItem('uuid'); + config.headers['uuid'] = uuid; // 获取访问Token - let accessToken = Storage.getItem("accessToken"); + let accessToken = Storage.getItem('accessToken'); if (accessToken && config.needToken) { - config.headers["accessToken"] = accessToken; + config.headers['accessToken'] = accessToken; // 解析当前token时间 let jwtData = JSON.parse( - decodeURIComponent(escape(window.atob(accessToken.split(".")[1]))) + decodeURIComponent(escape(window.atob(accessToken.split('.')[1]))) ); if (jwtData.exp < Math.round(new Date() / 1000)) { refresh() @@ -83,33 +83,32 @@ service.interceptors.request.use( } ); -async function refresh() { +async function refresh (error) { const getTokenRes = await refreshToken(); - if (getTokenRes === "success") { + if (getTokenRes === 'success') { // 刷新token if (isRefreshToken === 1) { error.response.config.headers.accessToken = Storage.getItem( - "accessToken" + 'accessToken' ); return service(error.response.config); } else { router.go(0); } } else { - Storage.removeItem("accessToken"); - Storage.removeItem("refreshToken"); - Storage.removeItem("userInfo"); - Storage.setItem("cartNum", 0); - store.commit("SET_CARTNUM", 0); - console.log("1111"); + Storage.removeItem('accessToken'); + Storage.removeItem('refreshToken'); + Storage.removeItem('userInfo'); + Storage.setItem('cartNum', 0); + store.commit('SET_CARTNUM', 0); Modal.confirm({ - title: "请登录", - content: "

请登录后执行此操作

", - okText: "立即登录", - cancelText: "继续浏览", + title: '请登录', + content: '

请登录后执行此操作

', + okText: '立即登录', + cancelText: '继续浏览', onOk: () => { router.push({ - path: "/login", + path: '/login', query: { rePath: router.history.current.path, query: JSON.stringify(router.history.current.query) @@ -140,15 +139,15 @@ service.interceptors.response.use( isRefreshToken++; if (isRefreshToken === 1) { - refresh() + refresh(error) isRefreshToken = 0; } } else { if (error.message) { let _message = - error.code === "ECONNABORTED" - ? "连接超时,请稍候再试!" - : "网络错误,请稍后再试!"; + error.code === 'ECONNABORTED' + ? '连接超时,请稍候再试!' + : '网络错误,请稍后再试!'; Message.error(errorData.message || _message); } } @@ -171,13 +170,13 @@ const closeLoading = target => { }; export const Method = { - GET: "get", - POST: "post", - PUT: "put", - DELETE: "delete" + GET: 'get', + POST: 'post', + PUT: 'put', + DELETE: 'delete' }; -export default function request(options) { +export default function request (options) { // 如果是服务端或者是请求的刷新token,不需要检查token直接请求。 // if (process.server || options.url.indexOf('passport/token') !== -1) { return service(options); @@ -186,19 +185,19 @@ export default function request(options) { } // 防抖闭包来一波 -function getTokenDebounce() { +function getTokenDebounce () { let lock = false; let success = false; - return function() { + return function () { if (!lock) { lock = true; - let oldRefreshToken = Storage.getItem("refreshToken"); + let oldRefreshToken = Storage.getItem('refreshToken'); handleRefreshToken(oldRefreshToken) .then(res => { if (res.success) { let { accessToken, refreshToken } = res.result; - Storage.setItem("accessToken", accessToken); - Storage.setItem("refreshToken", refreshToken); + Storage.setItem('accessToken', accessToken); + Storage.setItem('refreshToken', refreshToken); success = true; lock = false; @@ -220,9 +219,9 @@ function getTokenDebounce() { if (!lock) { clearInterval(timer); if (success) { - resolve("success"); + resolve('success'); } else { - resolve("fail"); + resolve('fail'); } } }, 500); // 轮询时间间隔 diff --git a/seller/src/main.js b/seller/src/main.js index 094434c9..c73b4bbc 100644 --- a/seller/src/main.js +++ b/seller/src/main.js @@ -5,7 +5,7 @@ import ViewUI from "view-design"; import "./styles/theme.less"; import "core-js/stable"; -import "regenerator-runtime/runtime"; +// import "regenerator-runtime/runtime"; import vueQr from 'vue-qr' import App from "./App"; From d5c96f66cedb752cf7ee1c4a995c0411773d1d26 Mon Sep 17 00:00:00 2001 From: lifenlong Date: Wed, 23 Jun 2021 11:34:56 +0800 Subject: [PATCH 17/48] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BA=97=E9=93=BA?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=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/views/promotion/live/live.vue | 15 ++++----- seller/src/views/goods/goods-seller/goods.vue | 27 ++------------- seller/src/views/logistics/index.vue | 13 +++----- seller/src/views/member/memberComment.vue | 18 +++++----- .../order/after-order/orderComplaint.vue | 12 +++---- .../order/after-order/returnGoodsOrder.vue | 30 ++++++++--------- .../order/after-order/returnMoneyOrder.vue | 26 +++++---------- seller/src/views/order/order/orderList.vue | 14 ++++---- .../views/order/order/virtualOrderList.vue | 14 ++++---- .../views/order/receiptManager/receipt.vue | 33 ++++++++----------- .../views/shop/bill/accountStatementBill.vue | 14 ++++---- seller/src/views/shop/bill/storeBill.vue | 14 ++++---- seller/src/views/shop/ship/logistics.vue | 8 ++--- 13 files changed, 95 insertions(+), 143 deletions(-) diff --git a/manager/src/views/promotion/live/live.vue b/manager/src/views/promotion/live/live.vue index b7d7498c..da943fd3 100644 --- a/manager/src/views/promotion/live/live.vue +++ b/manager/src/views/promotion/live/live.vue @@ -119,14 +119,13 @@ export default { { title: "直播状态", render: (h, params) => { - return h( - "span", - params.row.status == "NEW" - ? "未开始" - : params.row.status == "START" - ? "直播中" - : "已结束" - ); + if(params.row.status == "NEW"){ + return h("div", [h("tag", {props: {color: "blue"}}, "未开始")]); + }else if(params.row.status == "START"){ + return h("div", [h("tag", {props: {color: "green"}}, "直播中")]); + }else{ + return h("div", [h("tag", {props: {color: "volcano"}}, "已结束")]); + } }, }, { diff --git a/seller/src/views/goods/goods-seller/goods.vue b/seller/src/views/goods/goods-seller/goods.vue index df95601d..de865194 100644 --- a/seller/src/views/goods/goods-seller/goods.vue +++ b/seller/src/views/goods/goods-seller/goods.vue @@ -170,32 +170,11 @@ export default { width: 130, render: (h, params) => { if (params.row.isAuth == "TOBEAUDITED") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "待审核", - }, - }), - ]); + return h("Tag", {props: {color: "blue",},},"待审核"); } else if (params.row.isAuth == "PASS") { - return h("div", [ - h("Badge", { - props: { - status: "success", - text: "审核通过", - }, - }), - ]); + return h("Tag", {props: {color: "green",},},"通过"); } else if (params.row.isAuth == "REFUSE") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "审核拒绝", - }, - }), - ]); + return h("Tag", {props: {color: "red",},},"审核拒绝"); } }, }, diff --git a/seller/src/views/logistics/index.vue b/seller/src/views/logistics/index.vue index a8e7bc91..d773df85 100644 --- a/seller/src/views/logistics/index.vue +++ b/seller/src/views/logistics/index.vue @@ -134,21 +134,18 @@ export default { key: "name", minWidth: 120 }, - { title: "状态", key: "disabled", minWidth: 50, render(h, params) { - return h("Badge", { - props: { - status: params.row.disabled ? "success" : "error", - text: params.row.disabled ? "开启" : "关闭", - }, - }); + if(params.row.disabled){ + return h("div", [h("tag", {props: {color: "green"}}, "开启")]); + }else{ + return h("div", [h("tag", {props: {color: "volcano"}}, "关闭")]); + } }, }, - { title: "操作", key: "action", diff --git a/seller/src/views/member/memberComment.vue b/seller/src/views/member/memberComment.vue index c4eb28ff..e0c1f486 100644 --- a/seller/src/views/member/memberComment.vue +++ b/seller/src/views/member/memberComment.vue @@ -210,11 +210,11 @@ export default { width: 100, render: (h, params) => { if (params.row.grade == "GOOD") { - return h("Badge", {props: {status: "success", text: "好评"}}) + return h("Tag", {props: {color: "green",},}, "好评"); } else if (params.row.grade == "MODERATE") { - return h("Badge", {props: {status: "success", text: "中评"}}) - } else if (params.row.grade == "WORSE") { - return h("Badge", {props: {status: "error", text: "差评"}}) + return h("Tag", {props: {color: "orange",},}, "中评"); + } else { + return h("Tag", {props: {color: "red",},}, "差评"); } } }, @@ -224,9 +224,9 @@ export default { width: 100, render: (h, params) => { if (params.row.status === "OPEN") { - return h("Badge", {props: {status: "success", text: "展示"}}) + return h("Tag", {props: {color: "green"}},"展示") } else { - return h("Badge", {props: {status: "error", text: "隐藏"}}) + return h("Tag", {props: {color: "red"}},"隐藏") } }, }, @@ -236,9 +236,9 @@ export default { width: 110, render: (h, params) => { if (params.row.replyStatus) { - return h("Badge", {props: {status: "success", text: "已回复"}}) + return h("Tag", {props: {color: "green"}},"已回复") } else { - return h("Badge", {props: {status: "error", text: "未回复"}}) + return h("Tag", {props: {color: "blue"}},"未回复") } }, }, @@ -334,7 +334,7 @@ export default { this.loading = false; if (res.success) { this.data = res.result.records; - this.total = res.result.total; + this.total = res.result.total; } }); }, diff --git a/seller/src/views/order/after-order/orderComplaint.vue b/seller/src/views/order/after-order/orderComplaint.vue index 0b3f8fcf..3e606386 100644 --- a/seller/src/views/order/after-order/orderComplaint.vue +++ b/seller/src/views/order/after-order/orderComplaint.vue @@ -185,17 +185,17 @@ key: "complainStatus", render: (h, params) => { if (params.row.complainStatus == "NEW") { - return h('div', [h('span', { }, '新投诉'),]); + return h('div', [h('tag',{props: {color: "purple"}}, '新投诉'),]); } else if (params.row.complainStatus == "CANCEL") { - return h('div', [h('span', { }, '已撤销'),]); + return h('div', [h('tag', {props: {color: "cyan"}}, '已撤销'),]); } else if (params.row.complainStatus == "WAIT_APPEAL") { - return h('div', [h('span', { }, '待申诉'),]); + return h('div', [h('tag', {props: {color: "volcano"}}, '待申诉'),]); } else if (params.row.complainStatus == "COMMUNICATION") { - return h('div', [h('span', { }, '对话中'),]); + return h('div', [h('tag', {props: {color: "orange"}}, '对话中'),]); }else if (params.row.complainStatus == "WAIT_ARBITRATION") { - return h('div', [h('span', { }, '等待仲裁'),]); + return h('div', [h('tag', {props: {color: "blue"}}, '等待仲裁'),]); }else if (params.row.complainStatus == "COMPLETE") { - return h('div', [h('span', { }, '已完成'),]); + return h('div', [h('tag', {props: {color: "green"}}, '已完成'),]); } } }, diff --git a/seller/src/views/order/after-order/returnGoodsOrder.vue b/seller/src/views/order/after-order/returnGoodsOrder.vue index 297ffb39..1842d8ed 100644 --- a/seller/src/views/order/after-order/returnGoodsOrder.vue +++ b/seller/src/views/order/after-order/returnGoodsOrder.vue @@ -176,25 +176,23 @@ width: 120, render: (h, params) => { if (params.row.serviceStatus == "APPLY") { - return h('div', [h('span', { }, '申请售后'),]); + return h('div', [h('tag', {props: {color: "blue"}}, '申请中'),]); } else if (params.row.serviceStatus == "PASS") { - return h('div', [h('span', { }, '审核通过'),]); + return h('div', [h('tag', {props: {color: "cyan"}}, '通过售后'),]); } else if (params.row.serviceStatus == "REFUSE") { - return h('div', [h('span', { }, '审核拒绝'),]); + return h('div', [h('tag', {props: {color: "volcano"}}, '拒绝售后'),]); } else if (params.row.serviceStatus == "BUYER_RETURN") { - return h('div', [h('span', { }, '买家退货,待卖家收货'),]); - }else if (params.row.serviceStatus == "SELLER_RE_DELIVERY") { - return h('div', [h('span', { }, '商家换货/补发'),]); - }else if (params.row.serviceStatus == "SELLER_CONFIRM") { - return h('div', [h('span', { }, '卖家确认收货'),]); - }else if (params.row.serviceStatus == "SELLER_TERMINATION") { - return h('div', [h('span', { }, '卖家终止售后'),]); - }else if (params.row.serviceStatus == "BUYER_CONFIRM") { - return h('div', [h('span', { }, '买家确认收货'),]); - }else if (params.row.serviceStatus == "BUYER_CANCEL") { - return h('div', [h('span', { }, '买家取消售后'),]); - }else if (params.row.serviceStatus == "COMPLETE") { - return h('div', [h('span', { }, '完成'),]); + return h('div', [h('tag', {props: {color: "orange"}}, '买家退货,待卖家收货'),]); + } else if (params.row.serviceStatus == "SELLER_CONFIRM") { + return h('div', [h('tag', {props: {color: "gold"}}, '卖家确认收货'),]); + } else if (params.row.serviceStatus == "SELLER_TERMINATION") { + return h('div', [h('tag', {props: {color: "lime"}}, '卖家终止售后'),]); + } else if (params.row.serviceStatus == "BUYER_CANCEL") { + return h('div', [h('tag', {props: {color: "purple"}}, '买家取消售后'),]); + } else if (params.row.serviceStatus == "COMPLETE") { + return h('div', [h('tag', {props: {color: "green"}}, '完成售后'),]); + }else if (params.row.serviceStatus == "WAIT_REFUND") { + return h('div', [h('tag', {props: {color: "geekblue"}}, '待平台退款'),]); } } }, diff --git a/seller/src/views/order/after-order/returnMoneyOrder.vue b/seller/src/views/order/after-order/returnMoneyOrder.vue index cc41f994..10a51621 100644 --- a/seller/src/views/order/after-order/returnMoneyOrder.vue +++ b/seller/src/views/order/after-order/returnMoneyOrder.vue @@ -182,27 +182,17 @@ minWidth: 120, render: (h, params) => { if (params.row.serviceStatus == "APPLY") { - return h('div', [h('span', { }, '申请售后'),]); + return h('div', [h('tag', {props: {color: "blue"}}, '申请中'),]); } else if (params.row.serviceStatus == "PASS") { - return h('div', [h('span', { }, '审核通过'),]); + return h('div', [h('tag', {props: {color: "cyan"}}, '通过售后'),]); } else if (params.row.serviceStatus == "REFUSE") { - return h('div', [h('span', { }, '审核拒绝'),]); - } else if (params.row.serviceStatus == "BUYER_RETURN") { - return h('div', [h('span', { }, '买家退货,待卖家收货'),]); - }else if (params.row.serviceStatus == "SELLER_RE_DELIVERY") { - return h('div', [h('span', { }, '商家换货/补发'),]); - }else if (params.row.serviceStatus == "SELLER_CONFIRM") { - return h('div', [h('span', { }, '卖家确认收货'),]); - }else if (params.row.serviceStatus == "SELLER_TERMINATION") { - return h('div', [h('span', { }, '卖家终止售后'),]); - }else if (params.row.serviceStatus == "BUYER_CONFIRM") { - return h('div', [h('span', { }, '买家确认收货'),]); - }else if (params.row.serviceStatus == "BUYER_CANCEL") { - return h('div', [h('span', { }, '买家取消售后'),]); + return h('div', [h('tag', {props: {color: "volcano"}}, '拒绝售后'),]); + } else if (params.row.serviceStatus == "BUYER_CANCEL") { + return h('div', [h('tag', {props: {color: "purple"}}, '买家取消售后'),]); + } else if (params.row.serviceStatus == "COMPLETE") { + return h('div', [h('tag', {props: {color: "green"}}, '完成售后'),]); }else if (params.row.serviceStatus == "WAIT_REFUND") { - return h('div', [h('span', { }, '等待平台退款'),]); - }else if (params.row.serviceStatus == "COMPLETE") { - return h('div', [h('span', { }, '完成'),]); + return h('div', [h('tag', {props: {color: "geekblue"}}, '待平台退款'),]); } } }, diff --git a/seller/src/views/order/order/orderList.vue b/seller/src/views/order/order/orderList.vue index 4bc99a0b..76303816 100644 --- a/seller/src/views/order/order/orderList.vue +++ b/seller/src/views/order/order/orderList.vue @@ -126,19 +126,19 @@ export default { minWidth: 100, render: (h, params) => { if (params.row.orderStatus == "UNPAID") { - return h("div", [h("span", {}, "未付款")]); + return h("div", [h("tag", {props: {color: "magenta"}}, "未付款")]); } else if (params.row.orderStatus == "PAID") { - return h("div", [h("span", {}, "已付款")]); + return h("div", [h("tag", {props: {color: "blue"}}, "已付款")]); } else if (params.row.orderStatus == "UNDELIVERED") { - return h("div", [h("span", {}, "待发货")]); + return h("div", [h("tag", {props: {color: "geekblue"}}, "待发货")]); } else if (params.row.orderStatus == "DELIVERED") { - return h("div", [h("span", {}, "已发货")]); + return h("div", [h("tag", {props: {color: "cyan"}}, "已发货")]); } else if (params.row.orderStatus == "COMPLETED") { - return h("div", [h("span", {}, "已完成")]); + return h("div", [h("tag", {props: {color: "green"}}, "已完成")]); } else if (params.row.orderStatus == "TAKE") { - return h("div", [h("span", {}, "待核验")]); + return h("div", [h("tag", {props: {color: "volcano"}}, "待核验")]); } else if (params.row.orderStatus == "CANCELLED") { - return h("div", [h("span", {}, "已取消")]); + return h("div", [h("tag", {props: {color: "red"}}, "已取消")]); } }, }, diff --git a/seller/src/views/order/order/virtualOrderList.vue b/seller/src/views/order/order/virtualOrderList.vue index a95e5875..513160da 100644 --- a/seller/src/views/order/order/virtualOrderList.vue +++ b/seller/src/views/order/order/virtualOrderList.vue @@ -135,19 +135,19 @@ export default { minWidth: 100, render: (h, params) => { if (params.row.orderStatus == "UNPAID") { - return h("div", [h("span", {}, "未付款")]); + return h("div", [h("tag", {props: {color: "magenta"}}, "未付款")]); } else if (params.row.orderStatus == "PAID") { - return h("div", [h("span", {}, "已付款")]); + return h("div", [h("tag", {props: {color: "blue"}}, "已付款")]); } else if (params.row.orderStatus == "UNDELIVERED") { - return h("div", [h("span", {}, "待发货")]); + return h("div", [h("tag", {props: {color: "geekblue"}}, "待发货")]); } else if (params.row.orderStatus == "DELIVERED") { - return h("div", [h("span", {}, "已发货")]); + return h("div", [h("tag", {props: {color: "cyan"}}, "已发货")]); } else if (params.row.orderStatus == "COMPLETED") { - return h("div", [h("span", {}, "已完成")]); + return h("div", [h("tag", {props: {color: "green"}}, "已完成")]); } else if (params.row.orderStatus == "TAKE") { - return h("div", [h("span", {}, "待核验")]); + return h("div", [h("tag", {props: {color: "volcano"}}, "待核验")]); } else if (params.row.orderStatus == "CANCELLED") { - return h("div", [h("span", {}, "已取消")]); + return h("div", [h("tag", {props: {color: "red"}}, "已取消")]); } }, }, diff --git a/seller/src/views/order/receiptManager/receipt.vue b/seller/src/views/order/receiptManager/receipt.vue index d03ff3eb..6a90eb37 100644 --- a/seller/src/views/order/receiptManager/receipt.vue +++ b/seller/src/views/order/receiptManager/receipt.vue @@ -161,17 +161,10 @@ tooltip: true, render: (h, params) => { if(params.row.receiptStatus == 0){ - return h( - "div", - "未开票" - ); + return h("div", [h("tag", {props: {color: "volcano"}}, "未开票")]); }else{ - return h( - "div", - "已开票" - ); + return h("div", [h("tag", {props: {color: "green"}}, "未开票")]); } - }, }, { @@ -180,19 +173,19 @@ width: 90, render: (h, params) => { if (params.row.orderStatus == "UNPAID") { - return h('div', [h('span', { }, '未付款'),]); + return h("div", [h("tag", {props: {color: "magenta"}}, "未付款")]); } else if (params.row.orderStatus == "PAID") { - return h('div', [h('span', { }, '已付款'),]); + return h("div", [h("tag", {props: {color: "blue"}}, "已付款")]); } else if (params.row.orderStatus == "UNDELIVERED") { - return h('div', [h('span', { }, '待发货'),]); - }else if (params.row.orderStatus == "DELIVERED") { - return h('div', [h('span', { }, '已发货'),]); - }else if (params.row.orderStatus == "COMPLETED") { - return h('div', [h('span', { }, '已完成'),]); - }else if (params.row.orderStatus == "TAKE") { - return h('div', [h('span', { }, '待核验'),]); - }else if (params.row.orderStatus == "CANCELLED") { - return h('div', [h('span', { }, '已取消'),]); + return h("div", [h("tag", {props: {color: "geekblue"}}, "待发货")]); + } else if (params.row.orderStatus == "DELIVERED") { + return h("div", [h("tag", {props: {color: "cyan"}}, "已发货")]); + } else if (params.row.orderStatus == "COMPLETED") { + return h("div", [h("tag", {props: {color: "green"}}, "已完成")]); + } else if (params.row.orderStatus == "TAKE") { + return h("div", [h("tag", {props: {color: "volcano"}}, "待核验")]); + } else if (params.row.orderStatus == "CANCELLED") { + return h("div", [h("tag", {props: {color: "red"}}, "已取消")]); } } }, diff --git a/seller/src/views/shop/bill/accountStatementBill.vue b/seller/src/views/shop/bill/accountStatementBill.vue index e944f432..8fa895ba 100644 --- a/seller/src/views/shop/bill/accountStatementBill.vue +++ b/seller/src/views/shop/bill/accountStatementBill.vue @@ -132,15 +132,13 @@ width: 100, render: (h, params) => { if (params.row.billStatus == "OUT") { - return h( "Badge", {props: { status: "success",text: "已出账" } }) - } else if (params.row.billStatus == "EXAMINE") { - return h( "Badge", {props: { status: "success",text: "已审核" } }) + return h("Tag", {props: {color: "blue",},},"已出账"); } else if (params.row.billStatus == "CHECK") { - return h( "Badge", {props: { status: "success",text: "已对账" } }) - } else if (params.row.billStatus == "PAY") { - return h( "Badge", {props: { status: "success",text: "已付款" } }) - }else if (params.row.billStatus == "COMPLETE") { - return h( "Badge", {props: { status: "success",text: "已完成" } }) + return h("Tag", {props: {color: "geekblue",},},"已对账"); + } else if (params.row.billStatus == "EXAMINE") { + return h("Tag", {props: {color: "purple",},},"已审核"); + } else { + return h("Tag", {props: {color: "green",},},"已付款"); } } }, diff --git a/seller/src/views/shop/bill/storeBill.vue b/seller/src/views/shop/bill/storeBill.vue index 1797db66..035c76c8 100644 --- a/seller/src/views/shop/bill/storeBill.vue +++ b/seller/src/views/shop/bill/storeBill.vue @@ -143,15 +143,13 @@ width: 100, render: (h, params) => { if (params.row.billStatus == "OUT") { - return h( "Badge", {props: { status: "success",text: "已出账" } }) - } else if (params.row.billStatus == "EXAMINE") { - return h( "Badge", {props: { status: "success",text: "已审核" } }) + return h("Tag", {props: {color: "blue",},},"已出账"); } else if (params.row.billStatus == "CHECK") { - return h( "Badge", {props: { status: "success",text: "已对账" } }) - } else if (params.row.billStatus == "PAY") { - return h( "Badge", {props: { status: "success",text: "已付款" } }) - }else if (params.row.billStatus == "COMPLETE") { - return h( "Badge", {props: { status: "success",text: "已完成" } }) + return h("Tag", {props: {color: "geekblue",},},"已对账"); + } else if (params.row.billStatus == "EXAMINE") { + return h("Tag", {props: {color: "purple",},},"已审核"); + } else { + return h("Tag", {props: {color: "green",},},"已付款"); } } }, diff --git a/seller/src/views/shop/ship/logistics.vue b/seller/src/views/shop/ship/logistics.vue index 94fe169e..c9479e2d 100644 --- a/seller/src/views/shop/ship/logistics.vue +++ b/seller/src/views/shop/ship/logistics.vue @@ -58,10 +58,10 @@ minWidth: 120, sortable: true, render: (h, params) => { - if (params.row.selected === null || params.row.selected === "") { - return h( "Badge", {props: { status: "error",text: "关闭" } }) - } else if (params.row.selected !== "") { - return h( "Badge", {props: { status: "success",text: "开启" } }) + if(params.row.selected === null || params.row.selected === ""){ + return h("div", [h("tag", {props: {color: "volcano"}}, "关闭")]); + }else{ + return h("div", [h("tag", {props: {color: "green"}}, "开启")]); } } }, From c3264314072b6839401e73475e4d127dc2bbe2e3 Mon Sep 17 00:00:00 2001 From: lifenlong Date: Wed, 23 Jun 2021 11:46:38 +0800 Subject: [PATCH 18/48] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=8C=E7=8A=B6=E6=80=81=E5=B1=95=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/views/goods/goods-seller/goods.vue | 53 +++---------------- 1 file changed, 8 insertions(+), 45 deletions(-) diff --git a/seller/src/views/goods/goods-seller/goods.vue b/seller/src/views/goods/goods-seller/goods.vue index de865194..48bae50e 100644 --- a/seller/src/views/goods/goods-seller/goods.vue +++ b/seller/src/views/goods/goods-seller/goods.vue @@ -239,11 +239,11 @@ export default { width: 130, render: (h, params) => { if (params.row.goodsType === 'PHYSICAL_GOODS') { - return h("div", "实物商品"); + return h("Tag", {props: {color: "geekblue"}},"实物商品"); } else if (params.row.goodsType === 'VIRTUAL_GOODS') { - return h("div", "虚拟商品"); + return h("Tag", {props: {color: "purple"}},"虚拟商品"); } else { - return h("div", "电子卡券"); + return h("Tag", {props: {color: "cyan"}},"电子卡券"); } }, }, @@ -276,32 +276,11 @@ export default { width: 120, render: (h, params) => { if (params.row.isAuth == "PASS") { - return h("div", [ - h("Badge", { - props: { - status: "success", - text: "审核通过", - }, - }), - ]); + return h("Tag", {props: {color: "green"}},"通过"); } else if (params.row.isAuth == "TOBEAUDITED") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "待审核", - }, - }), - ]); + return h("Tag", {props: {color: "volcano"}},"待审核"); } else if (params.row.isAuth == "REFUSE") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "审核拒绝", - }, - }), - ]); + return h("Tag", {props: {color: "red"}},"审核拒绝"); } }, }, @@ -312,28 +291,12 @@ export default { sortable: false, render: (h, params) => { if (params.row.marketEnable == "DOWN") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "下架", - }, - }), - ]); + return h("Tag", {props: {color: "red"}},"下架"); } else if (params.row.marketEnable == "UPPER") { - return h("div", [ - h("Badge", { - props: { - status: "success", - text: "上架", - }, - }), - ]); - } else { + return h("Tag", {props: {color: "green"}},"上架"); } }, }, - { title: "操作", key: "action", From 8032f3bda1a4fbcea539d2ff7940d86667fca50c Mon Sep 17 00:00:00 2001 From: Chopper Date: Wed, 23 Jun 2021 16:48:43 +0800 Subject: [PATCH 19/48] =?UTF-8?q?=E5=88=86=E7=B1=BB=E8=A7=84=E6=A0=BC?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/goods.js | 15 +- .../src/views/goods/goods-manage/category.vue | 1 - manager/src/views/goods/goods-manage/spec.vue | 156 +++++++----------- 3 files changed, 60 insertions(+), 112 deletions(-) diff --git a/manager/src/api/goods.js b/manager/src/api/goods.js index 4b02cd15..13a4a41a 100644 --- a/manager/src/api/goods.js +++ b/manager/src/api/goods.js @@ -76,15 +76,15 @@ export const disableCategory = (id, type) => { // 获取商品规格分页列表 export const getSpecListData = (params) => { - return getRequest('/goods/spec/page', params) + return getRequest('/goods/spec', params) } // 添加或修改规格设置 export const insertSpec = (params) => { return postRequest('/goods/spec', params) } // 添加或修改规格设置 -export const updateSpec = (params) => { - return putRequest('/goods/spec', params) +export const updateSpec = (id,params) => { + return putRequest(`/goods/spec/${id}`, params) } //根据分类id获取关联规格 export const getCategorySpecListData = (category_id, params) => { @@ -94,15 +94,6 @@ export const getCategorySpecListData = (category_id, params) => { export const delSpec = (id, params) => { return deleteRequest(`/goods/spec/${id}`, params) } -// 获取商品规格值列表 -export const getSpecValuesListData = (id, params) => { - return getRequest(`/goods/specValues/values/${id}`, params) -} -// 添加商品规格值 -export const saveSpecValues = (id, params) => { - return postRequest(`/goods/specValues/save/${id}`, params) -} - // 查询某分类下的全部子分类列表 export const getGoodsCategory = (parent_id) => { diff --git a/manager/src/views/goods/goods-manage/category.vue b/manager/src/views/goods/goods-manage/category.vue index 1bcc3217..deacb087 100644 --- a/manager/src/views/goods/goods-manage/category.vue +++ b/manager/src/views/goods/goods-manage/category.vue @@ -261,7 +261,6 @@ export default { getCategorySpecListData(v.id).then((res) => { this.categoryId = v.id; this.modalSpecTitle = "规格关联"; - console.log(res); this.specForm.categorySpecs = res.map((item) => item.id); this.modalSpecVisible = true; }); diff --git a/manager/src/views/goods/goods-manage/spec.vue b/manager/src/views/goods/goods-manage/spec.vue index 701554d8..b6cdfa3e 100644 --- a/manager/src/views/goods/goods-manage/spec.vue +++ b/manager/src/views/goods/goods-manage/spec.vue @@ -23,8 +23,8 @@ - - + + - + + + +
-
- - -
- - -
- - 提交 +
@@ -118,10 +98,9 @@ import { getSpecListData, insertSpec, updateSpec, - delSpec, - getSpecValuesListData, - saveSpecValues, + delSpec } from "@/api/goods"; + export default { name: "spec", components: {}, @@ -131,7 +110,6 @@ export default { modalType: 0, // 添加或编辑标识 modalVisible: false, // 添加或编辑显示 modalTitle: "", // 添加或编辑标题 - dialogSpecValuesVisible: false, // 添加或编辑规格值 specTitle: "", // 添加或编辑规格值 searchForm: { // 搜索框初始化对象 @@ -145,9 +123,8 @@ export default { specName: "", specValue: "", }, - specForm: {}, /** 编辑规格值 */ - specValues: [], + specValue: [], // 表单验证规则 formValidate: {}, submitLoading: false, // 添加或编辑提交状态 @@ -179,24 +156,7 @@ export default { width: 250, render: (h, params) => { return h("div", [ - h( - "Button", - { - props: { - type: "primary", - size: "small", - }, - style: { - marginRight: "5px", - }, - on: { - click: () => { - this.editSpec(params.row); - }, - }, - }, - "编辑规格值" - ), + h( "Button", { @@ -239,23 +199,28 @@ export default { }; }, methods: { + //初始化,获取数据 init() { this.getDataList(); }, + //修改分页 changePage(v) { this.searchForm.pageNumber = v; this.getDataList(); this.clearSelectAll(); }, + //修改页面大小 changePageSize(v) { this.searchForm.pageSize = v; this.getDataList(); }, + //搜索参数 handleSearch() { this.searchForm.pageNumber = 1; this.searchForm.pageSize = 10; this.getDataList(); }, + //重置搜索参数 handleReset() { this.$refs.searchForm.resetFields(); this.searchForm.pageNumber = 1; @@ -263,6 +228,7 @@ export default { // 重新加载数据 this.getDataList(); }, + //更改排序 changeSort(e) { this.searchForm.sort = e.key; this.searchForm.order = e.order; @@ -271,36 +237,27 @@ export default { } this.getDataList(); }, + //清除已选择 clearSelectAll() { this.$refs.table.selectAll(false); }, + //修改已选择 changeSelect(e) { this.selectList = e; this.selectCount = e.length; }, + //获取数据 getDataList() { this.loading = true; // 带多条件搜索参数获取表单数据 请自行修改接口 getSpecListData(this.searchForm).then((res) => { this.loading = false; - if (res.success) { - this.data = res.result.records; - this.total = res.result.total; - } + this.data = res.records; + this.total = res.total; }); this.loading = false; }, - submitSpecValuesForm() { - saveSpecValues(this.specForm.specId, this.specForm).then((res) => { - this.submitLoading = false; - if (res.success) { - this.$Message.success("规格值保存成功"); - this.getDataList(); - this.modalVisible = false; - this.dialogSpecValuesVisible = false; - } - }); - }, + //新增规格 saveSpec() { this.$refs.form.validate((valid) => { if (valid) { @@ -318,7 +275,7 @@ export default { }); } else { // 编辑 - updateSpec(this.form).then((res) => { + updateSpec(this.form.id, this.form).then((res) => { this.submitLoading = false; if (res.success) { this.$Message.success("操作成功"); @@ -330,6 +287,7 @@ export default { } }); }, + //弹出添加框 add() { this.modalType = 0; this.modalTitle = "添加"; @@ -337,31 +295,31 @@ export default { delete this.form.id; this.modalVisible = true; }, + //弹出编辑框 edit(v) { this.modalType = 1; this.modalTitle = "编辑"; - this.$refs.form.resetFields(); // 转换null为"" for (let attr in v) { if (v[attr] === null) { v[attr] = ""; } } - let str = JSON.stringify(v); - let data = JSON.parse(str); - this.form = data; + let localVal = v.specValue; + + this.form.specName = v.specName; + this.form.id = v.id; + this.form.specValue = v.specValue; + + if (localVal && localVal.indexOf("," > 0)) { + this.form.specValue = localVal.split(",") + this.specValue = this.form.specValue + this.$set(this, 'specValue', this.form.specValue) + } else { + this.specValue = []; + } this.modalVisible = true; }, - editSpec(v) { - getSpecValuesListData(v.id).then((res) => { - this.modalType = 1; - this.modalTitle = "编辑"; - this.specValues = res.result; - this.specForm.specValue = res.result.map(item => item.specValue) - this.specForm.specId = v.id; - this.dialogSpecValuesVisible = true; - }); - }, remove(v) { this.$Modal.confirm({ title: "确认删除", @@ -415,5 +373,5 @@ export default { }; From f2f2984c3e8d864a9c170366958920f044fc09c0 Mon Sep 17 00:00:00 2001 From: mabo Date: Wed, 23 Jun 2021 16:49:35 +0800 Subject: [PATCH 20/48] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/GoodsList.vue | 2 +- buyer/src/plugins/request.js | 2 + manager/src/libs/axios.js | 10 +-- .../my-components/lili/upload-pic-thumb.vue | 83 +++++++++-------- seller/src/config/index.js | 16 ++-- seller/src/libs/axios.js | 10 +-- seller/src/libs/routerJson.js | 28 +++--- seller/src/router/router.js | 2 +- .../views/goods/goods-seller/addGoods.scss | 4 +- .../goods/goods-seller/goodsOperation.vue | 73 ++++----------- .../my-components/lili/upload-pic-thumb.vue | 90 ++++++++++--------- 11 files changed, 141 insertions(+), 179 deletions(-) diff --git a/buyer/src/pages/GoodsList.vue b/buyer/src/pages/GoodsList.vue index 718ae499..7020c2f4 100644 --- a/buyer/src/pages/GoodsList.vue +++ b/buyer/src/pages/GoodsList.vue @@ -69,7 +69,7 @@ >人评价
- {{ item.storeName }} + 自营{{ item.storeName }}
diff --git a/buyer/src/plugins/request.js b/buyer/src/plugins/request.js index 5a897bb0..c5457098 100644 --- a/buyer/src/plugins/request.js +++ b/buyer/src/plugins/request.js @@ -142,6 +142,8 @@ service.interceptors.response.use( refresh(error) isRefreshToken = 0; } + } else if (errorResponse.status === 404) { + // 避免刷新token时也提示报错信息 } else { if (error.message) { let _message = diff --git a/manager/src/libs/axios.js b/manager/src/libs/axios.js index 6bd6d6c1..5d8c68ec 100644 --- a/manager/src/libs/axios.js +++ b/manager/src/libs/axios.js @@ -64,14 +64,6 @@ service.interceptors.response.use( } return data; break; - case 403: - // 权限不足 - if (data.message !== null) { - Message.error(data.message); - } else { - Message.error("权限不足"); - } - break; case 500: // 系统异常 if (data.message !== null) { @@ -89,6 +81,8 @@ service.interceptors.response.use( if (error.response) { if (error.response.status === 401) { // 这种情况一般调到登录页 + } else if (error.response.status === 404) { + // 避免刷新token报错 } else if (error.response.status === 403) { isRefreshToken++; if(isRefreshToken === 1) { diff --git a/manager/src/views/my-components/lili/upload-pic-thumb.vue b/manager/src/views/my-components/lili/upload-pic-thumb.vue index d9583ca6..03ec4086 100644 --- a/manager/src/views/my-components/lili/upload-pic-thumb.vue +++ b/manager/src/views/my-components/lili/upload-pic-thumb.vue @@ -1,47 +1,48 @@ - +
- + @@ -185,23 +197,30 @@
- - - + + + -
+
- - + + - +
@@ -225,34 +244,36 @@ } " :span-method="handleSpan"> diff --git a/buyer/yarn.lock b/buyer/yarn.lock index 6dbcc1c8..afd75933 100644 --- a/buyer/yarn.lock +++ b/buyer/yarn.lock @@ -2051,7 +2051,7 @@ copy-webpack-plugin@^4.0.1: p-limit "^1.0.0" serialize-javascript "^1.4.0" -core-js@^2.4.0, core-js@^2.5.0: +core-js@^2.4.0, core-js@^2.5.0, core-js@^2.6.5: version "2.6.12" resolved "https://registry.npm.taobao.org/core-js/download/core-js-2.6.12.tgz?cache=0&sync_timestamp=1607216048810&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcore-js%2Fdownload%2Fcore-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" integrity sha1-2TM9+nsGXjR8xWgiGdb2kIWcwuw= @@ -5150,6 +5150,16 @@ mute-stream@0.0.7: resolved "https://registry.npm.taobao.org/mute-stream/download/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= +mv-count-down@^0.1.15: + version "0.1.15" + resolved "https://registry.npmjs.org/mv-count-down/-/mv-count-down-0.1.15.tgz#a3f3c1677576e592c7710b441b2dda96acac2702" + integrity sha512-7poh86i27D/u4AvE9Ne8QHhy61p4MYAhSf4XAVyxzL0gXVCyccJ0NtJferEOxBP6C2q9jImknpKLGdwnEeJ7qQ== + dependencies: + core-js "^2.6.5" + vue "^2.6.10" + vue-router "^3.0.3" + vuex "^3.0.1" + nan@^2.12.1, nan@^2.13.2: version "2.14.2" resolved "https://registry.npm.taobao.org/nan/download/nan-2.14.2.tgz?cache=0&sync_timestamp=1602591700047&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnan%2Fdownload%2Fnan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19" @@ -8315,6 +8325,11 @@ vue-router@^3.0.1: resolved "https://registry.npm.taobao.org/vue-router/download/vue-router-3.4.9.tgz?cache=0&sync_timestamp=1607347231238&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.4.9.tgz#c016f42030ae2932f14e4748b39a1d9a0e250e66" integrity sha1-wBb0IDCuKTLxTkdIs5odmg4lDmY= +vue-router@^3.0.3: + version "3.5.2" + resolved "https://registry.npmjs.org/vue-router/-/vue-router-3.5.2.tgz#5f55e3f251970e36c3e8d88a7cd2d67a350ade5c" + integrity sha512-807gn82hTnjCYGrnF3eNmIw/dk7/GE4B5h69BlyCK9KHASwSloD1Sjcn06zg9fVG4fYH2DrsNBZkpLtb25WtaQ== + vue-style-loader@^3.0.0, vue-style-loader@^3.0.1: version "3.1.2" resolved "https://registry.npm.taobao.org/vue-style-loader/download/vue-style-loader-3.1.2.tgz#6b66ad34998fc9520c2f1e4d5fa4091641c1597a" From 4160ebe004057c3741a8c1fc2811a1d977d8d3bd Mon Sep 17 00:00:00 2001 From: mabo Date: Fri, 25 Jun 2021 17:36:00 +0800 Subject: [PATCH 42/48] =?UTF-8?q?=E8=99=9A=E6=8B=9F=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=94=AE=E5=90=8E=EF=BC=8C=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/goodsDetail/ShowGoods.vue | 1 + .../goodsDetail/ShowGoodsDetail.vue | 22 +++++++++++++++++++ .../home/orderCenter/AfterSaleDetail.vue | 9 ++++++++ .../pages/home/orderCenter/ApplyAfterSale.vue | 11 ++++++---- 4 files changed, 39 insertions(+), 4 deletions(-) diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index 4378d9ac..32536da6 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -327,6 +327,7 @@ export default { }) }, promotion () { // 格式化促销活动,返回当前促销的对象 + if (!this.detail.promotionMap) return false; let keysArr = Object.keys(this.detail.promotionMap); if (keysArr.length === 0) return false; diff --git a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue index 72b4a349..d58f5a6e 100644 --- a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue +++ b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue @@ -86,6 +86,14 @@
+ +
+ + + +
{{param.paramName}}{{param.paramValue}}
+ +
@@ -475,4 +483,18 @@ export default { .ivu-rate-star-full:before, .ivu-rate-star-half .ivu-rate-star-content:before { color: $theme_color; } +table{ + border-color: #eee; + color: #999; + width: 70%; + margin-left: 10px; + tr{ + td:nth-child(1){ + width: 200px; + } + } + td{ + padding: 5px; + } +} diff --git a/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue b/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue index 7adcfd1a..51301f2e 100644 --- a/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue +++ b/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue @@ -44,6 +44,12 @@ +
+

图片信息

+
+ +
+
From 0adbde45b9ba6d0ebfaf14a7c85fb186be8db45d Mon Sep 17 00:00:00 2001 From: Chopper Date: Fri, 25 Jun 2021 18:30:30 +0800 Subject: [PATCH 43/48] =?UTF-8?q?=E5=85=85=E5=80=BC=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/home/userCenter/MoneyManagement.vue | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/buyer/src/pages/home/userCenter/MoneyManagement.vue b/buyer/src/pages/home/userCenter/MoneyManagement.vue index d9e8a317..f57011b3 100644 --- a/buyer/src/pages/home/userCenter/MoneyManagement.vue +++ b/buyer/src/pages/home/userCenter/MoneyManagement.vue @@ -215,7 +215,7 @@ export default { color: 'green' } }, - params.row.money + this.$options.filters.unitPrice(params.row.money, '+ ¥') ) ]); } else if (params.row.money < 0) { @@ -227,7 +227,7 @@ export default { color: 'red' } }, - params.row.money + this.$options.filters.unitPrice(0 - params.row.money, '- ¥') ) ]); } @@ -252,7 +252,10 @@ export default { }, { title: '充值金额', - key: 'rechargeMoney' + key: 'rechargeMoney', + render: (h, params) => { + return h('div', [h('span', this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]); + } }, { title: '支付状态', @@ -281,7 +284,9 @@ export default { { title: '提现金额', key: 'applyMoney', - width: 120 + render: (h, params) => { + return h('div', [h('span', this.$options.filters.unitPrice(params.row.applyMoney, '¥'))]); + } }, { title: '提现状态', @@ -392,9 +397,10 @@ export default { if (valid) { recharge(this.formData).then((res) => { if (res.message === 'success') { - // TODO 根据返回的值跳转到收银台进行支付,一下是输出sn - console.warn(res.result.rechargeSn); - this.modal = false; + this.$router.push({ + path: '/payment', + query: { orderType: 'RECHARGE', sn: res.result.rechargeSn } + }); } }); } From 31c585bcafeeeff44fde77f671b4738a62c049d4 Mon Sep 17 00:00:00 2001 From: mabo Date: Fri, 25 Jun 2021 18:31:55 +0800 Subject: [PATCH 44/48] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=99=E9=A2=9D?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/package.json | 2 +- buyer/src/assets/iconfont/icomoon.eot | Bin 2380 -> 3260 bytes buyer/src/assets/iconfont/icomoon.svg | 2 + buyer/src/assets/iconfont/icomoon.ttf | Bin 2216 -> 3096 bytes buyer/src/assets/iconfont/icomoon.woff | Bin 2292 -> 3172 bytes buyer/src/assets/iconfont/iconfont.css | 18 ++-- .../indexDecorate/modelList/seckill.vue | 2 +- buyer/src/pages/payment/PayMent.vue | 83 +++++++++++------- 8 files changed, 66 insertions(+), 41 deletions(-) diff --git a/buyer/package.json b/buyer/package.json index 7a960738..9f64b7fb 100644 --- a/buyer/package.json +++ b/buyer/package.json @@ -17,7 +17,7 @@ "mv-count-down": "^0.1.15", "psl": "^1.8.0", "qs": "^6.9.4", - "swiper": "^6.4.1", + "swiper": "^5.2.0", "uuid": "^8.3.2", "v-distpicker": "^1.0.17", "view-design": "^4.3.2", diff --git a/buyer/src/assets/iconfont/icomoon.eot b/buyer/src/assets/iconfont/icomoon.eot index 5a5b53d373f1261ad6934976642f5d4b111fe746..1155a87a0b218ca403925d4f0941eb704e047617 100644 GIT binary patch delta 1189 zcmZuxPe>F|82`R`JM(;F>$L99ny|X=Os$g9uCA_8N>T?S3p#9uh}5EM9<&yc5>gf_ zIz$$-Py|JXf-HgxgNQ6Tbm(B04$&c{h%QkOL=ae0-ik1U>`69DRodMzi^UDTCU&Db`wdmKPzlE&#m=$4U_cZS zkb<4i1qYxHMqmPpa04E~JiLeR$kC*_F-tQ8p>QhJoNf)Y#92tQV^*BhG?~ICw=Jy( zL*Z@MobJGuIJa91;aEAv`Okr zaTXL>Xe(?mCn_pLPWSsOGnukdfZao);P;Cm;rhOoR4~-i5~mDPa4wi~UlT%mfM^-v zu;DC{q*iDtjG`A6hI<6xs_BAnJk5pRMJ}9oab1&oT8eu@8CCIa1%{Hl@+IFOczoyX(<`J4rKM4ksg~jsmkX_FcgV|f)T%! zNLbjAuzsDfl1YnAScywL{lSPAIGl{N#*(*V$z<&JH5vF(QLhH8RF!@O zNTlfN@6AjeG}?baxsMDXfOkuMQ=~2Ll5??^S64@+%@=jkq`I>7;yzxtk#did(_1=~ bsfBrr;~iy$z46tOS$5Mg43)DN_%r+qL>$k0 delta 322 zcmdlZc}9rMhm(O}1;<1-GZw|eg^?2-$_0-zFfi-^;)LYf!~*fKOI;IB$kdnQNIYg> zV60$ZV7ZZznwTQ9N%A8D16u%4ommD@fc-G@DImWC$XCh8EvXP=WB{_+)&ThmIr+(n z%)6Mnfc!H+zEEyrMFE2V1Bm|sB%hay2r^EU$nJCMuRR*+v@!oUnFhHWYA7-om9I2j*}wh%m@8oMBXBT*Z_F6agva N0D6sm^FOYAi~y@}MJfOQ diff --git a/buyer/src/assets/iconfont/icomoon.svg b/buyer/src/assets/iconfont/icomoon.svg index a44989ac..780957bd 100644 --- a/buyer/src/assets/iconfont/icomoon.svg +++ b/buyer/src/assets/iconfont/icomoon.svg @@ -11,4 +11,6 @@ + + \ No newline at end of file diff --git a/buyer/src/assets/iconfont/icomoon.ttf b/buyer/src/assets/iconfont/icomoon.ttf index b63f6d43ced31f4d9052ebfee5e4fe8caf067d84..d89161b6aba46403a9920b2a9654b381732298ba 100644 GIT binary patch delta 1242 zcmZuxU1$_n6h3EeW^V2*n=#p)O&&HsJEI#>>29*grkI5K1Ew^Q7F;7Gh%RQ6JS4i1 zAQ2-gT6`!CB@I*s#Rn17BGh6)q%G`2AN9ot@gWI{_#*X51R*+l&ddgv&&VzvTw}(=lR)hYEJb%-7{KQng*f{+7Cjg8S&W-1%i!^T`%yaGd zNjegFg3(W#Z%KWB$P(z9mhe4zZS}0q5caF zqJD1(b-mO8ry(PL6bHeAR!Bhx_QL=iff1O5Iaq|7unZ638N5M>HjySA!>*6UGKtP? zcYRkDwl){C9le(Xw0w>uO0A0K9dcxfjF1w9$tm7B=j$R_rl zAUCMZa*yt=Czl+MTdE>rLv!BH(V{I41KEvd?v+S8?b58A1 z@^+ANU#ejxGn_|;UOT<}kL8+HQHC(ILkB%w|33MKJLm;8I!U_5Y$=mqPu0WgN74QT z(q+pIU3(ReMC0*jBp!BBDF?TwocBLC>9ix}oYb$wp>2(!sPgXM(MUW2%`5bxwSt>DMBSx=ud`{&UcG^!wboV^-f=2-T3|0Km%n$ULnob44@#A3$R-4Js1l zk7aSADElmYTX(i4jd zfV2RR5288Jb1KtHawHxD`4tQdEH^Sz6H{b1Nq%HtU<&}sn`Hn6*bg(G0`fb6e3gvc zk_s_K1|XYl4Un&plb`IE$h?aQXaU<9pnyqNI_m=Zt6@g&fg3S>_9GK zTS0zt3DBWHzyUH)fq|KM*2Dw$jLef5y&0J|`!KSyYJ&U&#F2%E732ABzA|vLfYdYG zIq_;2g8qMig>mvdPDx3SY6ccYkPZ~UF91^|J^x)Epy=4Qaklls{CjZS&_=tN-(086xyXK5Px`|Ma@nz6fN z*H`6}vGMOl3A;~FAIpF9!}m+Y!U%v#E|6ns>0bG%L?B_?$o`Z?J`u~MiJ6mx9VB}L zOKUs$5oswQpHuez=v*CVu zGll`ZS=*Cql6$c=*?U9ZFgC|Edb(4av7<_cm;~fvRWi}la3aEWZ02PXn_xk~x>u$I zHT2l(4V}4*pb)8`?uR&T%tq^T6Tnjr5bP2gT7w;QIC zn|_o^$%<6|!<1?8I>+j|GDdhd)B!^kr8*~7S;=2H!spDiC-&La2Oj?I)h>j#J7TVq zpU(SJwHEFO8)S!>{9kJ_5IH^vp?S7-h09#gG$!>0pH`Uq~)v+PHTUpv6t#kw}J2odOjPI|h*eew-=(hF#E zQ*@2FayH3G&BNC;U RL)gMpJO)OwwV9WqYgn+Pk*rl%Y z#A1-x9*`a=7D&&jOaqD?VPIgn0m3CY5|1-d6H^!%*yaG$n1Qg&CdrQ(KtZ6`6(C;) zgxL=>pUTKBsQ`-o0P+<;Sd5XOBPTx@sLqdF0w^E^!pysvx^fdMfEKgsfE0nT07F+^ zVs0u>%m-+B8wk(z;{08ZUt9uo8^{ufI%Xh?nR(V^9!7gc=E**c-i*wfXE3s|Ml%8> zfH<=7uwp#F%~u9)7N7tF!<`eab|L8h2Ur-H4*>Zb3``(VAOPxNKJfnl(5E01KqQz3 yv7vxtatxOO$cqdNTnr)%atvn})fiVX