Feat(订单):增加打开售后的逻辑判断
This commit is contained in:
@@ -207,12 +207,19 @@ export default {
|
||||
goRefund(order) {
|
||||
// fix bug#1631
|
||||
if (this.type === 4 || parseInt(order._status._type) === 3) {
|
||||
uni.showToast({
|
||||
title: '订单已收货,如需退款请联系客服',
|
||||
mask: false,
|
||||
icon: 'none',
|
||||
duration: 3000
|
||||
})
|
||||
// 打开售后的目的就是开启已完成/待评价订单的退款功能,确认打开售后之后,小程序用户再点击申请退款,就可以进入退款申请填写页面,正常走退款流程,提交退款申请以后,订单状态变为退款中
|
||||
if (order.refundSystemStatus === 0) {
|
||||
uni.showToast({
|
||||
title: '订单已收货,如需退款请联系客服',
|
||||
mask: false,
|
||||
icon: 'none',
|
||||
duration: 3000
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: `/pkg_orders/views/refund?id=${order.orderId}`
|
||||
})
|
||||
}
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: `/pkg_orders/views/refund?id=${order.orderId}`
|
||||
|
||||
Reference in New Issue
Block a user