<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 abs seckill_list"> 
    <view  id="kill-item{{index}}" class="kill-item" wx:for="{{goodlist}}" >
        <!-- <navigator class="kill-pic rel" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&prom_id={{item.id}}&prom_type=1"> -->
				<navigator url="{{item.goods_type == 0 ? ('/pages/goods/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&prom_id=' + item.id):('/packageH/pages/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&prom_id=' + item.id )}}" class="kill-pic rel">
        <image class="abs xc-miaosha" src="{{url}}/miniapp/images/zms.png"></image>
            <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="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&prom_id={{item.id}}&prom_type=1">{{item.goods_name}}</navigator> -->
						<navigator url="{{item.goods_type == 0 ? ('/pages/goods/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&prom_id=' + item.id):('/packageH/pages/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&prom_id=' + item.id )}}" class="goods-name ellipsis-2">{{item.goods_name}}</navigator>
            <view class="flex-vertical xc-strip-frame">
            <view class="xc-strip-blank rel">

            <view class="flex-vertical rel total">
             <view class="t-c abs xc-fill"style="width:{{type==1?(100-(item.buy_num+item.virtual) /((item.is_virtual_count ? item.goods_num : item.goods_num+item.virtual))*100)>3?(100-(item.buy_num+item.virtual) /((item.is_virtual_count ? item.goods_num : item.goods_num+item.virtual))*100):'3':'100'}}%;background:{{type==1?'#f23030':'#059de5'}};">
             </view>
               <text class="fs20 white abs xc-fill-text" style="">剩余{{type==1?filters.toFix(100-(item.buy_num+item.virtual)/((item.is_virtual_count ? item.goods_num : item.goods_num+item.virtual))*100,0):'100'}}%</text>
            </view>
           
            </view>
            <view class=" ml10 fs20 " wx:if="{{type==1}}"> 已抢{{item.buy_num+item.virtual}}件</view>  
            <view class=" ml10 fs20 " wx:else> 已抢0件</view>
           </view>


            <view class="goods-num">
                <view>
                <view wx:if="{{timer_js[index].hide}}"  class="{{type==1?'xc-wc':'blue_c'}}">
                    <text>剩余:</text>
                        <text class='tui-conutdown-box'> {{timer_js[index].day}}</text>天
                        <text class='tui-conutdown-box'>{{timer_js[index].hou}}</text>时
                        <text class='tui-conutdown-box'>{{timer_js[index].min}}</text>分
                        <text class='tui-conutdown-box tui-countdown-bg'>{{timer_js[index].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.price_n}}</text>
                    <view class="fs28" style="line-height: 16px;" wx:if="{{item.price_xs}}">.{{item.price_xs}}</view>
                    <span  wx:if="{{is_retail_price}}" class="underline fs20 no_line_x">零售价￥{{item.market_price}}</span>
                    </view>

                </view>
                <view class="kill-btn ">
                    <!-- <navigator style="background-color: #059de5;"  url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&prom_id={{item.id}}&prom_type=1" wx:if="{{type==0}}" >即将开始</navigator>
                    <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&prom_id={{item.id}}&prom_type=1" wx:if="{{item.status==1 && type==1}}">马上抢</navigator>
                    <navigator class="huise"url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&prom_id={{item.id}}&prom_type=1" wx:if="{{item.status==3 && type==1}}">已抢光</navigator> -->
										<navigator style="background-color: #059de5;"  url="{{item.goods_type == 0 ? ('/pages/goods/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&prom_id=' + item.id):('/packageH/pages/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&prom_id=' + item.id )}}" wx:if="{{type==0}}" >即将开始</navigator>
										<navigator url="{{item.goods_type == 0 ? ('/pages/goods/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&prom_id=' + item.id):('/packageH/pages/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&prom_id=' + item.id )}}" wx:if="{{item.status==1 && type==1}}">马上抢</navigator>
										<navigator class="huise" url="{{item.goods_type == 0 ? ('/pages/goods/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&prom_id=' + item.id):('/packageH/pages/goodsInfo/goodsInfo?goods_id=' + item.goods_id + '&prom_type=1&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="{{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 class="no-more" wx:if="{{goodlist.length==0}}">没有相关内容</view>
<auto_go id="auto_go"  bind:childFun="auto_back"></auto_go>


</view>



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