<wxs module="p_fil" src="p_filter.wxs"></wxs>
<!-- --弹起领券-- -->
<view wx:if='{{pro_pop==1}}'>
    <view class="cover-layer flex-center"  bindtap="close_pro_pop"></view>
    <view class="cx-popup {{pro_pop== true ? 'up_pro' : 'down_pro'}}  {{is_cart?'cart_show':''}}" style="z-index: 3500" >
        <view class="top-frame">
            <view class="top t-c">促销列表</view>
        </view>

        <view class="xc-frame">
            <view class="top-frame">
                <view class="xc-coupon-frame ">
                    <!-- for循环显示内容 -->
                    <view wx:for="{{cx_prom_group}}" class="item_pro flex ai-center">
                        <view class="tab_bx fs24">{{p_fil.set_tab_title(item)}}</view>
                        <view class="item_pro_left flex jc-center ai-center">
                            <view class="fs34 left_f_box" >{{p_fil.set_title(item)}}</view>
                        </view>

                        <view class="item_pro_right">
                            <view wx:if="{{item.prom_type!=3}}" class="fs26" style="max-width:81%" >{{item.title}}</view>
                            <view wx:else class="fs26"  style="max-width:81%" >{{item.title}}
                               消费满<text class="c-red">{{item.condition}}</text>
                               享优惠({{item.limit}}<text wx:if="{{item.goodslimit}}">,限购{{item.goodslimit}}件</text>)
                            </view>

                            <view wx:if="{{item.prom_type==5}}" class="fs26">搭配价：<text class="c-red">{{item.show_price}}</text></view>

                            <view wx:if="{{item.prom_type!=3}}" class="fs22" style="color: #b9b6b6">
                               {{item.show_time}}
                            </view>
                            <view wx:else class="fs22" style="max-width: 430rpx; color: #b9b6b6">
                                <block  wx:for="{{item.more}}" wx:for-item="bm">
                                    <text wx:if="{{bm.is_fir}}" class="tick pdr20" >{{bm.text}}</text>
                                    <view class="tick pdr20"  wx:if="{{bm.is_quan}}">{{bm.text}}</view>
                                    <view class="tick pdr20 ellipsis-1x lh2  {{!bm.is_no_goto?'details':'' }} "  wx:if="{{bm.is_gift}}"
                                          bindtap="show_zp"
                                          data-is_no_goto="{{is_no_goto}}"
                                          data-index="{{item.yh_index}}"
                                          data-prom="{{bm.prom_id}}" >{{bm.text}}</view>

                                    <!-- 旧礼包 -->
                                    <view class="tick pdr20 ellipsis-1x lh2 details"  wx:if="{{bm.lb_id}}"
                                          data-id="{{bm.lb_id}}" bindtap="viewLbDetails">{{bm.text}}</view>
                                    <!-- 专享礼包 -->
                                    <view class="tick pdr20 ellipsis-1x lh2 details"  wx:if="{{bm.zxlb_id}}"
                                          data-id="{{bm.zxlb_id}}" data-flag="1" bindtap="viewLbDetails">{{bm.text}}</view>
                                    <!-- 月礼包 -->
                                    <view class="tick pdr20 ellipsis-1x lh2 details"  wx:if="{{bm.monthgiftbag_id}}"
                                          data-id="{{bm.monthgiftbag_id}}" data-flag="2" bindtap="viewLbDetails">{{bm.text}}</view>

                                </block>


                            </view>
                        </view>


                        <view class="r_item_pro">
                            <view style="text-align: center">
                                <!-- 如果是弹出框进行选择的时候  -->
                                <block wx:if="{{type==1 && !item.is_no_sele}}">
                                    <view wx:if="{{item.sele}}" class="circle white xc-hook on">
                                        <text>Γ</text>
                                    </view>
                                    <view bindtap="sele_act" data-index="{{index}}" wx:else class="circle white xc-hook"></view>

                                    <view style="height: 12rpx"></view>
                                </block>
                                <view bindtap="go_the_url" data-index="{{index}}" class="xq_btn fs30">详情</view>
                            </view>
                        </view>

                    </view>

                </view>
            </view>
        </view>

        <view class="cx-confirm pd20"  bindtap="close_pro_pop">
            <view wx:if="{{type==0}}" class="confirm t-c">我知道了</view>
            <view wx:if="{{type==1}}" class="confirm t-c">确定</view>
        </view>
    </view>
</view>