<view class="container">
  <auth bindlogin="onShow" />
	
  <lip-sync />
  <view class="top">
    <view class="search">
      <input placeholder="搜索店铺" value="{{keyword}}" bindinput="inputChange" bindconfirm="search" focus="{{inputShowed}}" confirm-type="search" type="text"></input>
      <image wx:if="{{imgServer}}" src="{{imgServer + '/search.png'}}"></image>
    </view>
    
    <view class="header">
      <view class="ul nav">
        <view bindtap="tapHeaderBar" wx:for="{{header}}" wx:key="{{item.type}}"  data-id='{{item.id}}' class="li {{item.id==activeType?'active':''}}">{{item.name}}</view>
      </view>
    </view>
  </view>
  <view class="body" id="tab-con">
    <!-- <lip-sync inner-text="Some text"></lip-sync> -->
    <view class="ul" wx:if="{{loading || brandList.length}}">
      <view bindtap="gotoWV" data-img="{{item.img}}" data-id="{{item.id}}" class="li" wx:for='{{brandList}}' wx:key="*this">
        <image wx:if="{{imgServer}}" mode="aspectFill" src="{{item.appListPicUrl}}"></image>
        <view class="count"></view>
        <view class="b-title">
          <text>{{item.name}}</text>
        </view>
      </view>
    </view>
    <view wx:else class="unbrand">
      <image src="/static/images/img_noshop@3x.png"></image>
      <view class="text">暂无相关店铺</view>
    </view>
  </view>

  <view class="linear-mask {{hideMask? '': 'mask-hidden'}}" ></view>
  <view bindtap="tabHide" class="search-con" wx:if="{{showSearch}}">
    <view class="sc-con" catchtap>
      <input focus="true" value="{{keyword}}" bindinput="inputChange" bindconfirm="search" confirm-type="search" type="text"></input>
      <image  wx:if="{{imgServer}}" src="{{imgServer + '/fangdajing.png'}}"></image>
    </view>
    <view class="no-record" wx:if="{{noRecord}}">未搜索到相关内容</view>
  </view>
</view>