|
@@ -252,7 +252,7 @@
|
|
|
performInfo:{},//节目详情
|
|
|
formerNotice:{},//节目观影须知
|
|
|
performDateList:[],//有票的日期
|
|
|
- firstGet:0,
|
|
|
+ // firstGet:0,
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -289,7 +289,7 @@
|
|
|
this.auditoriumList = res.data.theatreList[0].auditoriumList;
|
|
|
this.ticketTypeList = res.data.goodsList;
|
|
|
this.performDateList = this.auditoriumList[this.auditoriumIndex].performDateList;
|
|
|
- this.getTimes()
|
|
|
+ this.getDate()
|
|
|
// console.log('auditoriumList',this.auditoriumList);
|
|
|
}).catch(err=>{
|
|
|
console.log('getPoster',err);
|
|
@@ -312,8 +312,22 @@
|
|
|
console.log('getPerformerNotice',err);
|
|
|
})
|
|
|
},
|
|
|
+ getDate(){
|
|
|
+ let param = {
|
|
|
+ auditoriumId:this.auditoriumList[this.auditoriumIndex]?.id,//演艺厅ID(演艺厅列表)
|
|
|
+ performId:this.performId,
|
|
|
+ };
|
|
|
+ this.$u.api.getAuditoriumDate(param).then(res=>{
|
|
|
+ console.log('getDate',res.data);
|
|
|
+ this.performDateList = res.data.list||[];
|
|
|
+ this.setDate();
|
|
|
+ // this.getTimes();
|
|
|
+ }).catch(err=>{
|
|
|
+ console.log('getDate',err);
|
|
|
+ })
|
|
|
+ },
|
|
|
getTimes(){
|
|
|
- this.firstGet++;
|
|
|
+ // this.firstGet++;
|
|
|
uni.showLoading();
|
|
|
let auditoriumId= this.auditoriumList[this.auditoriumIndex]?.id;
|
|
|
if(!auditoriumId){return}
|
|
@@ -326,13 +340,11 @@
|
|
|
// console.log('param',param);
|
|
|
this.$u.api.getAuditoriumTimes(param).then(res=>{
|
|
|
// console.log('getTimes',res.data);
|
|
|
- this.performDateList = res.data.performDateList||[];
|
|
|
this.sessionList = res.data.list.map(item=>{
|
|
|
item.performTimeStart = item.performTimeStart;
|
|
|
item.performTimeEnd = item.performTimeEnd;
|
|
|
return item
|
|
|
});
|
|
|
- this.setDate();
|
|
|
uni.hideLoading();
|
|
|
}).catch(err=>{
|
|
|
console.log('getPoster',err);
|
|
@@ -368,9 +380,7 @@
|
|
|
return { year:day[0],month:String(day[1]),day:String(day[2]), fullDay:`${day[0]}-${String(day[1])}-${String(day[2])}`}
|
|
|
});
|
|
|
// console.log('this.firstGet',this.firstGet);
|
|
|
- if(this.firstGet<=1){
|
|
|
- this.getTimes();
|
|
|
- }
|
|
|
+ this.getTimes();
|
|
|
//
|
|
|
return
|
|
|
}
|
|
@@ -408,11 +418,11 @@
|
|
|
},
|
|
|
dateClick(index){
|
|
|
this.dateIndex = index;
|
|
|
- this.getTimes()
|
|
|
+ this.getDate()
|
|
|
},
|
|
|
auditoriumClick(index){
|
|
|
this.auditoriumIndex = index;
|
|
|
- this.getTimes();
|
|
|
+ this.getDate();
|
|
|
},
|
|
|
confirmCalendar(e){
|
|
|
// console.log('confirmCalendar',e);
|