index.wxml 4.9 KB

1
  1. <view class="data-v-3f452a56"><view class="{{['coupon-list-window','data-v-3f452a56',coupon.coupon==true?'on':'',coupon.goFrom==1?'cart':'']}}"><block wx:if="{{coupon.count}}"><view class="nav acea-row row-around data-v-3f452a56"><block wx:if="{{coupon.count[0]}}"><view data-event-opts="{{[['tap',[['setType',[0]]]]]}}" class="{{['data-v-3f452a56','acea-row','row-middle',coupon.type===0?'on':'']}}" bindtap="__e">通用券</view></block><block wx:if="{{coupon.count[1]}}"><view data-event-opts="{{[['tap',[['setType',[1]]]]]}}" class="{{['data-v-3f452a56','acea-row','row-middle',coupon.type===1?'on':'']}}" bindtap="__e">品类券</view></block><block wx:if="{{coupon.count[2]}}"><view data-event-opts="{{[['tap',[['setType',[2]]]]]}}" class="{{['data-v-3f452a56','acea-row','row-middle',coupon.type===2?'on':'']}}" bindtap="__e">商品券</view></block><block wx:if="{{coupon.count[3]}}"><view data-event-opts="{{[['tap',[['setType',[3]]]]]}}" class="{{['data-v-3f452a56','acea-row','row-middle',coupon.type===3?'on':'']}}" bindtap="__e">品牌券</view></block></view></block><block wx:else><view class="title data-v-3f452a56">优惠券<text data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="iconfont icon-guanbi data-v-3f452a56" bindtap="__e"></text></view></block><block wx:if="{{coupon.count}}"><view class="occupy data-v-3f452a56"></view></block><scroll-view class="coupon-list data-v-3f452a56" scroll-y="true"><block wx:if="{{$root.g0}}"><view class="coupon-list-inner data-v-3f452a56"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['getCouponUser',[index,'$0'],[[['coupon.list','',index,'id']]]]]]]}}" class="{{['item','acea-row','row-center-wrapper','data-v-3f452a56',(item.$orig.receive_type===4)?'svip':'']}}" bindtap="__e"><view class="moneyCon acea-row row-center-wrapper data-v-3f452a56"><view class="{{['money','acea-row','row-column','row-center-wrapper','data-v-3f452a56',item.$orig.is_use&&coupon.count?'moneyGray':'']}}"><view class="data-v-3f452a56"><block wx:if="{{item.$orig.coupon_type==1}}"><text class="data-v-3f452a56">¥</text></block><text class="num data-v-3f452a56">{{item.$orig.coupon_type==1?item.$orig.coupon_price:item.m0/10}}</text><block wx:if="{{item.$orig.coupon_type==2}}"><text class="data-v-3f452a56">折</text></block></view><block wx:if="{{item.$orig.use_min_price>0}}"><view class="pic-num data-v-3f452a56">{{"满"+item.$orig.use_min_price+"元可用"}}</view></block><block wx:else><view class="pic-num data-v-3f452a56">无门槛券</view></block></view></view><view class="text data-v-3f452a56"><view class="{{['condition','line2','data-v-3f452a56',coupon.count?'':'order']}}"><block wx:if="{{item.$orig.type===0}}"><label class="{{['line-title','_span','data-v-3f452a56',item.$orig.is_use&&coupon.count?'gray':'']}}">通用劵</label></block><block wx:else><block wx:if="{{item.$orig.type===1}}"><label class="{{['line-title','_span','data-v-3f452a56',item.$orig.is_use&&coupon.count?'gray':'']}}">品类券</label></block><block wx:else><block wx:if="{{item.$orig.type===2}}"><label class="{{['line-title','_span','data-v-3f452a56',item.$orig.is_use&&coupon.count?'gray':'']}}">商品券</label></block><block wx:else><label class="{{['line-title','_span','data-v-3f452a56',item.$orig.is_use&&coupon.count?'gray':'']}}">品牌券</label></block></block></block><block wx:if="{{item.$orig.receive_type===4}}"><image class="pic data-v-3f452a56" src="../../static/images/fvip.png"></image></block><label class="name _span data-v-3f452a56">{{item.$orig.title}}</label></view><slot name="center{{index}}"></slot><view class="data acea-row row-between-wrapper data-v-3f452a56"><block wx:if="{{item.$orig.coupon_time&&!openType}}"><view class="data-v-3f452a56">{{"领取后"+item.$orig.coupon_time+"天内可用"}}</view></block><block wx:else><view class="data-v-3f452a56">{{(item.$orig.start_time?item.$orig.start_time+"-":"")+item.$orig.end_time}}</view></block><block wx:if="{{coupon.count}}"><view class="data-v-3f452a56"><block wx:if="{{item.$orig.is_use}}"><view class="bnt gray data-v-3f452a56">{{item.$orig.use_title||'已领取'}}</view></block><block wx:else><view class="bnt bg-color data-v-3f452a56">{{coupon.statusTile||'立即领取'}}</view></block></view></block><block wx:else><view class="orderCou data-v-3f452a56"><block wx:if="{{item.$orig.is_use}}"><view class="{{['iconfont','icon-xuanzhong11','data-v-3f452a56',item.$orig.receive_type===4?'svip':'font-num']}}"></view></block><block wx:else><view class="iconfont icon-weixuan data-v-3f452a56"></view></block></view></block></view></view></view></block></view></block><block wx:else><view class="pictrue data-v-3f452a56"><image src="{{imgHost+'/statics/images/noCoupon.png'}}" class="data-v-3f452a56"></image></view></block></scroll-view></view><view class="mask data-v-3f452a56" catchtouchmove="true" hidden="{{coupon.coupon==false}}" data-event-opts="{{[['tap',[['close',['$event']]]]]}}" bindtap="__e"></view></view>