<wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
<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/seckill_top_img.jpg"></image>
</block>

<view class="kill-list"> 
    <view class="kill-item" wx:for="{{goodlist}}">
        <navigator class="kill-pic rel" url="{{g_filter.goToUrl(type, item.id, item.name)}}" hover-class="none">
        <!-- <image class="abs xc-miaosha" src="{{url}}/miniapp/images/zms.png"></image> -->
            <image class="wh100" src="{{url+item.img_url}}" data-val="{{item.img_url}}"
                data-errorimg="goodlist[{{index}}].img_url" binderror="bind_bnerr2" lazy-load="true"></image>
        </navigator>
        <view class="kill-cont">
            <navigator class="goods-name ellipsis-2" url="{{g_filter.goToUrl(type, item.id, item.name)}}"  hover-class="none">
						{{item.name}}
						
						<view class="goods-num">
						    <view>
									<view>组合数量: {{item.zhbuyqty}}</view>
									<view>活动时间: {{filters.format_time(item.start_time) + '至' + filters.format_time(item.end_time)}}</view>
						        <view class="blue_c" wx:if="{{type == 0}}"> 
						            <text>剩余:</text>
						            <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="fs40 flex xc-buttom-money {{type==1?'xc-wc':'blue_c'}}" >
						        <view class="fs28" style="line-height: 16px;">￥</view>
						        <text>{{item.zhprice}}</text> 
								</view>
						    </view>
						</view>
						</navigator>
        </view>
    </view>
</view>

<view class="no-more" wx:if="{{goodlist.length==0}}">没有相关内容</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="{{url}}{{type==1?'/miniapp/images/fire-red.png':'/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="{{url}}{{type==0?'/miniapp/images/clock-rad.png':'/miniapp/images/clock-black.png'}}"></image>
		即将开始</view>
	</view>
</view>
-->


</view>

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