|
@@ -33,7 +33,7 @@
|
|
|
<view class="name">购票人信息</view>
|
|
|
<!-- <text>用于入园身份验证</text> -->
|
|
|
</view>
|
|
|
- <view class="" v-if="pageContent.purchaser.idcard">
|
|
|
+ <view class="" v-if="vuex_member_info.isAuth">
|
|
|
<view class="item">姓名:{{pageContent.purchaser.name}}</view>
|
|
|
<view class="item">手机号:{{pageContent.purchaser.mobile|hidePhoneNumber}}</view>
|
|
|
<view class="item">身份证:{{pageContent.purchaser.idcard|maskID}}</view>
|
|
@@ -155,14 +155,26 @@
|
|
|
performId:'',
|
|
|
performInfo:{},
|
|
|
pageData:{},//上个页面传过来的数据
|
|
|
- pageContent:{purchaser:{},ticketNotice:'',viewerList:[]},//页面信息
|
|
|
- ticketNotice:'aaa',
|
|
|
+ pageContent:{
|
|
|
+ performName:'',
|
|
|
+ goodsName:'',
|
|
|
+ timeDate:'',
|
|
|
+ timeWeek:'',
|
|
|
+ seatTypeName:'',
|
|
|
+ auditoriumName:'',
|
|
|
+ performTimeEnd:'',
|
|
|
+ performTimeStart:'',
|
|
|
+ purchaser:{mobile:'',idcard:''},
|
|
|
+ ticketNotice:'',
|
|
|
+ viewerList:[],
|
|
|
+ },//页面信息
|
|
|
+ ticketNotice:'',
|
|
|
cansubmit:true,
|
|
|
staticUrl:this.$commonConfig.staticUrl,
|
|
|
- visitors:[],//游客
|
|
|
+ visitors:[],//确认的游客
|
|
|
visitorShow:false,//游客弹层
|
|
|
visitorList:[],//游客列表
|
|
|
- selectedVisitor:[],//选中的游客
|
|
|
+ selectedVisitor:[],//选中的游客(id)
|
|
|
params:{},//要提交的数据
|
|
|
orderId:'',//订单提交获取
|
|
|
payResult:{},//gotoPay结果
|
|
@@ -228,10 +240,11 @@
|
|
|
this.$u.api.selectMemberAll({userid:userId}).then(res=>{
|
|
|
// console.log('getMemberAll',res.data);
|
|
|
this.visitorList = res.data.list;
|
|
|
- console.log('this.visitorList',this.visitorList);
|
|
|
// this.visitors = this.visitorList.filter(obj => obj.memberId==userId);
|
|
|
- this.visitors = this.visitorList.filter(obj => that.selectedVisitor.includes(obj.id));
|
|
|
- console.log('this.visitors',this.visitors);
|
|
|
+ this.visitors = this.visitorList.filter(obj => that.selectedVisitor.includes(obj.idcard));
|
|
|
+ // console.log('this.visitorList',this.visitorList);
|
|
|
+ // console.log('this.selectedVisitor',this.selectedVisitor);
|
|
|
+ // console.log('this.visitors',this.visitors);
|
|
|
}).catch(err=>{
|
|
|
console.log('getMemberAll',err);
|
|
|
})
|
|
@@ -247,7 +260,8 @@
|
|
|
},
|
|
|
delVisitor(visitor){
|
|
|
// console.log('delVisitor',visitor);
|
|
|
- this.visitors = this.visitors.filter(obj => obj.id!=visitor.id );
|
|
|
+ // console.log('this.visitors',this.visitors);
|
|
|
+ this.visitors = this.visitors.filter(obj => obj.idcard!=visitor.idcard );
|
|
|
},
|
|
|
addVisitor(){
|
|
|
uni.$u.route('/center/people', {
|
|
@@ -299,15 +313,17 @@
|
|
|
viewerList:this.visitors
|
|
|
}
|
|
|
this.cansubmit = false;
|
|
|
- console.log('pageData',this.pageData);
|
|
|
- console.log('visitors',this.visitors);
|
|
|
- console.log('params',params);
|
|
|
+ // console.log('pageData',this.pageData);
|
|
|
+ // console.log('visitors',this.visitors);
|
|
|
+ // console.log('params',params);
|
|
|
this.$u.api.submitOrder(params).then(res=>{
|
|
|
- console.log('submitOrder',res.data);
|
|
|
+ // console.log('submitOrder',res.data);
|
|
|
this.orderId = res.data.orderId;
|
|
|
- this.templateEven();
|
|
|
+ // this.templateEven()
|
|
|
+ this.setTemplate();
|
|
|
|
|
|
}).catch(err=>{
|
|
|
+ this.cansubmit = true;
|
|
|
console.log('submitOrder',err);
|
|
|
})
|
|
|
},
|
|
@@ -350,13 +366,14 @@
|
|
|
uni.requestSubscribeMessage({
|
|
|
tmplIds: that.templateIdList,
|
|
|
success (res) {
|
|
|
- that.gotoPay();
|
|
|
+ // that.gotoPay();
|
|
|
console.log("success:",res);
|
|
|
},
|
|
|
fail (res) {
|
|
|
console.log("fail:",res);
|
|
|
},
|
|
|
complete (res) {
|
|
|
+ that.gotoPay();
|
|
|
console.log("complete:",res);
|
|
|
}
|
|
|
})
|
|
@@ -373,8 +390,9 @@
|
|
|
// }
|
|
|
console.log('gotoPayres',res.data);
|
|
|
}).catch(err=>{
|
|
|
- this.paypass = '';
|
|
|
- this.checkPassShow = false;
|
|
|
+ this.cansubmit = true;
|
|
|
+ // this.paypass = '';
|
|
|
+ // this.checkPassShow = false;
|
|
|
console.log('gotoPay',err);
|
|
|
})
|
|
|
},
|
|
@@ -396,6 +414,7 @@
|
|
|
that.payQuery();
|
|
|
},
|
|
|
fail(e) {
|
|
|
+ uni.$u.route('/center/order',{status:0});
|
|
|
console.log('wxPayfail',e);
|
|
|
},
|
|
|
complete(){
|
|
@@ -430,7 +449,8 @@
|
|
|
// 0-未支付 1-已支付 2-支付中 3-支付失败 4-支付退款
|
|
|
let payStatus = res.data.payStatus;
|
|
|
if(payStatus===1){
|
|
|
- uni.$u.route('/center/paysuccess');
|
|
|
+ uni.$u.route('/center/order',{status:3});
|
|
|
+ // uni.$u.route('/center/paysuccess');
|
|
|
}else if(payStatus===0||payStatus===2){
|
|
|
this.payQuery()
|
|
|
}else if(payStatus===3){
|
|
@@ -624,12 +644,12 @@
|
|
|
}
|
|
|
.add-btn{
|
|
|
margin-bottom: 28rpx;
|
|
|
- background: #E5F0FF;
|
|
|
+ background: #ffdee1;
|
|
|
border-radius: 44rpx;
|
|
|
padding: 26rpx;
|
|
|
font-size: 24rpx;
|
|
|
font-weight: 400;
|
|
|
- color: #1677FF;
|
|
|
+ color: #ff1616;
|
|
|
.img{
|
|
|
width: 28rpx;
|
|
|
height: 36rpx;
|