<view class="container"><view class="vheigh"></view><view class="top"><image src="../../static/img/cardbg.png" mode></image></view><view class="main"><block wx:for="{{cardList}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['navTo',['$0'],[[['cardList','',index]]]]]]]}}" class="main-item" bindtap="__e"><view class="main-item-top flex"><view class="main-item-top-bg"><image src="{{item.image}}" mode></image></view><view class="main-item-top-left"><view class="main-item-title">{{item.name}}</view><block wx:if="{{item.type==1}}"><view class="main-item-time">{{"有效期"+item.time+"天"}}</view></block><block wx:if="{{item.type==2}}"><view class="main-item-time">{{"有效次数"+item.number+"次"}}</view></block></view><view class="main-item-type">{{item.type==1?'时效卡':'次卡'}}</view></view><view class="main-item-bottom"><view class="main-item-bottom-bg"><image src="../../static/img/cardbottom.png" mode></image></view><view class="main-item-price"><text class="fh">￥</text>{{''+item.price+''}}<text class="time"></text></view><view class="main-item-info flex"><view class="main-item-info-left">{{item.info}}</view><view class="main-item-info-right"><view class="main-item-info-font">查看详情</view><view class="main-item-info-icon"><image src="../../static/img/img39.png" mode></image></view></view></view></view></view></block></view></view>