<!-- 判断隐私是不是显示 -->
<privacy_pop id="privacy_pop"></privacy_pop>
<!-- 全屏控制 -->
<view wx:if="{{is_full_screen_show && full_ad && !full_ad.show_type}}" class="full_screen" bindtap="go_full_ad" style="background-image: url('{{url+full_ad.ad_code}}');">
  <view catchtap="close_full_screen" class="skip_box">跳过 <text>{{sec_show}}</text></view>
</view>

<!-- 居中弹窗广告 -->
<view wx:if="{{is_full_screen_show && full_ad && full_ad.show_type==1}}" class="full_screen full_img_main" catchtap="close_full_screen">
  <icon catchtap="close_full_screen" color="#fff" size="30" type="cancel" style="margin-bottom:40rpx;align-self: flex-end;margin-right:30rpx;"></icon>
  <image bindtap="go_full_ad" src="{{url+full_ad.ad_code}}" style="width:615rpx;" mode="widthFix"></image>
  <!-- <image catchtap="close_full_screen" src="/images/close.png" style="width:72rpx;height:72rpx;margin-top:30rpx;"></image> -->
</view>


<!--普通界面-->
<wxs module="filter" src="../../../utils/filter.wxs"></wxs>


<view class="container rel nor" wx:if="{{ishow}}">
  <block wx:if="{{banner}}">
    <image class="xc-top-img abs" src="{{url}}/miniapp/images/top-img.png"></image><!-- 红色背景 -->
  </block>

  <view class="top-bar">
    <top_nav nav_type="{{0}}" nav_frontColor="{{'#fff'}}" nav_backgroundColor="{{'#ff7295'}}" nav_title="{{nav_title}}"></top_nav>

    <!-- 顶部关注公众号 -->
    <view id="off_top" wx:if="{{is_gz_h5}}">
      <official-account></official-account>
    </view>
    <!-- 控制要不要显示顶部门店选择 -->
    <block wx:if="{{is_topstore}}">
      <store_select style="z-index: 999;"></store_select>
    </block>
    <!--搜索框-->
    <!-- <view class="search-box {{scrollTop>10?'search-fixed':''}} flex-center white " style="top:{{is_topstore?88:0}}rpx"> -->
    <view class="search-box flex-center white">
      <view class="classify-frame t-c" bindtap="go_cate">
        <image class="classify-img" src="{{url}}/miniapp/images/classify.png"></image>
      </view>
      <view class="search-inner">
        <view class="search-img">
          <image class="wh100" src="{{url}}/miniapp/images/search.png"></image>
        </view>
        <input bindtap="jumpSearch" class="search-cont" placeholder="请输入商品关键字" type="text" disabled />
      </view>
      <view class="classify-frame t-c" bindtap="getScancode">
        <image class="classify-img" src="{{url}}/miniapp/images/scanning.png"></image>
      </view>
    </view>
  </view>
  <top_nav nav_type="{{-1}}" nav_frontColor="{{nav_frontColor}}" nav_backgroundColor="{{nav_backgroundColor}}" nav_title="{{nav_title}}"></top_nav>

  <!-- 如果有关注，要顶开位置，不能注释 -->
  <view wx:if="{{is_gz_h5 && is_ok_h5}}" style="height: 84px;;flex-shrink:0"></view>
  <!-- 如果有顶部门店,顶开位置的，不能注释 -->
  <view wx:if="{{is_topstore}}" style="height:60rpx;flex-shrink:0"></view>
  <!--滚动广告-->
  <view class="rel title-img" wx:if="{{banner}}">
    <swiper circular="true" indicator-dots indicator-active-color="#fff" autoplay="true" class="swiper_box" duration="1000" interval="3000" vertical="" bindchange="bannerSwiperChange" style="height:{{max_sw_height}}rpx">
      <swiper-item wx:for="{{banner}}" wx:key="banner" class="swiperItem">
        <view class="slide-image-frame">
          <image bindtap='go_ad' data-url="{{item.ad_weapplink}}" class="slide-image" mode="widthFix" src="{{item.ad_code}}" bindload="imageLoad" data-index="{{index}}" lazy-load="true" binderror="bind_bnerr" data-errorimg="banner[{{index}}].ad_code"></image>
        </view>
      </swiper-item>
    </swiper>

  </view>


  <!---导航-->
  <view class="venues_box">
    <view class="venues_list">

      <!-- 团购列表 -->
      <view class="venues_item">
        <navigator url="/packageC/pages/group_list/group_list" hover-class="none">
          <image src="{{url}}/miniapp/images/index/tuangou.png"></image>
          <view>团购</view>
        </navigator>
      </view>

      <view class="venues_item">
        <navigator url="/packageA/pages/jfbuy/jfbuy" hover-class="none">
          <image src="{{url}}/miniapp/images/index/jifen.png"></image>
          <view>积分购</view>
        </navigator>
      </view>
      <view class="venues_item" wx:if="{{is_closecoupon!=1}}">
        <navigator url="/packageA/pages/quan_list/quan_list" hover-class="none">
          <image src="{{url}}/miniapp/images/index/youhui.png"></image>
          <view>优惠券</view>
        </navigator>
      </view>
      <view class="venues_item">
        <navigator url="/packageA/pages/checkin/checkin" hover-class="none">
          <image src="{{url}}/miniapp/images/index/qiandao.png"></image>
          <view>签到</view>
        </navigator>
      </view>
      <view class="venues_item">
        <navigator bindtap="go_url" data-url="/pages/goods/categoryList/categoryList" hover-class="none">
          <image src="{{url}}/miniapp/images/index/fenlei.png"></image>
          <view>全部分类</view>
        </navigator>
      </view>
    </view>
  </view>

  <!-- 大分类 -->
  <view class="flex ali-c">
    <view class="w20" wx:for="{{gd_category}}" bindtap="go_cate2" data-cid="{{item.id}}" data-pid="0">
      <view class="circle xc-class-frame t-c">
        <image class="xc-class-img" src="{{item.icoimg==null||item.icoimg==''?(item.image?url+item.image:url+'/miniapp/images/no_cate_def.png'):item.icoimg}}" binderror="bind_bnerr_icon" data-err="gd_category[{{index}}].icon"></image>
        <view class="fs24 gonju ellipsis-1"><text>{{item.name}}</text></view>
      </view>
    </view>
  </view>



  <!-- 轮播 -->
  <block wx:if="{{swiperimage.length>0}}">
    <!-- <swiper class="swiper" autoplay="true" interval="5000" circular="{{true}}" indicator-dots="{{true}}" indicator-active-color="rgb(255,255,255)" vertical> -->
    <swiper class="swiper" indicator-dots indicator-active-color="#fff" autoplay="true" interval="3000" circular="{{true}}" easing-function="easeInOutCubic">
      <!-- 活动轮播 -->
      <block wx:for="{{swiperimage}}" wx:for-item="adver" wx:for-index="key">
        <swiper-item>
          <view class="title-img-frame">
            <image class="xc-title-img" src="{{url+adver.image}}" bindtap="{{adver.nav_url==0?'go_quanyi':'new_nav'}}" data-url="{{adver.nav_url}}"></image>
          </view>
        </swiper-item>
      </block>
    </swiper>
  </block>

  <!-- 商城首页广告 -->
  <block>
    <view class="mb_box">
      <view class="mb_top">
        <view class="mb_top_item" data-url="{{mb_banner['300'].ad_weapplink}}" wx:if="{{mb_banner['300']}}" catchtap="go_mb">
          <image src="{{mb_banner['300'].ad_code}}" style="max-width: 100%;max-height: 360rpx;"></image>
        </view>
        <view class="mb_top_item">
          <view wx:if="{{mb_banner['301']}}" data-url="{{mb_banner['301'].ad_weapplink}}" catchtap="go_mb">
            <image src="{{mb_banner['301'].ad_code}}" style="max-width: 100%;max-height: 180rpx;"></image>
          </view>
          <view wx:if="{{mb_banner['302']}}" data-url="{{mb_banner['302'].ad_weapplink}}" catchtap="go_mb">
            <image src="{{mb_banner['302'].ad_code}}" style="max-width: 100%;max-height: 180rpx;"></image>
          </view>
        </view>
      </view>
      <view class="mb_bottom">
        <view wx:if="{{mb_banner['303']}}" data-url="{{mb_banner['303'].ad_weapplink}}" catchtap="go_mb">
          <image src="{{mb_banner['303'].ad_code}}" style="max-width: 100%;max-height:200rpx;"></image>
        </view>
        <view wx:if="{{mb_banner['304']}}" data-url="{{mb_banner['304'].ad_weapplink}}" catchtap="go_mb">
          <image src="{{mb_banner['304'].ad_code}}" style="max-width: 100%;max-height: 200rpx;"></image>
        </view>
      </view>
    </view>
  </block>


  <!--秒杀-->
  <view class="seckill" wx:if="{{saleGoods!=null && saleGoods.length!=0 }}">
    <navigator url="/pages/activity/seckill_list/seckill_list" hover-class="none">
      <view class="seckill-time">
        <view class="classname flex ai_c">
          <image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image>
          <image class="seckill-ttitle-img height" src="{{url}}/miniapp/images/seckill-ttitle.png"></image>
        </view>
        <view class="flex ai_c seckill-list">
          <text class="fs24 xc-marfin-right">查看全部</text>
          <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
        </view>
      </view>
    </navigator>
    <view class="seckill-list">
      <swiper class="s_prom" indicator-dots="{{false}}" bindchange="flashSwiperChange">
        <swiper-item wx:for="{{saleGoods}}" class="p_swiper" wx:key="saleGoods" style="padding: 0; margin-left: 10rpx">
          <navigator style="flex-shrink: 0;width: 247rpx" class="nav" hover-class="none" url="{{aitem.goods_type == 0 ? ('/pages/goods/goodsInfo/goodsInfo?goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type=1&prom_id=' + aitem.id):('/packageH/pages/goodsInfo/goodsInfo?goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type=1&prom_id=' + aitem.id )}}" wx:for="{{item}}" wx:key="item" wx:for-item="aitem" wx:for-index="aind">
            <view class="imgview">
              <image src="{{url+aitem.original_img}}" mode="aspectFill" lazy-load="true" data-errorimg="saleGoods[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3" data-img="{{aitem.original_img}}"></image>

              <image wx:if="{{aitem.status==0}}" class="status_img" src="{{url}}/miniapp/images/miao/yure.png"></image>
              <image wx:elif="{{aitem.status==1}}" class="status_img" src="{{url}}/miniapp/images/miao/going.png"></image>
              <image wx:else="{{aitem.status==2}}" class="status_img" src="{{url}}/miniapp/images/miao/mend.png"></image>
            </view>
            <view class="ellipsis-2 mar-top10" style="height: 76rpx;">{{aitem.goods_name}}</view>
            <!-- <view class="red-co mar-top10 is_seckill_height"> -->
            <view class="co-red mar-top10">
              <text class="fs20">￥</text>{{aitem.price}}
              <text wx:if="{{is_retail_price}}" class="un_line no_line_x">￥{{aitem.market_price}}</text>
            </view>
          </navigator>


        </swiper-item>
      </swiper>

    </view>
  </view>


  <!--预售-->
  <view class="seckill" wx:if="{{preGoods!=null && preGoods.length!=0 }}">
    <navigator bindtap="go_pre" data-url="/packageC/pages/presell/list/list" hover-class="none">
      <view class="seckill-time">
        <view class="classname flex ai_c">
          <i class="iconfont icon-presell"></i>
          <text class="bold fs30">惊喜预售</text>
        </view>
        <view class="flex ai_c seckill-list">
          <text class="fs24 xc-marfin-right">查看全部</text>
          <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
        </view>
      </view>
    </navigator>
    <view class="seckill-list">
      <swiper class="s_prom" indicator-dots="{{false}}" bindchange="flashSwiperChange" next-margin="25rpx">
        <swiper-item wx:for="{{preGoods}}" wx:key="*this" class="p_swiper">
          <navigator bindtap="go_pre" class="nav" hover-class="none" data-url="{{aitem.goods_type == 0?'/packageC/pages/presell/goodsInfo/goodsInfo':'/packageC/pages/presell/cardInfo/goodsInfo'}}?goods_id={{aitem.goods_id}}&pre_id={{aitem.id}}" wx:for="{{item}}" wx:key="item" wx:for-item="aitem" wx:for-index="aind">
            <!-- <view class="imgview presell"> -->
            <view class="imgview">
              <image src="{{url+aitem.original_img}}" mode="aspectFill" lazy-load="true" data-errorimg="preGoods[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3" data-img="{{aitem.original_img}}"></image>

              <image wx:if="{{aitem.status==0}}" class="status_img" src="{{url}}/miniapp/images/miao/yure.png" />
              <image wx:elif="{{aitem.status==1}}" class="status_img" src="{{url}}/miniapp/images/miao/going.png" />
              <image wx:else="{{aitem.status==2}}" class="status_img" src="{{url}}/miniapp/images/miao/mend.png" />
            </view>
            <view class="ellipsis-2 mar-top10" style="height: 75rpx; width: 200rpx">{{aitem.act_name}}</view>
            <view class="co-red mar-top10 flex jc_sb ali-c">
              <view>
                <text><text class="fs20">￥</text>{{aitem.presell_price}}</text>
                <text wx:if="{{is_retail_price}}" class="un_line no_line_x">￥{{aitem.market_price}}</text>
              </view>
              <view class="btn-buy">去抢购</view>
            </view>
          </navigator>
        </swiper-item>
      </swiper>
    </view>
  </view>



  <!--幸运购-->
  <view class="seckill" wx:if="{{luckGo_list && luckGo_list.length != 0}}">
    <navigator bindtap="go_url" data-remark="1" data-url="/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList" hover-class="none">
      <view class="seckill-time">
        <view class="classname flex ai_c">
          <i class="iconfont icon-luck"></i>
          <text class="bold fs30">幸运购</text>
        </view>
        <view class="flex ai_c seckill-list">
          <text class="fs24 xc-marfin-right">查看全部</text>
          <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
        </view>
      </view>
    </navigator>
    <view class=" luck">
      <view class="list-item" wx:for="{{luckGo_list}}" bindtap="{{item.actLen == 0 ? '':'go_url'}}" data-aid="{{item.id}}" data-remark="2" data-url="/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id={{item.goods_id}}&group_id={{item.id}}" wx:if="{{item.status == 1}}">
        <view class="flex ai-center">
          <view class="img-container">
            <image class="img-block" src="{{url + item.original_img}}" data-val="{{item.original_img}}" data-errorimg="luckGo_list[{{index}}].original_img" binderror="bind_bnerr2" lazy-load="true"></image>
          </view>
          <view class="pdl20 flex fdc jc_sb f1">

            <view class="ellipsis-2 name fs28" data-content="{{item.group_num}}人团">{{item.title}}</view>
            <view>
              <view class="flex ai-center">
                <text class="rmb c-red">{{filter.price(item.group_price)}}</text>
                <view wx:if="{{is_retail_price}}" class="del fs22 c-a pdl10 no_line_x"><text class="rmb">{{item.market_price}}</text></view>
              </view>
              <view class="flex jc_sb">
                <progress class="pdr20 f1 progress" percent="{{filter.percent(item.num, item.group_num)}}" activeColor="#FF6768" backgroundColor="#d0d0d0" border-radius="12" stroke-width="12" data-content="{{item.num}}人已参团"></progress>
                <view class="btn fs26 {{item.actLen == 0 ? 'gray':''}}" wx:if="{{item.actLen == 0}}">已抢光</view>
                <view class="btn fs26" wx:else>去参团</view>
                <!-- &title=狐狸3号测速003&prom_type=7&prom_id=468 -->
              </view>
            </view>

          </view>
        </view>
        <view class="fs24 pdt10 c-7b">*<text class="c-red">{{item.group_num}}</text>人成团，<text class="c-red">{{item.group_win}}</text>人得商品，<text class="c-red">{{item.group_num - item.group_win}}</text>人全额退款并得<text class="c-red">惊喜礼品</text>！</view>
      </view>
    </view>
  </view>







  <!----拼单---->
  <view class="seckill" wx:if="{{pindGoods!=null && pindGoods.length!=0 }}">
    <navigator url="/pages/activity/pind_list/pind_list" hover-class="none">
      <view class="seckill-time">
        <view class="classname flex ai_c">
          <image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image>
          <image class="seckill-ttitle-img" src="{{url}}/miniapp/images/team.png"></image>
          <block wx:if="{{pt_timer_item}}">
            <view class="flex user-frame ai_c xc-ash {{pt_timer_active==1?'pt_active':''}}">
              <image class="user-img  circle" src="{{pt_timer_item.head_pic}}"></image>
              <view class="ellipsis-1 user-name fs24">{{pt_timer_item.nickname}}</view>
              <text class="fs22" style="color:#ed6a0c;">刚拼团成功</text>
            </view>
          </block>
        </view>
        <view class="flex ai_c seckill-list">
          <text class="fs24 xc-marfin-right">查看全部</text>
          <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
        </view>
      </view>
    </navigator>
    <view class="seckill-lists rel">
      <swiper class="s_proms" style="height:{{pindGoods[0].length>1?'580':'290'}}rpx" indicator-active-color='red' bindchange="ptSwiperChange" indicator-dots>
        <swiper-item wx:for="{{pindGoods}}" wx:key="{{index}}" wx:for-index="pix">
          <view class="teamheight" style='display:block;' wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">
            <view class="kill-item">
              <navigator class="flex navwidth" url="{{!aitem.goods_type ? ('/pages/goods/goodsInfo/goodsInfo?goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name+ '&prom_type=6&prom_id=' + aitem.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?prom_type=6&goods_id=' + aitem.goods_id + '&prom_id=' + aitem.id)}}" hover-class="none">
                <view class="kill-pic">
                  <image class="wh100" src="{{url+aitem.original_img}}" data-val="{{aitem.original_img}}" data-errorimg="pindGoods[{{pix}}][{{aind}}].original_img" binderror="bind_bnerr2" lazy-load="true">
                  </image>
                </view>

                <view class="kill-cont">
                  <navigator class="goods-name ellipsis-2" url="{{aitem.goods_type == 0 ? ('/pages/goods/goodsInfo/goodsInfo?goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type=6&prom_id=' + aitem.id):('/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?goods_id=' + aitem.goods_id)}}" hover-class="none">
                    {{aitem.title}}

                  </navigator>
                  <view class="flex left">
                    <view class="tneirong red-b flex-vertical rel" wx:if="{{aitem.is_team_tepy!=0}}">
                      <image class="xc-team-img abs" src="{{url}}/miniapp/images/fril.png"></image>
                      已拼{{aitem.buy_num}}份
                    </view>
                    <view class="fs20 flex xc-people-val-frame" style="border-color:{{aitem.is_team_tepy==0?'#059de5':'#d60021'}};margin-left:{{aitem.is_team_tepy==0?'':'8rpx'}}">
                      <view class=" flex-center val-img {{aitem.is_team_tepy==0?'blue_b':'red-b'}}">
                        <image class="people-img" src="{{url}}/miniapp/images/bai-ren.png"></image>
                      </view>
                      <text class="{{aitem.is_team_tepy==0?'blue_c':'red-co'}}" style="margin-left:8rpx; margin-right:8rpx">{{aitem.ct_num}}人团</text>
                    </view>

                    <view class="fs20 blue_c time-blue" wx:if="{{aitem.is_team_tepy==0}}">
                      距开始:
                      <text class='tui-conutdown-box'>{{aitem.djs.day}}</text>天
                      <text class='tui-conutdown-box'>{{aitem.djs.hou}}</text>时
                      <text class='tui-conutdown-box'>{{aitem.djs.min}}</text>分
                      <text class='tui-conutdown-box tui-countdown-bg'>{{aitem.djs.sec}}</text> 秒
                    </view>
                  </view>

                  <view class="goods-num" style="margin-top:{{type==0?'70rpx':'40rpx'}}">
                    <view>

                      <view class="fs40 flex  xc-top15 {{aitem.is_team_tepy==0?'blue_c ai-bas':' red-co ai-bas'}}">
                        <text class="fs28 {{aitem.is_team_tepy==0?'martop4':''}}">￥</text>
                        <text style="margin-left:-5rpx">{{aitem.price}}</text>
                        <span wx:if="{{is_retail_price}}" class="underline {{type==0?'martop18':''}} no_line_x">￥{{aitem.market_price}}</span>
                      </view>

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

              </navigator>
            </view>

          </view>
        </swiper-item>
      </swiper>

    </view>
  </view>

  <!-- 好物推荐 -->
  <view class="title bdt16" style="margin-bottom:{{isIpx ? '48rpx' : '0'}};">
    <!-- 标题 -->
    <view>
      <!-- 中文名标题 -->
      <view class="China flex-level">
        <view class="line flex-vertical">
          <view class="one"></view>
          <view class="two"></view>
          <view class="three"></view>
        </view>

        <view class="Recommend flex-level" bindtap="requestList">好物推荐</view>

        <view class="line flex-vertical">
          <view class="three"></view>
          <view class="two"></view>
          <view class="one"></view>
        </view>
      </view>

    </view>
    <!-- 商品列表组件 -->
    <goods_recommend id="goods_list"></goods_recommend>
    <!-- 商品列表 -->

  </view>
  <!-- 技术支持 -->
  <view class="logo-container t-c">
    <view class="flex ai_c fs24 jc-center pdv20 white">
      <image src="{{url + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>提供技术支持
    </view>
  </view>
