brands.wxml 1.77 KB

<import src="./brandSearch.wxml"/>

<block wx:if="{{searching}}"> 
  <brandSearch id="brandSearch" all_list="{{brandsList}}" hotKeyword="{{hotKeyword}}" bind:dismissSearchView="dismissSearchView"></brandSearch>
</block>
<block wx:else>
  <scroll-view class='container' style="height: {{scrollHeight}}px;" scroll-y scroll-into-view="{{scrollToView}}">
    <view class='newsearch' id="newsearch" bindtap="showSearchView">
      <image class="serachIcon" src="../../static/images/search@3x.png"></image>
      <view class="serach_view_show">搜索</view>
    </view>

    <view>
      <block wx:for="{{brandsList}}" wx:key="{{index}}" wx:for-item="brand">
        <view id="{{brand.letter == '#' ? 'last' : brand.letter}}" class='sessionTitle'>
          <text class='sessionText'>{{brand.letter}}</text> 
        </view>
        <block wx:for="{{brand.list}}" wx:key="{{unique}}" wx:for-item="brand">
          <!-- <view class='row' bindtap="brandItemTapped" data-brand-item="{{item}}">
            <view class="content">
                <image class="brand-icon" src="{{item.logo}}" mode="aspectFill"></image>
                <view class='rowContent'>
                  <text class='title'>{{item.name}}</text> 
                  <text class='location'>展位号:A578</text> 
                </view>
            </view>
            <view class='spaceLine'/>
          </view> -->
          <template is="brand-list-item" data="{{item:brand}}"/>
        </block>
      </block>
    </view>
    
  </scroll-view>
  
  <view class="alphanet-selector" data-id="selector" catchtouchstart="handlerAlphaTap" catchtouchmove="handlerMove">

    <view class="selector-one" data-ap="{{item.letter=='#' ? 'last' : item.letter}}" wx:for="{{brandsList}}" wx:key="unique">
        {{item.letter}}
    </view>
  </view>
</block>