cm-coupon-list.wxml 2.4 KB

1
  1. <view class="cm-coupon-list data-v-685c8c38"><block wx:if="{{visible}}"><view class="mask data-v-685c8c38"></view></block><view class="main-content data-v-685c8c38"><uni-transition vue-id="a333f8bc-1" mode-class="slide-bottom" show="{{visible}}" class="data-v-685c8c38" bind:__l="__l" vue-slots="{{['default']}}"><view class="content data-v-685c8c38"><view data-event-opts="{{[['tap',[['$emit',['close']]]]]}}" class="iconfont icon-iconfontguanbi close data-v-685c8c38" bindtap="__e"></view><view class="title data-v-685c8c38">{{title}}</view><block wx:if="{{listType!=='receive'}}"><view class="other data-v-685c8c38"><block wx:if="{{listType==='use'}}"><view class="unset data-v-685c8c38"><text class="data-v-685c8c38">不使用优惠券</text><text data-event-opts="{{[['tap',[['noChoose',['$event']]]]]}}" class="{{['radio-flag','iconfont','data-v-685c8c38',currentId===-1?'icon-xuanze':'icon-weixuanze']}}" bindtap="__e"></text></view></block><block wx:if="{{listType==='search'}}"><view class="tabs data-v-685c8c38"><block wx:for="{{tabs}}" wx:for-item="tab" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['checkedTab',[index]]]]]}}" class="{{['tab','data-v-685c8c38',(currentTab===index)?'active':'']}}" bindtap="__e"><text class="data-v-685c8c38">{{tab.name}}</text></view></block></view></block></view></block><view class="{{['list','data-v-685c8c38','scroll-'+listType]}}"><block wx:for="{{couponList}}" wx:for-item="coupon" wx:for-index="index" wx:key="index"><cm-coupon vue-id="{{('a333f8bc-2-'+index)+','+('a333f8bc-1')}}" couponData="{{coupon}}" showStatus="{{showStatus}}" btnUseType="{{btnUseType}}" chooseAble="{{chooseAble}}" currentId="{{currentId}}" data-event-opts="{{[['^btnClick',[['couponClick']]],['^choose',[['choose']]]]}}" bind:btnClick="__e" bind:choose="__e" class="data-v-685c8c38" bind:__l="__l"></cm-coupon></block><block wx:if="{{couponList.length<=0}}"><cm-empty vue-id="{{('a333f8bc-3')+','+('a333f8bc-1')}}" message="暂无任何优惠券~" image="{{baseUrl+'icon-coupon-empty.png'}}" offset="{{-12}}" class="data-v-685c8c38" bind:__l="__l"></cm-empty></block></view><block wx:if="{{listType==='use'}}"><view data-event-opts="{{[['tap',[['confirm',['$event']]]]]}}" class="btn data-v-685c8c38" bindtap="__e">确定</view></block><view style="{{'height:'+(isIphoneX?'44rpx':0)+';'}}" class="data-v-685c8c38"></view></view></uni-transition></view></view>