</view>

<block wx:if="{{f_hidden}}">
  <!--是否是自定义-->
  <view class="container" wx:if="{{isTemplate}}" style="background-color:{{bgcolor_t}}; padding-bottom: 10rpx">
    <!-- 置顶层 -->
    <!-- <view class="dis_top" style="position:fixed"> -->
    <!-- 关注公众号的显示 -->
    <!-- <view id="off_top" wx:if="{{is_gz_h5}}">
        <official-account></official-account>
      </view>
      <block wx:for="{{template_arr}}">
        <block wx:if="{{item.content.is_top==1}}">
          <block wx:if="{{item.ename=='searchbox'}}">
            <searchbox object="{{item.content}}"></searchbox>
          </block>
          <block wx:if="{{item.ename=='store_select'}}">
            <store_select object="{{item.content}}"></store_select>
          </block>
        </block>
      </block>
    </view> -->

    <!-- 撑开层 -->
    <!-- <view>
      <view wx:if="{{is_gz_h5 && is_ok_h5}}" style="height: 84px;flex-shrink:0"></view>
      <block wx:for="{{template_arr}}">
        <block wx:if="{{item.content.is_top==1}}">
          <view style="height:{{item.content.style==1 ? 110 : 88}}rpx"></view>
        </block>
      </block> 

    </view> -->

    <block wx:if="{{is_full_screen_navigation}}">
      <view class="dis_top" style="position: fixed;">
        <top_nav nav_type="{{nav_type}}" nav_frontColor="{{nav_frontColor}}" nav_backgroundColor="{{nav_backgroundColor ? '#fff' :'#fff'}}" nav_title="{{nav_title}}"></top_nav>

        <!-- <js_store_select bindup_storid="get_new_storid" id="js_store_select" transparent="{{searchbox_transparent}}" bgcoler="{{nav_backgroundColor  ? '#fff' :'#fff'}}" anclor="{{nav_but_color}}" ></js_store_select> -->

        <block wx:for="{{template_arr}}">
          <block wx:if="{{item.content.is_top==1}}">
            <!--如果是搜索框的时候 -->
            <block wx:if="{{item.ename=='searchbox'}}">
              <searchbox object="{{item.content}}" transparent="{{searchbox_transparent}}" nav_backgroundColor="{{nav_backgroundColor  ? '#fff' :'#fff'}}"></searchbox>
            </block>
            <block wx:if="{{item.ename=='store_select'}}">
              <store_select object="{{item.content}}"></store_select>
            </block>
          </block>
        </block>
      </view>
      <block wx:for="{{template_arr}}">
        <!--广告组合-->
        <block wx:if="{{item.ename=='advertising' && item.content.full_screen==1 && is_full_screen_navigation_index==index}}">
          <advertising object="{{item.content}}" bindbutColorEvent="bindbut_color_event_fn" is_full_screen_navigation_index="{{is_full_screen_navigation_index}}"></advertising>
        </block>
      </block>
    </block>

    <block wx:else>
      <!-- 置顶层 -->
      <view class="dis_top" style="position:fixed">
        <top_nav nav_type="{{0}}" nav_frontColor="{{nav_frontColor}}" nav_backgroundColor="{{nav_backgroundColor}}" nav_title="{{nav_title}}"></top_nav>
        <!-- 关注公众号的显示 -->
        <view id="off_top" wx:if="{{is_gz_h5}}">
          <official-account></official-account>
        </view>

        <!-- <js_store_select id="js_store_select" bindup_storid="get_new_storid"  transparent="{{0}}" bgcoler="{{nav_backgroundColor}}" anclor="{{nav_but_color}}" ></js_store_select> -->

        <block wx:for="{{template_arr}}">
          <block wx:if="{{item.content.is_top==1}}">
            <!--如果是搜索框的时候 -->
            <block wx:if="{{item.ename=='searchbox'}}">
              <searchbox object="{{item.content}}"></searchbox>
            </block>
            <block wx:if="{{item.ename=='store_select'}}">
              <store_select object="{{item.content}}"></store_select>
            </block>

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

      <!-- 撑开层 -->
      <view>
        <!-- 顶部导航撑开层 -->
        <top_nav nav_type="{{-1}}" nav_frontColor="{{nav_frontColor}}" nav_backgroundColor="{{nav_backgroundColor}}" nav_title="{{nav_title}}"></top_nav>
        <!-- 即时零售，门店选择撑开层 -->
        <!-- <view style="width: 100%;height: 88rpx;"></view> -->
        <view wx:if="{{is_gz_h5 && is_ok_h5}}" style="height: 84px;flex-shrink:0"></view>
        <block wx:for="{{template_arr}}">
          <block wx:if="{{item.content.is_top==1}}">
            <view style="height:{{item.content.style==1 ? 110 : 88 }}rpx"></view>
          </block>
        </block>

      </view>
    </block>



    <block wx:for="{{template_arr}}" wx:key="index">
      <view>
        <!--导航-->
        <block wx:if="{{item.ename=='nav'}}">
          <nav object="{{item.content}}"></nav>
        </block>
        <!--店招-->
        <block wx:if="{{item.ename=='shopname'}}">
          <shopname object="{{item.content}}"></shopname>
        </block>
        <!--广告组合-->
        <block wx:if="{{item.ename=='advertising'  && item.content.full_screen!=1}}">
          <advertising object="{{item.content}}"></advertising>
        </block>
        <!--商品分组-->
        <block wx:if="{{item.ename=='goodsGroup' || item.ename=='goodsGroupNew'}}">
          <goodsGroup class="{{'goodsGroup' + index}}" object="{{item.content}}" sticky="{{template_arr[0].content.is_top}}"></goodsGroup>
        </block>
        <!--通知-->
        <block wx:if="{{item.ename=='notice'}}">
          <notice object="{{item.content}}"></notice>
        </block>
        <!--语音-->
        <block wx:if="{{item.ename=='voice'}}">
          <voice object="{{item.content}}"></voice>
        </block>
        <!--视频-->
        <block wx:if="{{item.ename=='video'}}">
          <mvideo object="{{item.content}}"></mvideo>
        </block>
        <!--搜索-->
        <block wx:if="{{item.ename=='searchbox' && item.content.is_top!=1}}">
          <searchbox object="{{item.content}}"></searchbox>
        </block>
        <!--天天拼单-->
        <block wx:if="{{item.ename=='pingd_buy'}}">
          <pingd_buy object="{{item.content}}"></pingd_buy>
        </block>
        <block wx:if="{{item.ename=='pingd_buyNew'}}">
          <diy_public object="{{item.content}}" prom_type="6"></diy_public>
        </block>
        <!--秒杀-->
        <block wx:if="{{item.ename=='seckill' || item.ename=='seckillNew'}}">
          <seckill object="{{item.content}}"></seckill>
        </block>
        <!-- 热区切图 -->
        <block wx:if="{{item.ename=='heatCutDiagram'}}">
          <heat_img object="{{item.content}}"></heat_img>
        </block>
        <!--标题-->
        <block wx:if="{{item.ename=='title'}}">
          <title object="{{item.content}}"></title>
        </block>
        <!--悬浮集-->
        <block wx:if="{{item.ename=='floatingBox'}}">
          <floatingBox farr="{{item.content}}" is_show_top="{{is_show_top}}" loaction_index="{{item.loaction_index}}"></floatingBox>
        </block>
        <!--悬浮窗口-->
        <!-- <block wx:if="{{item.ename=='floatingWindow'}}">
          <floatingWindow object="{{item.content}}"></floatingWindow>
        </block> -->
        <!--在线上客服-->
        <!-- <block wx:if="{{item.ename=='onlineService'}}">
          <service object="{{item.content}}"></service>
        </block> -->
        <!--扫一扫-->
        <!-- <block wx:if="{{item.ename=='scan'}}">
          <scan object="{{item.content}}"></scan>
        </block> -->
        <!--辅助空白-->
        <block wx:if="{{item.ename=='white'}}">
          <assist object="{{item.content}}"></assist>
        </block>
        <!--图片组合-->
        <block wx:if="{{item.ename=='picMix'}}">
          <picMax object="{{item.content}}"></picMax>
        </block>

        <!-- 门店选择 -->
        <block wx:if="{{item.ename=='store_select' && item.content.is_top!=1}}">
          <store_select object="{{item.content}}"></store_select>
        </block>

        <!-- 预售 -->
        <block wx:if="{{item.ename=='presale'}}">
          <presell object="{{item.content}}"></presell>
        </block>
        <block wx:if="{{item.ename=='presaleNew'}}">
          <diy_public object="{{item.content}}" prom_type="8"></diy_public>
        </block>
        <!-- 团购 -->
        <block wx:if="{{item.ename=='groupbuy'}}">
          <groupbuy object="{{item.content}}"></groupbuy>
        </block>
        <block wx:if="{{item.ename=='groupbuyNew'}}">
          <diy_public object="{{item.content}}" prom_type="2"></diy_public>
        </block>
        <!-- 幸运购 -->
        <block wx:if="{{item.ename=='luckyactivity'}}">
          <luckyGo object="{{item.content}}"></luckyGo>
        </block>
        <block wx:if="{{item.ename=='luckyactivityNew'}}">
          <!-- <luckyGo object="{{item.content}}"></luckyGo> -->
          <diy_public object="{{item.content}}" prom_type="9"></diy_public>
        </block>

        <!-- 服务卡项 -->
        <block wx:if="{{item.ename=='servicecategory'}}">
          <serviceCard object="{{item.content}}" sticky="{{template_arr[0].content.is_top}}"></serviceCard>
        </block>


      </view>

    </block>

    <!-- 技术支持 -->
    <view class="logo-container t-c">
      <view class="flex ai_c fs24 jc-center pdv20 white">
        <image src="{{url + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>提供技术支持
      </view>
    </view>
  </view>

