Browse Source

修复bug

gcz 1 week ago
parent
commit
dfd635ecec
3 changed files with 10 additions and 4 deletions
  1. 5 2
      center/orderdetails.vue
  2. 4 1
      pages/ticketlist.vue
  3. 1 1
      utils/filter.js

+ 5 - 2
center/orderdetails.vue

@@ -20,6 +20,9 @@
 				<view class="status-item" v-else-if="orderDetails.status==6">
 					<view class="text"><text>退款失败: </text>{{refundInfo.errReason}}</view>
 				</view>
+				<view class="status-item" v-else-if="orderDetails.status==10">
+					<view class="text">{{orderDetails.resubmit.resubmitType==2?'已升舱':'已改签'}}</view>
+				</view>
 				<view class="status-item" v-else>
 					<view class="text">{{orderDetails.status|filterOrderState}}</view>
 				</view>
@@ -114,11 +117,11 @@
 				</view>
 				<!-- 改签信息 -->
 				<view class="order-info-item rebook-info" v-if="orderDetails.resubmit">
-					<text class="til">改签时间</text>
+					<text class="til">{{orderDetails.resubmit.resubmitType==2?'升舱':'改签'}}时间</text>
 					<text class="con">{{orderDetails.resubmit.createTime}}</text>
 				</view>
 				<view class="order-info-item rebook-info" v-if="orderDetails.resubmit">
-					<text class="til">改签费用</text>
+					<text class="til">{{orderDetails.resubmit.resubmitType==2?'升舱':'改签'}}费用</text>
 					<text class="con">{{orderDetails.resubmit.remark }}</text>
 					<!-- <text class="con" v-if="orderDetails.resubmit.diffType==0">补缴¥ {{orderDetails.resubmit.rebookPrice}}</text>
 					<text class="con" v-else-if="orderDetails.resubmit.diffType==1">系统退款¥ {{orderDetails.resubmit.refundPrice}}</text>

+ 4 - 1
pages/ticketlist.vue

@@ -1005,11 +1005,14 @@
 				}
 				const location = await this.getUserLocation();
 				let session = this.sessionList[this.sessionIndex];
+				const ticketType = this.ticketTypeList[this.ticketTypeIndex] || {};
 				let params = {
 					orderId:this.orderId,
 					performTimeId:session.id,
 					longitude:location.longitude,
-					latitude:location.latitude
+					latitude:location.latitude,
+					resubmitType:this.isUpgrade?2:1,
+					seatTypeId: ticketType.seatTypeId,
 				}
 				console.log('handelRebook params',params);
 				uni.showModal({

+ 1 - 1
utils/filter.js

@@ -38,7 +38,7 @@ Vue.filter("filterToFixed", function(val) {
 
 // 订单状态
 Vue.filter("filterOrderState", function(val) {	
-	let orderList = ['待支付', '','超时取消', '待使用', '退款中', '己退款', '退款失败', '己使用', '己超期','己关闭','已改签']
+	let orderList = ['待支付', '','超时取消', '待使用', '退款中', '己退款', '退款失败', '己使用', '己超期','己关闭','已改签/已升舱']
 	return orderList[val]
 });