Browse Source

选择位置按钮样式,修复选择演出厅选择bug

gcz 1 year ago
parent
commit
a119106c12
2 changed files with 7 additions and 4 deletions
  1. 5 3
      pages/chosenposition.vue
  2. 2 1
      pages/ticketlist.vue

+ 5 - 3
pages/chosenposition.vue

@@ -13,7 +13,8 @@
 				</view>
 			</view>
 			<view class="position-wrap">
-				<view class="item" :class="{active:positionIndex==index}" :style="{color:positionIndex==index?'#fff':item.seatColor,borderColor:item.seatColor,backgroundColor:positionIndex==index?item.seatColor:'#fff'}" @click="positionClick(index)" v-for="(item,index) in positionArr" :key="index">
+				<!-- :style="{color:positionIndex==index?'#fff':item.seatColor,borderColor:item.seatColor,backgroundColor:positionIndex==index?item.seatColor:'#fff'}" -->
+				<view class="item" :class="{active:positionIndex==index}"  @click="positionClick(index)" v-for="(item,index) in positionArr" :key="index">
 					<!-- <image class="icon" :src="item.icon" ></image> -->
 					<view>{{item.seatTypeName}}</view>
 					<text>¥ {{item.salePrice}}</text>
@@ -144,11 +145,11 @@ page{
 		box-sizing: border-box;
 		// flex: 1;
 		border-radius: 8rpx;
-		border: 2rpx solid #D9D9D9;
+		border: 2rpx solid #b7b7b7;
 		// margin: 0 24rpx 24rpx;
 		font-size: 24rpx;
 		font-weight: 500;
-		color: #EF1D1E;
+		color: #7F7F7F;
 		text-align: center;
 		.icon{
 			display: block;
@@ -158,6 +159,7 @@ page{
 		}
 		&.active{
 			border-color: #EF1D1E;
+			color: #EF1D1E;
 		}
 	}
 }

+ 2 - 1
pages/ticketlist.vue

@@ -393,7 +393,8 @@
 				}
 				console.log('this.dateListthis.dateListthis.dateListthis.dateList',this.dateList);
 				// 前端写演出日期(今天,明天,后天)
-				let today = firstDay;
+				let today = firstDay||new Date();
+				// console.log('today=========',today);
 				let tomorrow = new Date();
 				tomorrow.setDate(today.getDate() + 1);
 				let afterTomorrow = new Date();