瀏覽代碼

修复bug

gcz 1 年之前
父節點
當前提交
30ab12bbe0
共有 1 個文件被更改,包括 3 次插入3 次删除
  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();