myCard.wxml
3.1 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!--pages/myCard/myCard.wxml-->
<block>
<view class='banner_box'>
<!--未购买畅玩卡-->
<view class="default-card" wx:if="{{imgsUrl.length === 0}}">
<view class="banner_img">
<view class='img_top'>
<view class='logo_title'>畅玩卡</view>
</view>
<view class='img_info'>
<view class='info_title'>{{service.title}}:</view>
<view>{{service.description}}</view>
</view>
</view>
</view>
<!--已购买畅玩卡-->
<swiper wx:if="{{imgsUrl.length > 0}}" class='swiper_box' interval='2000' duration='500' current='{{swipercurrent}}' bindchange='swiperCharge'>
<swiper-item class="banner_img" wx:for='{{imgsUrl || default_card}}' wx:key='index'>
<!-- <image class='swiper_img' src='{{item}}'> -->
<view class='img_top'>
<view class='logo_title' wx:if="{{imgsUrl.length>0}}">{{item.name}}的畅玩卡</view>
<view class='logo_title' wx:else>畅玩卡</view>
<view wx:if="{{imgsUrl.length>0}}">{{item.start_time}}至{{item.over_time}}</view>
<view wx:else>暂无购买畅玩卡</view>
</view>
<view class='img_info'>
<view class='info_title'>{{service.title}}:</view>
<view>{{service.description}}</view>
<!--<view>1.年卡只限本人使用年卡只限本人使用年卡只限本人使用年卡只限 本人使用年卡只限本人使用年卡只-->
<!--</view>-->
<!--<view>2.年卡只限本人使用年卡只限本人使用</view>-->
<!--<view>3.年卡只限本人使用年卡只限本人使用年卡只限本人使用年本人使 用本人使用仅限</view>-->
</view>
<!-- </image> -->
</swiper-item>
</swiper>
<view wx:if="{{imgsUrl.length > 0}}" class='indicator_dots'>
<block wx:for='{{imgsUrl}}' wx:key='index'>
<view class="dot {{ index == swipercurrent ? 'dot_active':''}}"></view>
</block>
</view>
</view>
<view class='content_box'>
<view class='item_list' bindtap='record' wx:if="{{imgsUrl.length>0}}">
<view class='list_title'>预约记录</view>
</view>
<view class='item_list' bindtap='buyCard'>
<view class='list_title'>立即购买/续费</view>
</view>
<view class='item_list' bindtap='groupBuy'>
<view class='list_title'>团购畅玩卡</view>
</view>
</view>
</block>
<!-- <block>
<view class='banner_box'>
<swiper class='swiper_box' wx:key='' interval='2000' duration='500' current='{{swipercurrent}}' bindchange='swiperCharge'>
<swiper-item class="banner_img" wx:for='{{imgsUrl}}' wx:key=''>
<image src='{{item}}'></image>
</swiper-item>
</swiper>
<view class='indicator_dots'>
<block wx:for='{{imgsUrl}}' wx:key=''>
<view class="dot {{ index == swipercurrent ? 'dot_active':''}}"></view>
</block>
</view>
</view>
<view class='content_box'>
<view class='item_list'>
<view class='list_title'>立即购买</view>
</view>
<view class='item_list'>
<view class='list_title'>团购畅玩卡</view>
</view>
</view>
</block> -->