You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
3.9 KiB

<view class="wanl-order-list"><view class="navbar"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="index" wx:key="state"><view data-event-opts="{{[['tap',[['tabClick',[index]]]]]}}" class="{{['nav-item','text-df',(tabCurrentIndex===index)?'current':'']}}" bindtap="__e">{{''+item.text+''}}</view></block></view><swiper style="height:calc(100% - 60rpx);" current="{{tabCurrentIndex}}" duration="300" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="tag" wx:for-index="key" wx:key="state"><swiper-item class="tab-content"><scroll-view class="list-scroll-content" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loadData',['$event']]]]]}}" bindscrolltolower="__e"><block wx:if="{{tag.g0}}"><wanl-empty vue-id="{{'568159e8-1-'+key}}" text="没有找到任何优惠券" src="ticket_default3x" bind:__l="__l"></wanl-empty></block><view class="wanl-coupon"><block wx:for="{{tag.l0}}" wx:for-item="coupon" wx:for-index="seat" wx:key="id"><view data-event-opts="{{[['tap',[['onDetails',['$0'],[[['navList','state',tag.$orig.state],['cardList','id',coupon.$orig.id]]]]]]]}}" class="{{['item','margin-bj','radius-bock',coupon.$orig.state==1?coupon.$orig.type:'wanl-gray']}}" bindtap="__e"><image class="coupon-bg " src="{{tag.g1}}"></image><block wx:if="{{coupon.$orig.state==2}}"><image class="coupon-sign" src="{{coupon.g2}}"></image></block><block wx:if="{{coupon.$orig.state==3}}"><image class="coupon-sign" src="{{coupon.g3}}"></image></block><view class="item-left"><block wx:if="{{coupon.$orig.type=='reduction'||coupon.$orig.type=='vip'&&coupon.$orig.usertype=='reduction'}}"><block><view class="colour"><text class="text-price"></text><text class="price">{{coupon.m0}}</text></view><view class="cu-tag wanl-gray-dark radius text-sm">{{'满'+coupon.m1+"减"+coupon.m2+''}}</view></block></block><block wx:if="{{coupon.$orig.type=='discount'||coupon.$orig.type=='vip'&&coupon.$orig.usertype=='discount'}}"><block><view class="colour"><text class="price">{{coupon.m3}}</text><text class="discount">折</text></view><view class="cu-tag wanl-gray-dark radius text-sm">{{'满'+coupon.m4+"打"+coupon.m5+'折'}}</view></block></block><block wx:if="{{coupon.$orig.type=='shipping'}}"><block><view class="colour"><text class="price">包邮</text></view><view class="cu-tag wanl-gray-dark radius text-sm">{{'满'+coupon.m6+'元包邮'}}</view></block></block></view><view class="item-right padding-bj"><view data-event-opts="{{[['tap',[['onShop',['$0'],[[['navList','state',tag.$orig.state],['cardList','id',coupon.$orig.id,'shop_id']]]]]]]}}" class="shop" bindtap="__e"><view class="name"><text class="wlIcon-dianpu margin-right-xs"></text>{{''+coupon.$orig.shop.shopname+''}}</view><view><text class="wlIcon-fanhui2"></text></view></view><view class="title"><view class="cu-tag sm radius margin-right-xs tagstyle">{{''+coupon.$orig.type_text+''}}</view><text class="text-cut wanl-gray text-min">{{coupon.$orig.name}}</text></view><view class="content text-min"><view class="wanl-gray"><block wx:if="{{coupon.$orig.pretype=='fixed'}}"><view><text class="wlIcon-dot"></text>{{coupon.$orig.enddate+' 前有效'}}</view></block><block wx:else><block wx:if="{{coupon.$orig.pretype=='appoint'&&coupon.$orig.validity!=0}}"><view><text class="wlIcon-dot"></text>{{coupon.g4+' 前有效'}}</view></block><block wx:else><view><text class="wlIcon-dot"></text>未使用前 长期 有效</view></block></block></view><block wx:if="{{coupon.$orig.state==1}}"><view data-event-opts="{{[['tap',[['onApply',['$0'],[[['navList','state',tag.$orig.state],['cardList','id',coupon.$orig.id,'id']]]]]]]}}" class="cu-btn sm round line-colour" catchtap="__e">立即使用</view></block></view></view></view></block></view><uni-load-more vue-id="{{'568159e8-2-'+key}}" status="{{tag.$orig.loadingType}}" content-text="{{contentText}}" bind:__l="__l"></uni-load-more><view class="edgeInsetBottom"></view></scroll-view></swiper-item></block></swiper></view>