|
@@ -190,17 +190,34 @@
|
|
|
<view class="full-btn gray" v-else>确定</view> -->
|
|
|
<!-- 底部浮动条 -->
|
|
|
<view class="bottom-bar">
|
|
|
- <view class="inner">
|
|
|
+ <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>
|
|
|
+ </view>
|
|
|
+ <!-- 差价信息 -->
|
|
|
+ <view class="difference">
|
|
|
+ <view class="difference-item" v-if="originOrderInfo.realPrice - totalPrice>0">
|
|
|
+ <text>待退款:{{originOrderInfo.realPrice - totalPrice}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="difference-item" v-if="originOrderInfo.realPrice - totalPrice<=0">
|
|
|
+ <text>待支付:{{totalPrice - originOrderInfo.realPrice}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="submit-btn" :class="{active: hasSelectedTicket}" @click="handelRebook">
|
|
|
+ {{hasSelectedTicket ? '确认改签' : '请选择票'}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="inner" v-else>
|
|
|
<view class="price-info">
|
|
|
<view class="total-price">
|
|
|
<text>¥{{totalPrice}}</text>
|
|
|
<text class="original">¥{{originalPrice}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if="fromPage=='rebook'" class="submit-btn" :class="{active: hasSelectedTicket}" @click="handelRebook">
|
|
|
- {{hasSelectedTicket ? '确认改签并支付' : '请选择票'}}
|
|
|
- </view>
|
|
|
- <view v-else class="submit-btn" :class="{active: hasSelectedTicket}" @click="book">
|
|
|
+ <view class="submit-btn" :class="{active: hasSelectedTicket}" @click="book">
|
|
|
{{hasSelectedTicket ? '去支付' : '请选择票'}}
|
|
|
</view>
|
|
|
</view>
|
|
@@ -366,6 +383,8 @@
|
|
|
payResult:{},
|
|
|
cansubmit: true,
|
|
|
newOrderId:'',
|
|
|
+ originOrderInfo:{},
|
|
|
+ resubmitInfo:{},
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -411,6 +430,8 @@
|
|
|
this.setDate(today);
|
|
|
this.getPerformInfo();
|
|
|
this.getPerformerNotice();
|
|
|
+ //获取订单信息
|
|
|
+ this.getOrderInfo();
|
|
|
}
|
|
|
else{
|
|
|
this.performId = page.id;
|
|
@@ -445,6 +466,15 @@
|
|
|
console.log('uncompress',err);
|
|
|
})
|
|
|
},
|
|
|
+ getOrderInfo(){
|
|
|
+ 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);
|
|
|
+ })
|
|
|
+ },
|
|
|
getPerformData(){
|
|
|
this.$u.api.performSell({performId:this.performId}).then(res=>{
|
|
|
// console.log('getPerformData',res.data);
|
|
@@ -874,6 +904,9 @@
|
|
|
});
|
|
|
},
|
|
|
async handelRebook(){
|
|
|
+ if(!this.hasSelectedTicket){
|
|
|
+ return
|
|
|
+ }
|
|
|
const location = await this.getUserLocation();
|
|
|
let session = this.sessionList[this.sessionIndex];
|
|
|
let params = {
|
|
@@ -885,7 +918,7 @@
|
|
|
console.log('handelRebook params',params);
|
|
|
uni.showModal({
|
|
|
title: '温馨提示',
|
|
|
- content: '每张票仅限改签一次,改签成功后原订单费用将会原路退还,您确定要改签吗?',
|
|
|
+ content: '仅限改签一次,且改签后禁止退款,确定要继续改签吗?',
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
this.cansubmit = false;
|
|
@@ -1563,6 +1596,26 @@
|
|
|
padding: 0 30rpx;
|
|
|
box-shadow: 0 -2rpx 10rpx rgba(0,0,0,0.05);
|
|
|
z-index: 100;
|
|
|
+ &.rebook{
|
|
|
+ .price-info{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ .price-item{
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #999;
|
|
|
+ display:block
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .difference{
|
|
|
+ padding:0 10rpx;
|
|
|
+ .difference-item{
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #f00;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.price-info {
|
|
|
flex: 1;
|
|
@@ -1580,6 +1633,7 @@
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.submit-btn {
|