brands.wxml
1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<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>