|
@@ -390,8 +390,8 @@
|
|
|
// console.log('getPerformData',res.data);
|
|
|
this.theatre = res.data.theatreList[0];
|
|
|
this.auditoriumList = res.data.theatreList[0].auditoriumList;
|
|
|
- this.ticketTypeList = res.data.goodsList;
|
|
|
- this.goodsSnapshot = this.ticketTypeList[this.ticketTypeIndex]?.goodsSnapshot;
|
|
|
+ // this.ticketTypeList = res.data.goodsList;
|
|
|
+ // this.goodsSnapshot = this.ticketTypeList[this.ticketTypeIndex]?.goodsSnapshot;
|
|
|
this.performDateList = this.auditoriumList[this.auditoriumIndex].performDateList;
|
|
|
this.getDate()
|
|
|
// console.log('auditoriumList',this.auditoriumList);
|
|
@@ -534,6 +534,8 @@
|
|
|
},
|
|
|
dateClick(index){
|
|
|
this.dateIndex = index;
|
|
|
+ this.ticketTypeIndex = 0;
|
|
|
+ this.positionIndex = 0;
|
|
|
this.getTimes()
|
|
|
},
|
|
|
auditoriumClick(index){
|
|
@@ -564,6 +566,8 @@
|
|
|
this.sessionIndex = index;
|
|
|
let session = this.sessionList[this.sessionIndex];
|
|
|
this.getPositionData();
|
|
|
+ this.ticketTypeIndex = 0;
|
|
|
+ this.positionIndex = 0;
|
|
|
// console.log('sessionClick',this.sessionList[this.sessionIndex]);
|
|
|
},
|
|
|
async getPositionData(){
|
|
@@ -603,7 +607,7 @@
|
|
|
let ticketType = this.ticketTypeList[this.ticketTypeIndex];
|
|
|
let params ={
|
|
|
performId:this.performId,
|
|
|
- goodsId:ticketType.id,
|
|
|
+ // goodsId:ticketType.id,
|
|
|
auditoriumId:this.auditoriumList[this.auditoriumIndex].id,
|
|
|
performTimeId:session.id,
|
|
|
label:this.label,
|
|
@@ -613,7 +617,10 @@
|
|
|
this.$u.api.selectRegion(params).then(res=>{
|
|
|
// console.log('getPositionData',res.data);
|
|
|
this.positionData = res.data;
|
|
|
- this.positionArr = res.data.regionPriceList||[];
|
|
|
+ // this.positionArr = res.data.regionPriceList||[];
|
|
|
+ this.ticketTypeList = res.data.goodsList;
|
|
|
+ this.goodsSnapshot = this.ticketTypeList[this.ticketTypeIndex]?.goodsSnapshot;
|
|
|
+ this.positionArr = this.ticketTypeList[this.ticketTypeIndex]?.regionList||[];
|
|
|
uni.hideLoading();
|
|
|
}).catch(err=>{
|
|
|
uni.hideLoading();
|
|
@@ -627,7 +634,9 @@
|
|
|
}
|
|
|
this.ticketTypeIndex = index;
|
|
|
this.goodsSnapshot = this.ticketTypeList[this.ticketTypeIndex]?.goodsSnapshot;
|
|
|
- this.getPositionData()
|
|
|
+ this.positionArr = this.ticketTypeList[this.ticketTypeIndex]?.regionList||[];
|
|
|
+ this.positionIndex = index;
|
|
|
+ // this.getPositionData()
|
|
|
},
|
|
|
positionClick(index){
|
|
|
if(this.positionIndex==index){
|