Files
venue_wx/pages/myMembershipCard/index.wxml
2020-06-21 16:27:58 +08:00

40 lines
2.3 KiB
Plaintext

<!--pages/myMembershipCard/index.wxml-->
<header title="我的会员卡"></header>
<view class='container'>
<view class='cell' wx:for="{{cards}}" wx:key="{{index}}">
<view class='header' data-index='{{index + 1}}' bindtap='unfoldCell'>
<text class='default'>默认</text>
<image class='icon' src='../../images/40@3x.png'></image>
<image class='tip-icon' src='../../images/5@3x.png' catchtap='showCardContent' data-index='{{index}}' wx:if="{{item.cardContent}}"></image>
<text class='title'>{{item.name}}</text>
<image class='right-arrow' src='../../images/48@3x.png' wx:if="{{unfoldIndex == index + 1}}"></image>
<image class='right-arrow' src='../../images/49@3x.png' wx:else></image>
</view>
<view class='body' wx:if="{{unfoldIndex === index + 1}}">
<view class='card-cell' wx:for="{{item.memberCards}}" wx:for-item="data" wx:for-index="i" wx:key="{{i}}" data-id='{{data.id}}' data-cardflg='{{data.cardFlg}}' bindtap='selectDefault'>
<image class='default-icon' src='../../images/4@3x.png' wx:if="{{data.status == 1}}" mode='aspectFit'></image>
<view class='unClickClass' wx:elif="{{data.cardFlg == 1}}"></view>
<view class='unClickClass' wx:elif="{{data.cardFlg == 2}}"></view>
<image class='default-icon' src='../../images/3@3x.png' mode='aspectFit' wx:else></image>
<text class='tab {{data.cardFlg != 2 ? "" : "isActive"}}'>{{data.cardType}}</text>
<text class='indate'>有效期: {{data.startTime}} - {{data.endTime}}</text>
<text class='state {{data.cardFlg != 2 ? "isActive" : ""}}'>{{data.cardFlg == 0 ? "可使用" : (data.cardFlg == 1 ? "待使用" : "已失效")}}</text>
</view>
</view>
</view>
</view>
<view class='card-mask' catchtouchmove='unMove' wx:if="{{showCardMask}}" bindtap='cancelCardMask'>
<view class='card-box' catchtap='unMove'>
<view class='close' catchtap='cancelCardMask'>
<image src='../../images/23@3x.png'></image>
</view>
<view class='title'>VIP会员享受专属特权</view>
<rich-text class='info-rich' nodes="{{venues.cardContent}}"></rich-text>
</view>
</view>
<view class='newplot' wx:if="{{isShowNewplot && cards.length == 0}}">
<image src='../../images/noContent.png'></image>
<text>暂无会员卡 ~</text>
</view>