list.wxml 2.4 KB
<wxs src="../../wxs/helper.wxs" module="helper" />
<view class="class-page">
	<view class="big-title" wx:if="{{newList}}">
		<text>精彩活动</text>
	</view>
    <view class="class-list">
        <view bindtap="goDetail" class="class-item" id="{{item.id}}" wx:for="{{newList}}" wx:key="{{index}}">
			<view class="pic-c">
				<image mode="widthFix" src="{{helper.image(item.image, 690, 690)}}"></image>
				<view class="tag" wx:if="{{item.trendClassTypeName}}">{{item.trendClassTypeName}}</view>
			</view>
            <view class="info">
				<text class="name eps">{{item.activityName}}</text>
				<text class="free" wx:if="{{item.free}}">免费</text>
				<text class="price" wx:else="{{item.price}}"><text>¥</text>{{item.price}}</text>
			</view>
			<view class="date">
				<text>日期:{{item.activityStartDate}}<text class="line" wx:if="{{item.activityEndDate}}">-</text>{{item.activityEndDate}}</text>
				<text>时间:{{item.activityDayStartTime}}<text class="line" wx:if="{{item.activityDayEndTime}}">-</text>{{item.activityDayEndTime}}</text>
				<block wx:if="{{item.needApo}}">
					<block wx:if="{{item.apoStatus}}">
						<button class="btn">立即预约</button>
					</block>
					<block wx:else>
						<button class="btn">已约满</button>
					</block>
				</block>
				<block wx:else>
					<button class="btn">免预约</button>
				</block>
			</view>
		</view>
	</view>
	<view class="big-title" wx:if="{{oldList}}">
		<text>精彩回顾</text>
	</view>
	<view class="class-list old-list">
		<view bindtap="goDetail" class="class-item" id="{{item.id}}" wx:for="{{oldList}}" wx:key="{{index}}">
			<view class="pic-c">
				<image mode="widthFix" src="{{helper.image(item.image, 690, 690)}}"></image>
				<view class="tag" wx:if="{{item.trendClassTypeName}}">{{item.trendClassTypeName}}</view>
			</view>
			<view class="info">
				<text class="name eps">{{item.activityName}}</text>
				<text class="free" wx:if="{{item.free}}">免费</text>
				<text class="price" wx:else="{{item.price}}"><text>¥</text>{{item.price}}</text>
			</view>
			<view class="date">
				<text>日期:{{item.activityStartDate}}<text class="line" wx:if="{{item.activityEndDate}}">-</text>{{item.activityEndDate}}</text>
				<text>时间:{{item.activityDayStartTime}}<text class="line" wx:if="{{item.activityDayEndTime}}">-</text>{{item.activityDayEndTime}}</text>
				<button class="btn disable">已结束</button>
			</view>
		</view>
	</view>
</view>