113 lines
5.6 KiB
Plaintext
113 lines
5.6 KiB
Plaintext
<!-- 头部 -->
|
|
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}"></nav-bar>
|
|
<!-- user/payment/card/card.wxml -->
|
|
<view class="card">
|
|
<view class="order_tab" style="top:{{system.statusHeight+system.titleHeight+'px'}}">
|
|
<i-tabs current="{{ current }}" scroll color="#1dbf45" bindchange="handleChange">
|
|
<i-tab key="1" title="会员卡"></i-tab>
|
|
<i-tab key="2" title="礼品卡"></i-tab>
|
|
<i-tab key="3" title="团体卡"></i-tab>
|
|
</i-tabs>
|
|
</view>
|
|
<view class="tab_con">
|
|
<view wx:if="{{current == 1}}" class="con_lsit_card">
|
|
<view class="list_card mt20" wx:for="{{cardList}}" wx:key="{{index}}" data-item="{{item}}" bind:tap="selectGiftCard">
|
|
<view class="card_lv">
|
|
<image src="{{item.src}}" />
|
|
</view>
|
|
<view class="card_lv2">
|
|
<view class="card_text">
|
|
<view class="text_cen">
|
|
<view class="text_top">
|
|
<view class="text_l">
|
|
<image src="/static/img/icon/vip.png" />
|
|
<span class="ml10">{{item.title}}</span>
|
|
</view>
|
|
<view class="text_r">
|
|
<span>{{item.discount/10}}</span>
|
|
折
|
|
</view>
|
|
</view>
|
|
<view class="text_botton mt10">
|
|
<view class="text_botton_l">发卡时间 {{item.create_time}}</view>
|
|
<view class="text_botton_r">余额 ¥{{item.money}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{current == 2}}" class="con_lsit_card" wx:for="{{cardList}}" wx:key="{{index}}" data-item="{{item}}" bind:tap="selectGiftCard">
|
|
<view class="list_card mt20">
|
|
<view class="card_lv">
|
|
<image src="{{item.src}}" />
|
|
</view>
|
|
<view class="card_lv2">
|
|
<view class="card_text">
|
|
<view class="text_cen">
|
|
<view class="text_top">
|
|
<view class="text_l">
|
|
<image src="/static/img/icon/vip.png" />
|
|
<span class="ml10">{{item.title}}</span>
|
|
</view>
|
|
<!-- <view class="text_r card2">
|
|
余额¥
|
|
<span>{{item.money}}</span>
|
|
</view> -->
|
|
</view>
|
|
<view class="text_botton mt20">
|
|
<view class="card2_text">
|
|
<view class="card2_p">发卡时间{{item.create_time}}</view>
|
|
<!-- <view class="card2_p">
|
|
卡号 YS123456789 有效期{{item.create_time}}
|
|
</view> -->
|
|
<view class="text_r card2">
|
|
余额¥
|
|
<span>{{item.money}}</span>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{current == 3}}" class="con_lsit_card">
|
|
<view class="list_card mt20" wx:for="{{cardList}}" wx:key="{{index}}" data-item="{{item}}" bind:tap="selectGiftCard">
|
|
<view class="card_lv">
|
|
<image src="{{item.src}}" />
|
|
</view>
|
|
<view class="card_lv2">
|
|
<view class="card_text">
|
|
<view class="text_cen">
|
|
<view class="text_top">
|
|
<view class="text_l">
|
|
<image src="/static/img/icon/vip.png" />
|
|
<span class="ml10">{{item.title}}</span>
|
|
</view>
|
|
<view class="text_r">
|
|
<span>{{item.discount/10}}</span>
|
|
折
|
|
</view>
|
|
</view>
|
|
<view class="text_botton mt10">
|
|
<view class="text_botton_l">发卡时间 {{item.create_time}}</view>
|
|
<view class="text_botton_r">余额 ¥{{item.money}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{cardList.length <= 0}}" class="rech-nothing">
|
|
<view class="rech-nothing-img">
|
|
<image src="/static/img/rech-nothing-icon.png" />
|
|
</view>
|
|
<view class="rech-nothing-tips mt50">您还没有当前的会员卡哦~</view>
|
|
<view class="rech-nothing-p mt10">办理会员卡,可享会员折扣</view>
|
|
<view wx:if="{{current != 3}}" class="rech-nothing-btn" bind:tap="goCard">办卡</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- toasta提示 -->
|
|
<i-toast id="toast" /> |