mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-11-13 20:38:51 +08:00
fix(order): 修复已取消订单状态下的投诉和售后逻辑
- 投诉页面增加订单取消状态校验,已取消订单禁止发起投诉并自动返回 - 订单详情页售后入口增加取消状态判断,取消订单不展示售后按钮 - 退款价格展示增加已支付状态校验,避免未支付订单显示退款信息 - 新增 resolveRefundPrice 函数,全额退款时回退使用 flowPrice 计算 - 重构联系方式区域布局,分离电话号码与图标并优化样式
This commit is contained in:
@@ -159,6 +159,10 @@ function loadData(orderSn: string) {
|
||||
order.value = result.order
|
||||
orderGoodsList.value = result.orderItems
|
||||
if (store.state.isShowToast) uni.hideLoading()
|
||||
if (result?.order?.orderStatus === 'CANCELLED') {
|
||||
uni.showToast({ title: '订单已取消,无法发起投诉', icon: 'none' })
|
||||
setTimeout(() => { uni.navigateBack() }, 1500)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user