electricity_bill_calc_wx/pages/discountCoupon/index.wxml

20 lines
763 B
Plaintext

<!--pages/discountCoupon/index.wxml-->
<navigator title="我的优惠券" canBack="{{true}}" />
<van-tabs active="{{ active }}" bind:change="onChange">
<van-tab title="我的优惠券">
<view wx:if="{{currentList.length}}">
<view wx:for="{{currentList}}" wx:key="id" class="item">
<discount-coupon data="{{item}}" type="{{3}}" />
</view>
</view>
<empty wx:else bind:refresh="getCurrent" />
</van-tab>
<van-tab title="领券中心">
<view wx:if="{{canGetList.length}}">
<view wx:for="{{canGetList}}" wx:key="id" class="item">
<discount-coupon data="{{item}}" type="{{1}}" bind:get="getCanGet" />
</view>
</view>
<empty wx:else bind:refresh="getCanGet" />
</van-tab>
</van-tabs>