<wxs module="g_filter" src="g_filter.wxs"></wxs>
<view class=" body_frame">

<block wx:if="{{ad_data}}">
   <swiper class="swiper" circular="true" autoplay="true"
             indicator-dots="true" interval="2500"
            style="height:{{max_sw_height}}rpx" >
      <block wx:for="{{ad_data}}">    
     	
          <navigator url="{{item.ad_weapplink}}" class="s1_gk_a1" wx:if="{{g_filter.has_char(item.ad_weapplink,'plugin')>=0}}">
            <swiper-item>
                 <image src="{{item.ad_code}}" style="width: 100%;"  bindload="imageLoad"  data-index="{{index}}"   class="slide-image" mode="widthFix" lazy-load="true"/>
            </swiper-item>
          </navigator>
     
          <view data-url="{{item.ad_weapplink}}" class="s1_gk_a1" bindtap="go_url" wx:else>
            <swiper-item>
                <image src="{{item.ad_code}}" style="width: 100%;"  bindload="imageLoad"  data-index="{{index}}"  class="slide-image" mode="widthFix" lazy-load="true"/>
            </swiper-item>
          </view>     
     
      </block>
    </swiper>
</block>
<block wx:else>
  <image class="xc-top-img" src="{{url}}/miniapp/images/team.jpg"></image>
</block>


<view class="kill-list">
    <view id="kill-item{{index}}"  class="kill-item" wx:for="{{goodlist}}" >
        <navigator class="kill-pic " url="{{!item.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id+ '&prom_id=' + item.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id)}}">
            <image class="wh100" src="{{url}}{{item.original_img}}" data-val="{{item.original_img}}"
                  data-errorimg="goodlist[{{index}}].original_img" binderror="bind_bnerr2" lazy-load="true"></image>
             
        </navigator>
        <view class="kill-cont">
            <navigator class="goods-name ellipsis-2" url="{{!item.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id)}}">{{item.title}}</navigator>
            <view class="flex">
            <view class="tneirong red-b flex-vertical rel" wx:if="{{type==1}}">
            <image class="xc-team-img abs" src="{{url}}/miniapp/images/fril.png"></image>
            已拼{{item.buy_num}}份</view>
            <view class="fs20 flex xc-people-val-frame" 
            style="border-color:{{type==1?'#d60021':'#059de5'}};margin-left:{{type==1?'15rpx':'0rpx'}}">
            <view class=" flex-center val-img {{type==1?'red-b':'blue_b'}}">
            <image class="people-img" src="{{iurl}}/miniapp/images/bai-ren.png"></image>
            </view>
           <text  class="{{type==1?'red-co':'blue_c ai-bas'}}" style="margin-left:8rpx; margin-right:8rpx">{{item.ct_num}}人团</text> 
            </view>
        <view class="fs20 blue_c time-blue" wx:if="{{type==0}}">
                        距开始:
                        <text class='tui-conutdown-box'>{{item.djs.day}}</text>天
                        <text class='tui-conutdown-box'>{{item.djs.hou}}</text>时
                        <text class='tui-conutdown-box'>{{item.djs.min}}</text>分
                        <text class='tui-conutdown-box tui-countdown-bg'>{{item.djs.sec}}</text>秒
                    </view>


            </view>
              <view class="fs24 red-co" wx:if="{{type==1}}">
                        <text class='tui-conutdown-box'>{{item.djs.day}}</text>天
                        <text class='tui-conutdown-box'>{{item.djs.hou}}</text>时
                        <text class='tui-conutdown-box'>{{item.djs.min}}</text>分
                        <text class='tui-conutdown-box tui-countdown-bg'>{{item.djs.sec}}</text>秒
                    </view>
            <view class="goods-num" style="margin-top:{{type==0?'42rpx':'18rpx'}}">
                <view>
                
                    <view class="fs40 flex  xc-top15 {{type==1?'red-co ai-bas':'blue_c xc-lihe42 ai-bas'}}">
                    <text class="fs28 {{type==0?'martop13':''}}">￥</text>
                   <text style="margin-left:-5rpx">{{item.price}}</text>
                    <text  wx:if="{{is_retail_price}}" class="underline {{type==0?'martop18':''}} no_line_x">￥{{item.shop_price || item.market_price}}</text>
                    </view>
                  
                </view>
                <view class="kill-btn">
                     <navigator class="huise" style="background-color: #059de5;"   url="{{!item.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id+ '&prom_id=' + item.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id)}}" wx:if="{{type==0 && item.kttype==1 }}">即将开始</navigator>
                     <navigator class="huise" style="background-color: #059de5;"   url="{{!item.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id+ '&prom_id=' + item.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id)}}" wx:if="{{type==0 && item.kttype==2 }}" >即将开始</navigator>
                     <navigator class="huise" style="background-color: #059de5;"   url="{{!item.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id+ '&prom_id=' + item.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id)}}" wx:if="{{type==0 && item.kttype==3 }}" >即将开始</navigator>

                    <navigator class="blue_b" url="{{!item.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id+ '&prom_id=' + item.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id)}}" wx:if="{{item.status==1 && type==1 && item.kttype==1}}">去参团</navigator>
                    <navigator url="{{!item.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id+ '&prom_id=' + item.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id)}}" wx:if="{{item.status==1 && type==1 && item.kttype==2}}">去开团</navigator>
                    <navigator url="{{!item.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id+ '&prom_id=' + item.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id)}}" wx:if="{{item.status==1 && type==1 && item.kttype==3}}">去开团</navigator>
                                                      
                    <navigator class="huise"   url="{{!item.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id+ '&prom_id=' + item.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + item.goods_id + '&prom_id=' + item.id)}}" wx:if="{{item.status==3 && type==1}}">已抢光</navigator>
                </view>
            </view>
        </view>
    </view>
    <view style="height:120rpx"></view>
</view>
<view class="kill-time xc-seckill-bottom">
    
     <view class="theader" >
        <view bindtap='tip' data-ty="1" class="xc-border-right flex-center timeac left {{type==1?'active':''}}">
        <image class="xc-bottom"
        src="{{type==1?url+'/miniapp/images/fire-red.png':url+'/miniapp/images/fire-black.png'}}"></image>
        火热进行中</view>
        <view bindtap='tip' data-ty="0"  class=" flex-center timeac right {{type==0?'active':''}}">
        <image class="xc-bottom"
        src="{{type==0?url+'/miniapp/images/clock-rad.png':url+'/miniapp/images/clock-black.png'}}"></image>
        即将开始</view>
    </view>

</view>

<view class="no-more" wx:if="{{goodlist.length==0 && isget}}">没有相关内容</view>
<auto_go id="auto_go"  bind:childFun="auto_back"></auto_go>


</view>

<share_box id="share"></share_box>