<block wx:if="{{goods_array.length>0}}">
  <!--秒杀-->
  <view class='top' bindtap="go_to_skill">
    <view class="flex">
      <view class='t_left'></view>
      <view class='t_ms'>预售</view>
    </view>
    <view class='right_k'>
      <image src="{{imghost}}/miniapp/images/icon-arrowdown.png" lazy-load="true"></image>
    </view>
  </view>

  <!--商品展示-->
  <swiper class="s_prom" indicator-active-color='red' indicator-dots="false" wx:if="{{object.style==1}}">
    <view class='sp'>
      <swiper-item class="s_it" wx:for="{{goods_array}}">
        <block wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">
          <navigator url="/packageC/pages/presell/{{aitem.goods_type==1?'cardInfo':'goodsInfo'}}/goodsInfo?goods_id={{aitem.goods_id}}&pre_id={{aitem.id}}" class="s1_gk_a1">
            <view class='one'>
              <view class='sp_top'>
                <view class='po'></view>
				<block wx:if="{{aitem.end_time<=newTime}}">
					<view class="rob">
					  <span class='s_top_kill gray'>活动已结束</span>
					</view>
				</block>				
				<block wx:else>
					 <block wx:if="{{aitem.start_time<newTime && aitem.buy_goodnum<aitem.presell_sumqty}}">
					   <view class="rob">
					     <span class='s_top_kill'>火热进行</span>
					   </view>
					 </block>

                    <block wx:if="{{aitem.start_time>newTime}}">
                        <view class="rob">
                            <span class='s_top_kill' style="background-color: #fdcb08">即将开始</span>
                        </view>
                    </block>

					 <block wx:if="{{aitem.buy_goodnum>=aitem.presell_sumqty}}">
					   <view class="rob">
					     <span class='s_top_kill gray'>已抢光</span>
					   </view>
					 </block>
				</block>

                <view class='clear'></view>

                <view class='s_img' style="position: relative">
                  <image src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image>


                    <view class='s_foot_kill' style="position: absolute">
                        <text>{{aitem.djs.day}}天</text>
                        <text>{{aitem.djs.hou}}时</text>
                        <text>{{aitem.djs.min}}分</text>
                        <text>{{aitem.djs.sec}}秒</text>
                    </view>

                </view>
                <view class='clear'></view>
              </view>

              <view class='sp_wz'>
                <view class='sp_wzi'>{{aitem.act_name}}</view>
                <view class='sp_jg'>￥{{aitem.presell_price}}</view>
                <view wx:if="{{is_retail_price}}" class='sp_jgx ~no_line_x'>￥{{aitem.shop_price}}</view>
              </view>

            </view>
          </navigator>
        </block>
      </swiper-item>
    </view>
  </swiper>

  <view class="sp2" wx:if="{{object.style==2}}">


    <block wx:for="{{goods_array}}">
      <block wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">

        <navigator url="/packageC/pages/presell/{{aitem.goods_type==1?'cardInfo':'goodsInfo'}}/goodsInfo?goods_id={{aitem.goods_id}}&pre_id={{aitem.id}}" class="s1_gk_a1">
          <view class='one1'>

            <view class="o1_img">
              <image src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image>
            </view>

            <view class="o1_right">
              <view class="sp_wzi">{{aitem.act_name}}</view>
              <view class="o1_sj_kill">
                <text>{{aitem.djs.day}}</text> 天
                <text>{{aitem.djs.hou}}</text> :
                <text>{{aitem.djs.min}}</text> :
                <text>{{aitem.djs.sec}}</text>

              </view>
              <view class="money">
                <view class='sp_jg'>￥{{aitem.presell_price}}</view>
                <view wx:if="{{is_retail_price}}"class='sp_jgx ~no_line_x'>￥{{aitem.market_price}}</view>
              </view>

			  <block wx:if="{{aitem.end_time<newTime}}">
				  <view class="rob">
				    <view class="wo" style="background-color: #adadad">已结束</view>
				  </view>
			  </block>			  
			  <block wx:else>		  
				  <block wx:if="{{aitem.start_time<newTime && aitem.buy_goodnum<aitem.presell_sumqty}}">
					<view class="rob">
					  <view class="wo">我要抢</view>
					</view>
				  </block>

                  <block wx:if="{{aitem.buy_goodnum>=aitem.presell_sumqty}}">
					<view class="rob">
					  <view class="wo" style="background-color: #adadad">已抢光</view>
					</view>
				  </block>
			  </block>


            <block wx:if="{{aitem.start_time>newTime}}">
                <view class="rob">
                    <view class="wo" style="background-color: #fdcb08">即将开始</view>
                </view>
            </block>



            </view>
          </view>
        </navigator>
      </block>
    </block>

  </view>
  <view class='clear'></view>

</block>