</block>

<!-- 蒙尘 -->
<block wx:if="{{is_disgraceful}}">
  <view class="disgraceful">
    <!-- 新人礼领取图片 -->
    <view class="newreceive flex-center">
      <view class="t-c">
        <view bindtap="new_nav"  hover-class="none">
          <view class="img-box" style="position: relative;">
            <image mode="widthFix" class="receive" src="{{url}}{{new_image==''?'/miniapp/images/newpeople/newreceive.png':new_image}}"></image>
          </view>

        </view>
        <image class="close" src="{{url}}/miniapp/images/plus/Close.png" catchtap="close_disgraceful" mode="" />
        <!-- <view class="flex-level"></view> -->
      </view>
    </view>
  </view>
</block>

<!-- 抢红包 -->
<block wx:if="{{showHongbao}}">
  <view class="hongbao-container">
    <view class="hongbao">
      <image src="{{url + 'miniapp/images/redmoney/hongBao.png'}}" class="hongbao-img" bindtap="nav_goto" data-url="/packageA/pages/hongBao/hongBao" />
      <image src="{{url + 'miniapp/images/redmoney/xlose.png'}}" class="close" bindtap="closeHongbao" />
    </view>
  </view>
</block>

<block wx:if="{{showHongbaoSmall}}">
  <view>
    <image src="{{url + 'miniapp/images/redmoney/hongbao_sm.gif'}}" style="bottom:{{right_floating_length ? (right_floating_length*100 + 220 ) : 500}}rpx;" class="hongbao_sm-img" bindtap="nav_goto" data-url="/packageA/pages/hongBao/hongBao" />
  </view>
</block>