city_card/packagecard/cardList/cardList.wxml
2023-07-15 14:25:28 +08:00

46 lines
2.6 KiB
Plaintext
Executable File

<view class="tab-bar">
<van-tabs active="{{currentIndex}}" bind:change="onChange" color="#E6B980" ellipsis="{{false}}" style="width: 100%;" zIndex="{{100}}">
<van-tab title="{{item.dataName}}" wx:for="{{optionsList}}" wx:key="index"></van-tab>
</van-tabs>
</view>
<scroll-view scrollY bindrefresherrefresh="dorefreshList" bindscrolltolower="loadMore" enableFlex="{{true}}" lowerThreshold="5rpx" refresherBackground="#fff" refresherEnabled="true" refresherTriggered="{{isRefreshing}}" style="height: {{contentHeight}}px;">
<block wx:if="{{cardList.length>0}}">
<view style="height: 90rpx;"></view>
<view class="page-box">
<view bindtap="goDetail" class="card-img" data-id="{{item.cardTemplateId}}" data-ispay="{{item.templateCharge}}" data-paystate="{{item.cardCharge}}" data-price="{{item.templatePrice}}" wx:for="{{cardList}}" wx:key="index">
<image mode="scaleToFill" src="{{imgUrl+item.picturesTemplatePictureUrl}}" style="width: 100%;height: 100%;"></image>
<view class="price-box">
<image mode="scaleToFill" src="/images/ic_corner_mark_bg.png"></image>
<view class="price" wx:if="{{item.templateCharge=='1'}}">
<text> ¥ {{item.templatePrice}}</text>
</view>
<view class="price" wx:else>
<text>免费</text>
</view>
</view>
<view class="number-box">
<image mode="scaleToFill" src="/images/ic_hot_number_bg.png"></image>
<view class="number-content">
<text>使用次数:{{item.number}}</text>
</view>
</view>
</view>
</view>
</block>
<view style="margin-top:200rpx;width:100%;" wx:else>
<van-empty description="暂无数据"></van-empty>
</view>
</scroll-view>
<van-popup round bind:close="onClose" customStyle="width:70%;height:20%;" show="{{isShowCodeInput}}">
<view class="code-box">
<view style="display: flex;flex-direction: column;justify-content: center;align-items: center;">
<view class="code-title">邀请码</view>
<input bindinput="inpuWatch" placeholder="请输入邀请码"></input>
</view>
<view class="btns">
<button bindtap="codeCreate" class="cu-btn bg-blue" style="width:100%">邀请码创建</button>
<button bindtap="noCodeCreate" class="cu-btn bg-blue" style="width:100%;margin-left: 15rpx;">无邀请码创建</button>
</view>
</view>
</van-popup>