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 @@ 立即付款 - - - 申请退款 - - - - 申请退款 - - 查看拼团