tsteam-business-card-card-mini/packagecard/cardList/cardList.wxml
2024-02-22 11:04:15 +08:00

58 lines
2.5 KiB
Plaintext
Executable File

<cu-custom isCustom="{{false}}" isBack="{{true}}">
<view slot="content">模板列表</view>
</cu-custom>
<view class="tab">
<van-tabs style="width: 100%;" active="{{ currentIndex }}" bind:change="onChange" ellipsis="{{false}}"
z-index="{{100}}" color="#E6B980">
<block wx:for="{{optionsList}}" wx:key="index">
<van-tab title="{{item.dataName}}">
</van-tab>
</block>
</van-tabs>
</view>
<scroll-view style="margin-top: 70rpx;height: {{conentHeight}}px;" refresher-enabled="true"
refresher-threshold="{{50}}" refresher-background="#fff" enhanced="{{true}}" scroll-y
bindrefresherrefresh="dorefreshList" refresher-triggered="{{isRefreshing}}">
<block wx:if="{{cardList.length>0}}">
<view class="page-box">
<block wx:for="{{cardList}}" wx:key="index">
<view class="card-img" bindtap="goDetail" data-id="{{item.cardTemplateId}}" data-ispay="{{item.templateCharge}}"
data-price="{{item.templatePrice}}" data-paystate="{{item.cardCharge}}">
<image src="{{imgUrl+item.picturesTemplatePictureUrl}}" mode="scaleToFill" style="width: 100%;height: 100%;">
</image>
<view class="price-box">
<image src="/images/ic_corner_mark_bg.png" mode="scaleToFill"></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 src="/images/ic_hot_number_bg.png" mode="scaleToFill"></image>
<view class="number-content">
<text>使用次数:{{item.number}}</text>
</view>
</view>
</view>
</block>
</view>
</block>
<view wx:else style="margin-top:200rpx;width:100%;">
<van-empty description="暂无数据" />
</view>
</scroll-view>
<van-popup show="{{ isShowCodeInput }}" bind:close="onClose" custom-style="width:70%;height:20%;" round>
<view class="code-box">
<view style="display: flex;flex-direction: column;justify-content: center;align-items: center;">
<view class="code-title">邀请码</view>
<input placeholder="请输入邀请码" bindinput="inpuWatch" />
</view>
<view class="btns">
<button class="cu-btn bg-blue" style="width:100%" bindtap="codeCreate">邀请码创建</button>
<button class="cu-btn bg-blue" style="width:100%;margin-left: 15rpx;" bindtap="noCodeCreate">无邀请码创建</button>
</view>
</view>
</van-popup>