diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index a6c50be3..40bda016 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -126,7 +126,7 @@ - + @@ -199,13 +199,18 @@ export default { skuId: this.skuDetail.id }; this.loading = true; + console.log(11111111); addCartGoods(params).then(res => { + debugger; this.loading = false; if (res.success) { this.$router.push({path: '/shoppingCart', query: {detail: this.skuDetail, count: this.count}}); } else { this.$Message.warning(res.message); } + }).catch(() => { + console.log('catch'); + this.loading = false; }); }, buyNow () { // 立即购买 @@ -222,6 +227,8 @@ export default { } else { this.$Message.warning(res.message); } + }).catch(() => { + this.loading1 = false; }); }, pointPay () { // 积分购买 @@ -339,7 +346,7 @@ export default { } }) } - + this.formatSku(this.goodsSpecList); this.promotion() document.title = this.skuDetail.goodsName diff --git a/buyer/src/components/invoiceModal/index.vue b/buyer/src/components/invoiceModal/index.vue index 7c44115e..b3989fca 100644 --- a/buyer/src/components/invoiceModal/index.vue +++ b/buyer/src/components/invoiceModal/index.vue @@ -11,42 +11,37 @@ -->
@@ -54,23 +49,24 @@ @@ -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 @@使用范围:{{useScope(item.scopeType)}}
-有效期:{{item.endTime}}
+使用范围:{{ useScope(item.scopeType) }}
+有效期:{{ item.endTime }}
+
立即使用
- 放弃优惠
+ 放弃优惠
请登录后执行此操作
', @@ -140,9 +139,11 @@ service.interceptors.response.use( isRefreshToken++; if (isRefreshToken === 1) { - refresh() + 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/distribution/distribution.vue b/manager/src/views/distribution/distribution.vue index e76799ab..7a2d5147 100644 --- a/manager/src/views/distribution/distribution.vue +++ b/manager/src/views/distribution/distribution.vue @@ -147,21 +147,13 @@ export default { sortable: false, render: (h, params) => { if (params.row.distributionStatus == "PASS") { - return h("Badge", { - props: { status: "success", text: "审核通过" }, - }); + return h("Tag", {props: {color: "green",},},"通过"); } else if (params.row.distributionStatus == "APPLY") { - return h("Badge", { - props: { status: "processing", text: "申请中" }, - }); + return h("Tag", {props: {color: "geekblue",},},"待审核"); } else if (params.row.distributionStatus == "RETREAT") { - return h("Badge", { - props: { status: "warning", text: "已清退" }, - }); + return h("Tag", {props: {color: "volcano",},},"清退"); } else if (params.row.distributionStatus == "REFUSE") { - return h("Badge", { - props: { status: "error", text: "审核拒绝" }, - }); + return h("Tag", {props: {color: "red",},},"拒绝"); } }, }, diff --git a/manager/src/views/goods/goods-info/goods.vue b/manager/src/views/goods/goods-info/goods.vue index a63543e9..6d442b05 100644 --- a/manager/src/views/goods/goods-info/goods.vue +++ b/manager/src/views/goods/goods-info/goods.vue @@ -186,11 +186,11 @@ export default { width: 130, render: (h, params) => { if (params.row.goodsType === 'PHYSICAL_GOODS') { - return h("div", "实物商品"); + return h("Tag", {props: {color: "green",},}, "实物商品"); } else if (params.row.goodsType === 'VIRTUAL_GOODS') { - return h("div", "虚拟商品"); + return h("Tag", {props: {color: "volcano",},}, "虚拟商品"); } else { - return h("div", "电子卡券"); + return h("Tag", {props: {color: "geekblue",},}, "电子卡券"); } }, }, @@ -200,23 +200,9 @@ export default { width: 100, render: (h, params) => { if (params.row.marketEnable == "DOWN") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "下架", - }, - }), - ]); + return h("Tag", {props: {color: "green"},},"上架"); } else if (params.row.marketEnable == "UPPER") { - return h("div", [ - h("Badge", { - props: { - status: "success", - text: "上架", - }, - }), - ]); + return h("Tag", {props: {color: "volcano",},},"下架"); } }, }, @@ -226,36 +212,14 @@ 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: "volcano",},},"待审核"); } 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",},},"拒绝"); } }, }, - { title: "店铺名称", key: "storeName", diff --git a/manager/src/views/goods/goods-manage/brand.vue b/manager/src/views/goods/goods-manage/brand.vue index b45dd2ce..d2f2212c 100644 --- a/manager/src/views/goods/goods-manage/brand.vue +++ b/manager/src/views/goods/goods-manage/brand.vue @@ -113,23 +113,9 @@ export default { align: "left", render: (h, params) => { if (params.row.deleteFlag == 0) { - return h("div", [ - h("Badge", { - props: { - status: "success", - text: "启用", - }, - }), - ]); + return h("Tag", {props: {color: "green",},},"启用"); } else if (params.row.deleteFlag == 1) { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "禁用", - }, - }), - ]); + return h("Tag", {props: {color: "volcano",},},"禁用"); } }, filters: [ diff --git a/manager/src/views/goods/goods-review/index.vue b/manager/src/views/goods/goods-review/index.vue index bc2b8ea0..3be73358 100644 --- a/manager/src/views/goods/goods-review/index.vue +++ b/manager/src/views/goods/goods-review/index.vue @@ -135,35 +135,11 @@ export default { width: 90, render: (h, params) => { if (params.row.grade == "GOOD") { - return h( - "Tag", - { - props: { - color: "success", - }, - }, - "好评" - ); + return h("Tag", {props: {color: "green",},}, "好评"); } else if (params.row.grade == "MODERATE") { - return h( - "Tag", - { - props: { - color: "warning", - }, - }, - "中评" - ); + return h("Tag", {props: {color: "orange",},}, "中评"); } else { - return h( - "Tag", - { - props: { - color: "error", - }, - }, - "差评" - ); + return h("Tag", {props: {color: "red",},}, "差评"); } }, }, 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/member/advance/recharge.vue b/manager/src/views/member/advance/recharge.vue index 96759e43..6d2b893d 100644 --- a/manager/src/views/member/advance/recharge.vue +++ b/manager/src/views/member/advance/recharge.vue @@ -131,23 +131,9 @@ sortable: false, render: (h, params) => { if (params.row.payStatus == "PAID") { - return h("div", [ - h("Badge", { - props: { - status: "success", - text: "已付款", - }, - }), - ]); - } else if (params.row.payStatus == "UNPAID") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "未付款", - }, - }), - ]); + return h("Tag", {props: {color: "green",},}, "已付款"); + } else { + return h("Tag", {props: {color: "red",},}, "未付款"); } }, }, 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 @@