From e452f7cb19b5a23a259f829b87888dd410682e4d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 18 Aug 2023 19:59:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=AE=A2=E5=8D=95=E3=80=91=201?= =?UTF-8?q?=E3=80=81=E6=8E=A5=E5=85=A5=E9=80=80=E6=AC=BE=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/orderGoods/index.vue | 29 +++++++++++++++++++++++++---- pages/order_details/index.vue | 18 +++++++----------- 2 files changed, 32 insertions(+), 15 deletions(-) diff --git a/components/orderGoods/index.vue b/components/orderGoods/index.vue index 8c7b81dd..9606e282 100644 --- a/components/orderGoods/index.vue +++ b/components/orderGoods/index.vue @@ -18,10 +18,16 @@ ¥{{ fen2yuan(item.price) }} + + + + {{ + item.afterSaleStatus === 0 ? '申请退款' : + item.afterSaleStatus === 10 ? '退款中' : '退款成功' + }} + - - 评价 - + 评价 已评价 @@ -36,6 +42,10 @@ type: Number, default: 0, // 是否开启评价功能 0 - 不开启;2 - 开启 }, + afterSale: { // 是否开启售后功能 + type: Boolean, + default: false, + }, cartInfo: { type: Array, default: function() { @@ -68,7 +78,7 @@ nVal.forEach((item, index) => { num += item.count }) - this.totalNmu = num + this.totalNmu = num } }, methods: { @@ -77,6 +87,17 @@ url: "/pages/users/goods_comment_con/index?orderItemId=" + item.id }) }, + afterSaleTap(item) { + if (item.afterSaleStatus === 0) { + uni.navigateTo({ + url: "/pages/users/goods_return/index?orderId=" + item.orderId + '&orderItemId=' + item.id + }) + return; + } + uni.navigateTo({ + url: "/pages/users/user_return_detail/index?id=" + item.afterSaleId + }) + }, jumpCon: function(id) { let type = this.productType === 0 ?'normal':'video' if (this.jump) { diff --git a/pages/order_details/index.vue b/pages/order_details/index.vue index 5bc4d76d..f6026507 100644 --- a/pages/order_details/index.vue +++ b/pages/order_details/index.vue @@ -122,6 +122,7 @@ 立即付款 - - - 申请退款 - - - - 申请退款 - - 查看拼团