coupon.wxml 1.9 KB

1
  1. <view class="data-v-1799dc2d"><navbar bind:input="__e" vue-id="5b28e582-1" title-color="#ffffff" background="#c30d24" iSimmersive="{{false}}" placeholder="{{true}}" title="优惠劵" value="{{screenHeight}}" data-event-opts="{{[['^input',[['__set_model',['','screenHeight','$event',[]]]]]]}}" class="data-v-1799dc2d" bind:__l="__l"></navbar><view class="top data-v-1799dc2d"><text data-event-opts="{{[['tap',[['changeCoupon',[1]]]]]}}" class="{{['data-v-1799dc2d',(isActive==1)?'active':'']}}" bindtap="__e">未使用</text><text data-event-opts="{{[['tap',[['changeCoupon',[2]]]]]}}" class="{{['data-v-1799dc2d',(isActive==2)?'active':'']}}" bindtap="__e">已使用/已过期</text></view><view class="top-placeholder data-v-1799dc2d"></view><mescroll-body vue-id="5b28e582-2" height="{{screenHeight+'px'}}" data-ref="mescrollRef" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" class="data-v-1799dc2d vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="list-wrap data-v-1799dc2d"><view class="list-box data-v-1799dc2d"><block wx:for="{{result}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list-item data-v-1799dc2d"><view class="l data-v-1799dc2d"><view class="data-v-1799dc2d">¥<text class="data-v-1799dc2d">{{item.amount}}</text></view><block wx:if="{{item.price>0}}"><view class="data-v-1799dc2d">{{"满"+item.price+"可用"}}</view></block><block wx:else><view class="data-v-1799dc2d">无门槛</view></block></view><view class="m data-v-1799dc2d"><view class="data-v-1799dc2d">{{item.name}}</view><view class="data-v-1799dc2d">{{"到期:"+item.end_time}}</view></view><view class="{{['r','data-v-1799dc2d',(isActive==2)?'disable':'']}}"><view data-event-opts="{{[['tap',[['go',['$event']]]]]}}" bindtap="__e" class="data-v-1799dc2d">使用</view></view></view></block></view></view></mescroll-body></view>