index.wxml 1.4 KB

1
  1. <view class="order"><cu-custom vue-id="4fd4c5ba-1" bgColor="bg-gradual-blue" isBack="{{true}}" bind:__l="__l" vue-slots="{{['content']}}"><view slot="content">我的卡券</view></cu-custom><cu-nav vue-id="4fd4c5ba-2" active="{{active}}" value="{{value}}" data-event-opts="{{[['^onChange',[['onChange']]]]}}" bind:onChange="__e" bind:__l="__l"></cu-nav><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="box"><view hidden="{{!(index==active)}}"><block wx:for="{{item.l0}}" wx:for-item="itemB" wx:for-index="indexB" wx:key="indexB"><view class="bg-white padding-sm radius margin-lr margin-top"><view class="text-bold text-black">{{itemB.$orig.coupon_name}}</view><view class="text-sm text-black padding-top-sm">{{itemB.f0+" - "+itemB.f1}}</view><block wx:if="{{itemB.$orig.write_off_time}}"><view class="text-sm text-black padding-top-sm">{{"使用时间:"+itemB.$orig.write_off_time}}</view></block><view class="text-gray text-sm margin-top">{{itemB.$orig.activity_name}}</view></view></block><block wx:if="{{item.$orig.value.length==0&&item.$orig.no_more}}"><van-empty vue-id="{{'4fd4c5ba-3-'+index}}" description="暂无卡券" data-com-type="wx" bind:__l="__l"></van-empty></block><block wx:else><view class="{{[!item.$orig.no_more&&item.$orig.pageCount<=item.$orig.totalPage?'cu-load bg-grey loading margin-top':'cu-load bg-grey over margin-top']}}"></view></block></view></view></block></view>