index.wxml 2.9 KB

1
  1. <app-layout vue-id="8e4252fe-1" class="data-v-79938f25" bind:__l="__l" vue-slots="{{['default']}}"><app-tab-nav vue-id="{{('8e4252fe-2')+','+('8e4252fe-1')}}" tabList="{{tabList}}" activeItem="{{activeTab}}" theme="{{getTheme}}" data-event-opts="{{[['^click',[['tabStatus']]]]}}" bind:click="__e" class="data-v-79938f25" bind:__l="__l"></app-tab-nav><block wx:if="{{list.length==0}}"><view class="tip data-v-79938f25">暂无相关优惠券</view></block><block wx:else><view class="list data-v-79938f25"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bindtap="__e" class="data-v-79938f25"><view class="list-item data-v-79938f25"><block wx:if="{{activeTab==1}}"><image src="/static/image/img-coupon-bg-0.png" class="data-v-79938f25"></image></block><block wx:else><image src="/static/image/img-coupon-bg-1.png" class="data-v-79938f25"></image></block><block wx:if="{{activeTab==2}}"><image class="status data-v-79938f25" src="/static/image/img-coupon-status-icon-1.png"></image></block><block wx:if="{{activeTab==3}}"><image class="status data-v-79938f25" src="/static/image/img-coupon-status-icon-2.png"></image></block><view class="item-left dir-top-nowrap main-center data-v-79938f25"><block wx:if="{{item.$orig.coupon.type==2}}"><view class="coupon-price t-omit data-v-79938f25">{{"¥"+item.f0}}</view></block><block wx:else><view class="coupon-price t-omit data-v-79938f25">{{item.f1+"折"}}</view></block><block wx:if="{{item.$orig.coupon_min_price>0}}"><view class="t-omit data-v-79938f25" style="font-size:10px;">{{"满"+item.f2+"可用"}}</view></block><block wx:else><view style="font-size:10px;" class="data-v-79938f25">无门槛使用</view></block><block wx:if="{{item.$orig.discount_limit}}"><view style="font-size:10px;" class="data-v-79938f25">{{"优惠上限:¥"+item.f3}}</view></block></view><view class="item-right data-v-79938f25"><view class="item-name t-omit t-large t-large-color data-v-79938f25">{{item.$orig.coupon.name}}</view><view class="t-small-color time-area data-v-79938f25">{{item.$orig.start_time+" - "+item.$orig.end_time}}</view><block wx:if="{{item.$orig.coupon.appoint_type==3}}"><view class="data-v-79938f25">全场通用</view></block><block wx:else><block wx:if="{{item.$orig.coupon.appoint_type==4}}"><view class="data-v-79938f25">仅限当面付活动使用</view></block><block wx:else><block wx:if="{{item.$orig.coupon.appoint_type==5}}"><view class="data-v-79938f25">仅限礼品卡使用</view></block><block wx:else><view class="data-v-79938f25">限品类</view></block></block></block></view></view></view></block></view></block><view class="{{['data-v-79938f25','footer-space',iphone_x?'iphone_x':'']}}"></view><view data-event-opts="{{[['tap',[['toList',['$event']]]]]}}" class="{{['data-v-79938f25','coupon-footer',iphone_x?'iphone_x':'']}}" bindtap="__e">去领券</view></app-layout>