fix(order): 修复已取消订单状态下的投诉和售后逻辑

- 投诉页面增加订单取消状态校验,已取消订单禁止发起投诉并自动返回
- 订单详情页售后入口增加取消状态判断,取消订单不展示售后按钮
- 退款价格展示增加已支付状态校验,避免未支付订单显示退款信息
- 新增 resolveRefundPrice 函数,全额退款时回退使用 flowPrice 计算
- 重构联系方式区域布局,分离电话号码与图标并优化样式
This commit is contained in:
pikachu1995@126.com
2026-11-12 09:48:04 +08:00
parent 870e9c4db4
commit e71b15036f
2 changed files with 37 additions and 4 deletions

View File

@@ -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)
}
})
}