<block wx:if="{{newCoupons.length>0}}"><view class="coupon data-v-22dc0650"><view class="marketing data-v-22dc0650"><view data-event-opts="{{[['tap',[['setShow',['$event']]]]]}}" class="block dir-left-nowrap cross-center data-v-22dc0650" bindtap="__e"><text class="box-grow-0 bd-name data-v-22dc0650">领券</text><block wx:for="{{newCoupons}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="big-box dir-left-nowrap cross-center data-v-22dc0650"><view class="box data-v-22dc0650" style="{{'color:'+(theme.color)+';'}}">{{'满'+item.min_price+"元"+(item.type==1?'享':'减')+(item.type==1?item.discount+'折':item.sub_price)+''}}<view class="left data-v-22dc0650"></view><view class="right data-v-22dc0650"></view></view></view></block><image class="box-grow-0 data-v-22dc0650" src="/static/image/icon/arrow-right.png"></image></view></view><u-popup vue-id="a7e2e8ba-1" mode="bottom" border-radius="14" value="{{show}}" data-event-opts="{{[['^close',[['e0']]],['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:close="__e" bind:input="__e" class="data-v-22dc0650" bind:__l="__l" vue-slots="{{['default']}}"><view class="model data-v-22dc0650"><view class="f-top dir-left-nowrap main-between cross-center data-v-22dc0650"><view class="f-title data-v-22dc0650">可领取优惠券</view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="f-image data-v-22dc0650" bindtap="__e"><image class="f-img data-v-22dc0650" src="/static/image/icon/icon-close.png"></image></view></view><scroll-view class="f-scroll data-v-22dc0650" scroll-y="{{true}}"><view class="f-scroll-content data-v-22dc0650"><block wx:for="{{coupons}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="f-item dir-top-nowrap data-v-22dc0650"><view class="f-item-top data-v-22dc0650"><image src="{{couponImg[item.is_receive==0?'coupon_enabled':'coupon_disabled']}}" class="data-v-22dc0650"></image><view class="dir-left-nowrap main-between cross-center data-v-22dc0650"><view class="f-text-content dir-left-nowrap cross-bottom data-v-22dc0650"><block wx:if="{{item.type==1}}"><view class="f-big-text-dis data-v-22dc0650"><text class="data-v-22dc0650">{{item.discount}}</text><text class="data-v-22dc0650">折</text></view></block><block wx:else><block wx:if="{{item.type==2}}"><view class="f-big-text-pri data-v-22dc0650"><text class="data-v-22dc0650">￥</text><text class="data-v-22dc0650">{{item.sub_price}}</text></view></block></block><view class="f-small-text data-v-22dc0650"><view class="data-v-22dc0650">优惠券</view><view class="data-v-22dc0650">{{"满"+item.min_price+"元使用"}}</view></view></view><button data-event-opts="{{[['tap',[['receive',['$0',index],[[['coupons','',index,'id']]]]]]]}}" style="{{'color:'+(item.is_receive==0?'#caa76e':'#b4b4b4')+';'}}" bindtap="__e" class="data-v-22dc0650">{{item.is_receive==0?'立即领取':'已领取'}}</button></view></view><view class="f-item-bottom dir-top-nowrap data-v-22dc0650"><block wx:if="{{item.expire_type=='1'}}"><text class="data-v-22dc0650">{{"领取后"+item.expire_day+"天过期"}}</text></block><block wx:if="{{item.expire_type=='2'}}"><text class="data-v-22dc0650">{{"有效日期："+item.begin_time+" - "+item.end_time}}</text></block><block wx:if="{{item.appoint_type=='3'}}"><text class="t-omit data-v-22dc0650">适用范围：全场通用</text></block><block wx:else><block wx:if="{{item.appoint_type=='4'}}"><text class="t-omit data-v-22dc0650">适用范围：仅限当面付活动使用</text></block><block wx:else><block wx:if="{{item.appoint_type=='5'}}"><text class="t-omit data-v-22dc0650">适用范围：仅限礼品卡使用</text></block><block wx:else><block wx:if="{{item.appoint_type=='2'}}"><text class="t-omit data-v-22dc0650"><text class="data-v-22dc0650">适用商品：</text><block wx:for="{{item.goods}}" wx:for-item="goods" wx:for-index="index" wx:key="id"><block class="data-v-22dc0650"><text class="data-v-22dc0650">{{(index!==0?'、':'')+goods.name}}</text></block></block></text></block><block wx:else><block wx:if="{{item.appoint_type=='1'}}"><text class="t-omit data-v-22dc0650">适用分类：<block wx:for="{{item.cat}}" wx:for-item="cat" wx:for-index="index" wx:key="id"><block class="data-v-22dc0650">{{''+(index!==0?'、':'')+cat.name+''}}</block></block></text></block></block></block></block></block></view></view></block></view></scroll-view></view></u-popup></view></block>