<view class="microIndex" wx:if="{{!stroeAloneStyle}}">
  <view class="banner">
    <view class="searchcontent" catchtap="jumpToSearch">
      <view class="content">
        <view class="left">
          <icon class="iconfont iconfont icon-sousuo1"></icon>
        </view>
        <view class="right">搜索你喜欢的...</view>
      </view>
    </view>
    <view class="img_contetnt" catchtap="jumpAddress" data-url="{{topContent.micro_top_jump}}">
      <image src="{{topContent.micro_top}}" alt="" mode='widthFix' />
    </view>
    <view class="bottomcontent">
      <view class="top">
        <view class="left">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/home_eye@2x.png" mode='widthFix' />
        </view>
        <view class="right">{{topContent.browse_num?topContent.browse_num:0}}</view>
      </view>
      <view class="bottom">
        <view class="left">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/home_post@2x.png" mode='widthFix' />
        </view>
        <view class="right">{{topContent.trick_num?topContent.trick_num:0}}</view>
      </view>
    </view>
  </view>
  <view class="milist">
    <view class="ul">
      <view class="li" wx:if="{{functionList.show_sign}}" catchtap="goToUrl" data-name="sign">
        <view class="top">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/index_icon_1.png" mode='widthFix' />
        </view>
        <view class="bottom">签到</view>
      </view>
      <view class="li" wx:if="{{functionList.show_clock}}" catchtap="goToUrl" data-name="ClockPunch">
        <view class="top">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/index_icon_2.png" mode='widthFix' />
        </view>
        <view class="bottom">打卡</view>
      </view>
      <view class="li" wx:if="{{functionList.show_video}}" catchtap="goToUrl" data-name="VideoList">
        <view class="top">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/index_icon_3.png" mode='widthFix' />
        </view>
        <view class="bottom">视频</view>
      </view>
      <view class="li" wx:if="{{functionList.show_qr}}" catchtap="openQrCode">
        <view class="top">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/index_icon_4.png" mode='widthFix' />
        </view>
        <view class="bottom">二维码</view>
      </view>
      <view class="li" wx:for="{{cate}}" catchtap="goClassification" data-id="{{item.id}}" wx:key="index">
        <view class="top">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/store_into.png" wx:if="{{!item.icon}}" mode='widthFix' />
          <image src="{{item.icon}}" mode='widthFix' wx:else />
        </view>
        <view class="bottom">{{item.name}}</view>
      </view>
    </view>
  </view>
  <swiper indicator-dots="{{true}}" autoplay="{{false}}" circular="{{true}}" style='height:{{Height}}'>
    <swiper-item>
      <view class="centerbanner" catchtap="jumpAddress" data-url="{{bannerContent.micro_home_one_small}}">
        <image src="{{bannerContent.micro_home_one}}" mode='widthFix' bindload='imgHeight' />
      </view>
    </swiper-item>
    <swiper-item>
      <view class="centerbanner" catchtap="jumpAddress" data-url="{{bannerContent.micro_home_two_small}}">
        <image src="{{bannerContent.micro_home_two}}" mode='widthFix' bindload='imgHeight' />
      </view>
    </swiper-item>
    <swiper-item>
      <view class="centerbanner" catchtap="jumpAddress" data-url="{{bannerContent.micro_home_three_small}}">
        <image src="{{bannerContent.micro_home_three}}" mode='widthFix' bindload='imgHeight' />
      </view>
    </swiper-item>
  </swiper>
  <van-tabs active="{{active}}" wx:if="{{resizeTabs}}" bind:click="getClassificationBtn">
    <van-tab title="最新">
      <view class="video_list" wx:if="{{newClassification}}">
        <Waterfalls_flow goodsData="{{newClassification}}"></Waterfalls_flow>
        <view wx:if="{{newClassification.length <= 0}}" class="blank">
          <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
        </view>
      </view>
    </van-tab>
    <van-tab title="附近" wx:if="{{!closeNearby}}">
      <view class="video_list" wx:if="{{nearbyClassification}}">
        <Waterfalls_flow goodsData="{{nearbyClassification}}"></Waterfalls_flow>
        <view wx:if="{{nearbyClassification.length <= 0}}" class="blank">
          <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
        </view>
      </view>
    </van-tab>
    <block wx:for="{{cate}}" wx:key="index">
      <van-tab title="{{item.name}}">
        <view class="cate-box">
          <view class="cate-child-box {{cateMoreData.id == item.id ? 'active-cate-child' : ''}}" catchtap="getCateChild"
            data-id="{{item.id}}">全部</view>
          <view class="cate-child-box {{cateMoreData.id == cateChild.id ? 'active-cate-child' : ''}}"
            catchtap="getCateChild" data-id="{{cateChild.id}}" wx:for="{{item.child}}" wx:for-item="cateChild">
            {{ cateChild.name }}
          </view>
        </view>
        <block wx:if="{{cateList[index]&&cateList[index].length>0}}">
          <Waterfalls_flow goodsData="{{cateList[index]}}"></Waterfalls_flow>
        </block>
        <view wx:if="{{!showLoading&&cateList[index] <= 0}}" class="blank">
          <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
        </view>
        <view class="load"  wx:if="{{showLoading}}">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/video-loading.gif" mode='widthFix'></image>
        </view>
      </van-tab>
    </block>
  </van-tabs>

  <view style='height: 100rpx'></view>
  <micro-footer activeId="1"></micro-footer>

  <van-popup show="{{isshow}}" custom-style="width:70%; background: rgba(0,0,0,0);" bind:close="clicktapshow">
    <image class="erweima" src="{{poster}}" mode='widthFix' bindtouchstart='timestart' bindtouchend='timeend'
      bindtap='saveImg' />
  </van-popup>

  <yz_homeButton datas="{{['home']}}" title="{{['平台首页']}}" wx:if="{{!stroeAloneStyle}}"></yz_homeButton>
</view>
<!-- 门店独立模板 -->
<view class="microIndex" wx:if="{{stroeAloneStyle}}">
  <view class="video_list">
    <Waterfalls_flow goodsData="{{newClassification}}"></Waterfalls_flow>
    <view wx:if="{{newClassification.length <= 0}}" class="blank">
      <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
    </view>
  </view>
</view>
<yz_homeButton datas="{{['storeAlone']}}" wx:if="{{stroeAloneStyle}}"></yz_homeButton>
<shopfoot wx:if="{{stroeAloneStyle}}"></shopfoot>
