gcz 1 ano atrás
pai
commit
30ab12bbe0
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      pages/ticketlist.vue

+ 3 - 3
pages/ticketlist.vue

@@ -467,9 +467,9 @@
 				// 前端写演出日期(今天,明天,后天)
 				let today = firstDay||new Date();
 				// console.log('today=========',today);
-				let tomorrow = new Date();
+				let tomorrow = new Date(today.getTime());
 				tomorrow.setDate(today.getDate() + 1);
-				let afterTomorrow = new Date();
+				let afterTomorrow = new Date(today.getTime());
 				afterTomorrow.setDate(today.getDate() + 2);
 				this.dateList = [
 				  { 
@@ -548,7 +548,7 @@
 					// console.log('getPositionData',res.data);
 					this.positionData =  res.data;
 					// this.positionArr = res.data.regionPriceList||[];
-					this.ticketTypeList = res.data.goodsList;
+					this.ticketTypeList = res.data.goodsList||[];
 					this.goodsSnapshot = this.ticketTypeList[this.ticketTypeIndex]?.goodsSnapshot;
 					this.positionArr =  this.ticketTypeList[this.ticketTypeIndex]?.regionList||[];
 					uni.hideLoading();