浏览代码

售罄修改

gcz 9 月之前
父节点
当前提交
773725c9b3
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pages/ticketlist.vue

+ 3 - 3
pages/ticketlist.vue

@@ -102,9 +102,8 @@
 						当前日期暂无演出场次,请重新选择
 					</view>
 					<view class="date-list u-flex u-flex-wrap" v-else>
-						<view class="date-item" :class="{active:sessionIndex==index,'stock-over':date.stock<1}" @click="sessionClick(index,date)" v-for="(date,index) in sessionList" :key="index">
+						<view class="date-item" :class="{active:sessionIndex==index}" @click="sessionClick(index,date)" v-for="(date,index) in sessionList" :key="index">
 							<view class="name">{{ date.performTimeStart}} - {{date.performTimeEnd}}</view>
-							<view class="sold-out" v-if="date.stock<1">已售罄</view>
 						</view>
 					</view>
 				</view>
@@ -154,8 +153,9 @@
 						没有座位信息
 					</view>
 					<view class="date-list u-flex u-flex-wrap">
-						<view class="date-item" :class="{active:positionIndex==index}" @click="positionClick(index)" v-for="(date,index) in positionArr" :key="index">
+						<view class="date-item" :class="{active:positionIndex==index,'stock-over':date.saleSeatNum<1}" @click="positionClick(index)" v-for="(date,index) in positionArr" :key="index">
 							<view class="name">{{ date.seatTypeName }} <br />¥ {{date.salePrice}}</view>
+							<view class="sold-out" v-if="date.saleSeatNum<1">售罄</view>
 						</view>
 					</view>
 				</view>