2025-06-06 15:07:26 +08:00

22 lines
746 B
Plaintext

<view class="container">
<block wx:if="{{couponList.length === 0}}">
<image class="no_coupon_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_no_coupon.png" mode=""/>
<view class="no_coupon_desc">您还没有可使用的优惠券~</view>
</block>
<block wx:if="{{couponList.length !== 0}}">
<van-tabs active="{{checked}}" bind:change="onChange">
<van-tab title="{{tabs.all}}" name="usable"></van-tab>
<van-tab title="{{tabs.state1}}" name="used"></van-tab>
<van-tab title="{{tabs.state2}}" name="no"></van-tab>
</van-tabs>
<view class="main">
<couponCard
wx:for="{{couponList}}"
wx:key="index"
item="{{item}}"
/>
</view>
</block>
</view>
<footer />