gcz 1 tahun lalu
induk
melakukan
4b942fa56e
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 3
      pages/ticketlist.vue

+ 5 - 3
pages/ticketlist.vue

@@ -414,20 +414,22 @@
 					  fullDay:`${afterTomorrow.getFullYear()}-${String(afterTomorrow.getMonth() + 1).padStart(2, '0')}-${ String(afterTomorrow.getDate()).padStart(2, '0')}`
 					}
 				];
+				this.getTimes()
 				// console.log('this.dateList ',this.dateList);
 			},
 			dateClick(index){
 				this.dateIndex = index;
-				this.getDate()
+				this.getTimes()
 			},
 			auditoriumClick(index){
 				this.auditoriumIndex = index;
 				this.getDate();
 			},
 			confirmCalendar(e){
-				// console.log('confirmCalendar',e);
-				this.setDate( new Date(e),true );
+				console.log('confirmCalendar',e);
+				// this.getDate(e)
 				this.dateIndex = 0;
+				this.setDate( new Date(e),true );
 				// console.log('maxDate',this.maxDate);
 				// console.log('dateList',this.dateList);
 				this.calendarShow = false;