Commit edd57ea6 by chenwq

```

fix(order): 隐藏补偿金额显示并修复订单详情跳转逻辑

- 注释掉订单取消信息面板中的补偿金额显示部分
- 移除appeal对象的console.log调试信息
- 修改个人页面中订单状态处理逻辑,统一跳转到订单详情页
- 移除原有的switch语句改为条件判断,简化代码逻辑
```
1 parent ab5046f6
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<text class="cancel-label">处理方案</text> <text class="cancel-label">处理方案</text>
<text class="cancel-value">{{ $t('enum.appeal.solution.' + appeal.solution) }}</text> <text class="cancel-value">{{ $t('enum.appeal.solution.' + appeal.solution) }}</text>
</view> </view>
<view v-if="appeal.solution === 'COMPENSATION'" class="cancel-row"> <!-- <view v-if="appeal.solution === 'COMPENSATION'" class="cancel-row">
<text class="cancel-label">补偿金额</text> <text class="cancel-label">补偿金额</text>
<text class="cancel-value cancel-value--red">¥{{ appeal.compensationAmount }}</text> <text class="cancel-value cancel-value--red">¥{{ appeal.compensationAmount }}</text>
</view> </view>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<view v-if="appeal.solution === 'RETURN'" class="cancel-row"> <view v-if="appeal.solution === 'RETURN'" class="cancel-row">
<text class="cancel-label">退款金额</text> <text class="cancel-label">退款金额</text>
<text class="cancel-value cancel-value--red">¥{{ appeal.refundAmount }}</text> <text class="cancel-value cancel-value--red">¥{{ appeal.refundAmount }}</text>
</view> </view> -->
<view class="cancel-row cancel-row--desc"> <view class="cancel-row cancel-row--desc">
<text class="cancel-label">裁决详情</text> <text class="cancel-label">裁决详情</text>
<text class="cancel-value cancel-value--desc">{{ appeal.solutionDesc }}</text> <text class="cancel-value cancel-value--desc">{{ appeal.solutionDesc }}</text>
...@@ -59,6 +59,7 @@ export default class OrderCanceledInfoPanel extends Vue { ...@@ -59,6 +59,7 @@ export default class OrderCanceledInfoPanel extends Vue {
AppealController.getAppealByOrderId(this.axios, this.order.orderId) AppealController.getAppealByOrderId(this.axios, this.order.orderId)
.then((res) => { .then((res) => {
this.appeal = res.data; this.appeal = res.data;
console.log(this.appeal);
}) })
.catch(() => { .catch(() => {
const list = this.order?.appeals || []; const list = this.order?.appeals || [];
......
...@@ -283,25 +283,28 @@ export default class ProfilePage extends Vue { ...@@ -283,25 +283,28 @@ export default class ProfilePage extends Vue {
this.navigateTo('/module/order/appeal/ViewAppeal?orderId=' + order.orderId); this.navigateTo('/module/order/appeal/ViewAppeal?orderId=' + order.orderId);
return; return;
} }
switch (order.orderState) { if(!['CANCELED', 'COMPLETED'].includes(order.orderState)) {
case 'CONTRACT_UNSIGNED': uni.navigateTo({url: '/module/order/OrderDetailPage?orderId=' + order.orderId});
this.navigateTo('/module/order/contract/ContractPage?orderId=' + order.orderId);
break;
case 'COMPLETED':
this.navigateTo('/module/order/OrderComplete?orderId=' + order.orderId);
break;
case "UNPAID":
this.navigateTo('/module/order/payment/PaymentPage?orderId=' + order.orderId);
break;
case "WAIT_PICKUP":
this.navigateTo('/module/order/pickup/PickUpVehiclePage?orderId=' + order.orderId);
break;
case "TRANSFERRING":
this.navigateTo('/module/order/transfer/UploadTransferPage?orderId=' + order.orderId);
break;
case "CANCELED":
break;
} }
// switch (order.orderState) {
// case 'CONTRACT_UNSIGNED':
// this.navigateTo('/module/order/contract/ContractPage?orderId=' + order.orderId);
// break;
// case 'COMPLETED':
// this.navigateTo('/module/order/OrderComplete?orderId=' + order.orderId);
// break;
// case "UNPAID":
// this.navigateTo('/module/order/payment/PaymentPage?orderId=' + order.orderId);
// break;
// case "WAIT_PICKUP":
// this.navigateTo('/module/order/pickup/PickUpVehiclePage?orderId=' + order.orderId);
// break;
// case "TRANSFERRING":
// this.navigateTo('/module/order/transfer/UploadTransferPage?orderId=' + order.orderId);
// break;
// case "CANCELED":
// break;
// }
} }
//获取是否显示收车偏好 //获取是否显示收车偏好
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!