list.wxml
2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<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>