Fix:2445 【商城小程序】未打开售后的待评价订单,点击订单详情页的【申请退款】按钮仍然可以退款。

This commit is contained in:
modendeveloper
2024-10-11 21:49:07 +08:00
parent abd13edb81
commit d9c696af23
+18 -9
View File
@@ -10,7 +10,7 @@
<view class="state v12-primary-text v12-font-32 v12-font-bold" v-else>{{ getStatus(orderInfo) }}</view>
<view v-if="getStatus(orderInfo)!=='待付款'" class="v12-mt-2 v12-font-24 v12-secondary-dark-text" :class="{'fails-bg': orderInfo._status._type == -3}">
<view>{{ orderInfo._status._msg }}</view>
<view>驳回原因: {{ orderInfo.refundReasonWap }}</view>
<view v-if="orderInfo._status._type == -3">驳回原因: {{ orderInfo.refundReasonWap }}</view>
</view>
<view class="pending-payments flex ai-center v12-mt-2 v12-font-24 v12-secondary-dark-text" v-else>
<text>需支付{{ orderInfo.payPrice }}</text>
@@ -347,7 +347,7 @@
<view class="bnt v12-dark-text v12-dark-border cancel" @click="goRoom(orderInfo)">联系商家</view>
<view class="v12-justify-between">
<view class="" style="position: relative">
<text class="btn-more v12-font-24 v12-mr-2" @click.stop="showMore = !showMore">更多</text>
<view class="btn-more v12-font-24 v12-mr-2" @click.stop="showMore = !showMore">更多</view>
<view class="group-float" v-show="showMore" :style="{top: orderInfo.isExtendedDelivery==0 ? '-60px' : '-32px'}">
<view v-if="orderInfo.isExtendedDelivery==0" class="btn flex jc-center ai-center v12-font-24" @click="toDelay(orderInfo.orderId)">延长收货</view>
<view class="btn flex jc-center ai-center v12-font-24" @click="goGoodsReturn(orderInfo)">申请退款</view>
@@ -549,7 +549,7 @@ export default {
copyClipboard,
handleBody() {
this.showMore = false
this.$forceUpdate()
// this.$forceUpdate()
},
getExpressInfo() {
let params = {
@@ -729,12 +729,21 @@ export default {
})
},
goGoodsReturn(orderInfo) {
this.$yrouter.push({
path: "/pages/order/GoodsReturn/index",
query: {
id: orderInfo.orderId
}
});
if(orderInfo.refundSystemStatus === 0) {
uni.showToast({
title: '订单已收货,如需退款请联系商家',
mask: false,
icon: 'none',
duration: 3000
})
} else {
this.$yrouter.push({
path: "/pages/order/GoodsReturn/index",
query: {
id: orderInfo.orderId
}
});
}
},
goGroupRule(orderInfo) {
this.$yrouter.push({