<view class="container" style="background-color:{{bgcolor_t}};{{is_fixed_nav==1?'padding-bottom:110rpx;':'padding-bottom:10rpx;'}}">


  <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}}"></goodsGroup>
      </block>
      <!-- <block wx:if="{{item.ename=='goodsGroupNew'}}">
        <diy_public class="{{'goodsGroup' + index}}" object="{{item.content}}" prom_type="21"></diy_public>
      </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=='seckillNew'}}">
        <diy_public object="{{item.content}}" prom_type="1"></diy_public>
      </block> -->
      <!--标题-->
      <block wx:if="{{item.ename=='title'}}">
        <title object="{{item.content}}"></title>
      </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=='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=='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" style="border-radius: 0;" lazy-load></image>提供技术支持
    </view>
  </view>
</view>
<div_tab_bar wx:if="{{is_fixed_nav==1}}"></div_tab_bar>
<!-- 蒙尘 -->
<block wx:if="{{is_disgraceful}}">
  <view class="disgraceful">
    <!-- 新人礼领取图片 -->
    <view class="newreceive flex-center">
      <view>
        <navigator bindtap="new_nav">
          <view class="flex-level">
            <image class="receive" src="{{url}}{{new_image==''?'/miniapp/images/newpeople/newreceive.png':new_image}}"></image>
          </view>
        </navigator>
        <view class="flex-level">
          <image class="close" src="{{url}}/miniapp/images/plus/Close.png" bindtap="close_disgraceful"></image>
        </view>
      </view>
    </view>
  </view>
</block>