|
@@ -193,16 +193,16 @@
|
|
|
<view class="inner rebook" v-if="fromPage=='rebook'">
|
|
|
<view class="price-info">
|
|
|
<view class="total-price">
|
|
|
- <text class="price-item">原订单总额:{{originOrderInfo.realPrice}}</text>
|
|
|
- <text class="price-item">改签总额:{{totalPrice}}</text>
|
|
|
+ <text class="price-item">原订单总额:{{reSubmitInfo.orgRealPrice||originOrderInfo.realPrice}}</text>
|
|
|
+ <text class="price-item" v-if="reSubmitInfo">改签总额:{{reSubmitInfo.realPrice}}</text>
|
|
|
</view>
|
|
|
<!-- 差价信息 -->
|
|
|
- <view class="difference">
|
|
|
- <view class="difference-item" v-if="originOrderInfo.realPrice - totalPrice>0">
|
|
|
- <text>待退款:{{originOrderInfo.realPrice - totalPrice}}</text>
|
|
|
+ <view class="difference" v-if="reSubmitInfo">
|
|
|
+ <view class="difference-item" v-if="reSubmitInfo.orgRealPrice - reSubmitInfo.realPrice>0">
|
|
|
+ <text>待退款:{{reSubmitInfo.diffPrice}}</text>
|
|
|
</view>
|
|
|
- <view class="difference-item" v-if="originOrderInfo.realPrice - totalPrice<=0">
|
|
|
- <text>待支付:{{totalPrice - originOrderInfo.realPrice}}</text>
|
|
|
+ <view class="difference-item" v-if="reSubmitInfo.orgRealPrice - reSubmitInfo.realPrice<=0">
|
|
|
+ <text>待支付:{{reSubmitInfo.diffPrice}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -384,7 +384,7 @@
|
|
|
cansubmit: true,
|
|
|
newOrderId:'',
|
|
|
originOrderInfo:{},
|
|
|
- resubmitInfo:{},
|
|
|
+ reSubmitInfo:null,
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -470,7 +470,6 @@
|
|
|
this.$u.api.orderDetails({id:this.orderId}).then(res=>{
|
|
|
console.log('getOrderInfo',res.data);
|
|
|
this.originOrderInfo = res.data||{};
|
|
|
- this.resubmitInfo = res.data.resubmitInfo||{};
|
|
|
}).catch(err=>{
|
|
|
console.log('getOrderInfo',err);
|
|
|
})
|
|
@@ -713,6 +712,7 @@
|
|
|
// 处理响应数据
|
|
|
this.positionData = res.data;
|
|
|
this.ticketTypeList = res.data.seatList || [];
|
|
|
+ this.reSubmitInfo = res.data.reSubmitInfo;
|
|
|
|
|
|
// 设置默认选中的票档
|
|
|
const sellableTicketTypeIndex = this.findFirstSellableTicketTypeIndex();
|