|
@@ -112,6 +112,14 @@
|
|
<text class="copy-btn" @click="copyOrderNum(orderDetails[item.key])" v-if="item.key=='id'">复制</text>
|
|
<text class="copy-btn" @click="copyOrderNum(orderDetails[item.key])" v-if="item.key=='id'">复制</text>
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="order-info-item" v-if="orderDetails.payWay!=='银联支付'">
|
|
|
|
+ <text class="til">是否他人代付</text>
|
|
|
|
+ <text class="con">{{orderDetails.ifRepay?'是':'否'}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="order-info-item" v-if="orderDetails.ifRepay">
|
|
|
|
+ <text class="til">代付者名称</text>
|
|
|
|
+ <text class="con">{{orderDetails.repayName}}</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class="box order-info refundInfo" v-if="orderDetails.status==4||orderDetails.status==5||orderDetails.status==6">
|
|
<view class="box order-info refundInfo" v-if="orderDetails.status==4||orderDetails.status==5||orderDetails.status==6">
|
|
<view class="title u-flex u-row-between">
|
|
<view class="title u-flex u-row-between">
|
|
@@ -159,7 +167,6 @@
|
|
<view class="singleQR-wrap">
|
|
<view class="singleQR-wrap">
|
|
<view class="title">
|
|
<view class="title">
|
|
详情
|
|
详情
|
|
- <!-- <u-icon class="close" @click="closeSingleQR" name="close" color="#333" size="36rpx"></u-icon> -->
|
|
|
|
</view>
|
|
</view>
|
|
<view class="single-info">
|
|
<view class="single-info">
|
|
<view class="item">姓名:{{singleInfo.name}}</view>
|
|
<view class="item">姓名:{{singleInfo.name}}</view>
|
|
@@ -169,9 +176,6 @@
|
|
</view>
|
|
</view>
|
|
<template v-if="orderDetails.supportQrcode">
|
|
<template v-if="orderDetails.supportQrcode">
|
|
<view class="qrcode-tip">本票种需凭「取票码」至前台换票入场</view>
|
|
<view class="qrcode-tip">本票种需凭「取票码」至前台换票入场</view>
|
|
- <!-- <view class="singleQrcode">
|
|
|
|
- <uv-qrcode ref="singleQrcode" size="180px" :options="singleQrOptions" :value="singleQrContent" ></uv-qrcode>
|
|
|
|
- </view> -->
|
|
|
|
</template>
|
|
</template>
|
|
<template v-else-if="orderDetails.supportIdcard && !orderDetails.supportQrcode">
|
|
<template v-else-if="orderDetails.supportIdcard && !orderDetails.supportQrcode">
|
|
<view class="qrcode-tip">本票种需凭「取票码」至前台换票入场,或凭「身份证原件」入场</view>
|
|
<view class="qrcode-tip">本票种需凭「取票码」至前台换票入场,或凭「身份证原件」入场</view>
|
|
@@ -179,9 +183,16 @@
|
|
<template v-else>
|
|
<template v-else>
|
|
<view class="qrcode-tip">本票种需凭「取票码」至前台换票入场</view>
|
|
<view class="qrcode-tip">本票种需凭「取票码」至前台换票入场</view>
|
|
</template>
|
|
</template>
|
|
- <!-- <view class="order-num" :class="{'del-line':singleInfo.qrcodeStatus!==0}">取票码:{{singleInfo.qrcodeNo}}</view> -->
|
|
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
</u-popup>
|
|
|
|
+ <u-picker
|
|
|
|
+ :show="showPayTeamModal"
|
|
|
|
+ :columns="[bindList]"
|
|
|
|
+ keyName="bindTeamName"
|
|
|
|
+ @confirm="onPickerConfirm"
|
|
|
|
+ @cancel="cancelPayTeam"
|
|
|
|
+ title="请选择支付团队"
|
|
|
|
+ ></u-picker>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-toast ref="uToast"></u-toast>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -242,7 +253,9 @@
|
|
templateIdList:[],//微信小程序订阅消息
|
|
templateIdList:[],//微信小程序订阅消息
|
|
refundInfo:{status:null},//退款信息
|
|
refundInfo:{status:null},//退款信息
|
|
isExpanded: false,//展开更多观影人
|
|
isExpanded: false,//展开更多观影人
|
|
-
|
|
|
|
|
|
+ showPayTeamModal: false, // 支付团队选择模态框显示状态
|
|
|
|
+ selectedTeamId: '', // 选中的团队ID
|
|
|
|
+ bindList: [], // 绑定的团队列表
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -369,7 +382,6 @@
|
|
|
|
|
|
// this.singleQrContent = {};
|
|
// this.singleQrContent = {};
|
|
// this.singleQrContent.qrcode = item.qrcodeNo;
|
|
// this.singleQrContent.qrcode = item.qrcodeNo;
|
|
- // this.singleQrContent.time = Date.now();
|
|
|
|
// this.singleQrContent = JSON.stringify(this.singleQrContent);
|
|
// this.singleQrContent = JSON.stringify(this.singleQrContent);
|
|
|
|
|
|
this.singleQrContent = item.qrcodeNo
|
|
this.singleQrContent = item.qrcodeNo
|
|
@@ -524,34 +536,25 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- gotoPay(item){
|
|
|
|
|
|
+ async gotoPay(item){
|
|
console.log('pay',item);
|
|
console.log('pay',item);
|
|
- uni.$u.route('/center/pay', {
|
|
|
|
- orderId: item.id,
|
|
|
|
- // openid: that.vuex_wechatOpenid,
|
|
|
|
- payAmount:item.orderPrice
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
- this.$u.api.gotoPay({orderId:orderId,openid:''}).then(res=>{
|
|
|
|
- this.payResult = res.data.payInfo;
|
|
|
|
- this.payResult.package = res.data.payInfo.packageValue;
|
|
|
|
- // #ifdef H5
|
|
|
|
- this.initConfig(this.payResult)
|
|
|
|
- // #endif
|
|
|
|
- // #ifdef MP
|
|
|
|
- this.wxPay()
|
|
|
|
- // #endif
|
|
|
|
- // if(this.params.paymentMode==1||this.params.paymentMode==4){
|
|
|
|
- // this.wxPay()
|
|
|
|
- // }else{
|
|
|
|
- // uni.$u.route('/shopping/paysuccess');
|
|
|
|
- // }
|
|
|
|
- console.log('gotoPayres',res.data);
|
|
|
|
- }).catch(err=>{
|
|
|
|
- this.paypass = '';
|
|
|
|
- this.checkPassShow = false;
|
|
|
|
- console.log('gotoPay',err);
|
|
|
|
- })
|
|
|
|
|
|
+ let bindListData = await this.$u.api.getBindList();
|
|
|
|
+ let bindList = bindListData.data?.list;
|
|
|
|
+ this.bindList = bindList;
|
|
|
|
+
|
|
|
|
+ // 如果bindList长度大于1,显示模态框让客户选择支付团队
|
|
|
|
+ if(bindList.length>1){
|
|
|
|
+ this.showPayTeamModal = true;
|
|
|
|
+ this.selectedTeamId = bindList[0].bindTeamId; // 默认选中第一个团队
|
|
|
|
+ } else if(bindList.length === 1) {
|
|
|
|
+ // 如果只有一个团队,直接使用该团队进行支付
|
|
|
|
+ this.goToPayPage(item.id, bindList[0].bindTeamId, item.orderPrice);
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '没有可用的支付团队',
|
|
|
|
+ icon: 'none'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
wxPay(){
|
|
wxPay(){
|
|
let that = this;
|
|
let that = this;
|
|
@@ -680,8 +683,42 @@
|
|
id: this.orderDetails.id
|
|
id: this.orderDetails.id
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ },
|
|
|
|
+ confirmPayTeam() {
|
|
|
|
+ if(!this.selectedTeamId) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请选择支付团队',
|
|
|
|
+ icon: 'none'
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ this.showPayTeamModal = false;
|
|
|
|
+ this.goToPayPage(this.orderDetails.id, this.selectedTeamId, this.orderDetails.orderPrice);
|
|
|
|
+ },
|
|
|
|
+ cancelPayTeam() {
|
|
|
|
+ this.showPayTeamModal = false;
|
|
|
|
+ this.selectedTeamId = '';
|
|
|
|
+ },
|
|
|
|
+ onPickerConfirm(e) {
|
|
|
|
+ const selectedTeam = e.value[0];
|
|
|
|
+ this.selectedTeamId = selectedTeam.bindTeamId;
|
|
|
|
+ this.showPayTeamModal = false;
|
|
|
|
+ this.goToPayPage(this.orderDetails.id, this.selectedTeamId, this.orderDetails.orderPrice);
|
|
|
|
+ },
|
|
|
|
+ goToPayPage(orderId, payerId, payAmount) {
|
|
|
|
+ uni.$u.route('/center/pay', {
|
|
|
|
+ orderId: orderId,
|
|
|
|
+ payAmount: payAmount,
|
|
|
|
+ payerId: payerId
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ // #ifdef H5
|
|
|
|
+ // this.gotoPay(orderId);
|
|
|
|
+ // #endif
|
|
|
|
+ // #ifdef MP
|
|
|
|
+ // this.setTemplate(orderId);
|
|
|
|
+ // #endif
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -951,4 +988,13 @@
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
color: #7F7F7F;
|
|
color: #7F7F7F;
|
|
}
|
|
}
|
|
|
|
+.pay-team-content {
|
|
|
|
+ padding: 20rpx;
|
|
|
|
+}
|
|
|
|
+.radio-item {
|
|
|
|
+ margin-bottom: 10rpx;
|
|
|
|
+}
|
|
|
|
+.radio-text {
|
|
|
|
+ margin-left: 10rpx;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|