brands.ttml
3.22 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!-- 点击分类侧边栏的品牌加载页面 -->
<view tt:if="{{searching}}">
<brandSearch id="brandSearch" all_list="{{all_list}}" hotKeyword="{{hotKeyword}}" bind:dismissSearchView="dismissSearchView"></brandSearch>
</view>
<view tt:else>
<genderSwitcher data="{{currentChannelId}}" catchswitchChannel="switchChannel"></genderSwitcher>
<scroll-view class='container' style="height: {{scrollHeight}}px;" scroll-y scroll-into-view="{{scrollToView}}">
<view class='newsearchSpace' id="newsearchSpace"></view>
<view class='newsearch' id="newsearch" bindtap="showSearchView">
<image class="serachIcon" src="../index/images/home_search@2x.png"></image>
<view class="serach_view_show">搜索品牌</view>
</view>
<swiper id="swiper-box" class="swiper-box" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" circular='true' duration="{{duration}}" indicator-color='rgba(255,255,255,0.2)' indicator-active-color="rgba(255,255,255,1)">
<block tt:for="{{banner}}" tt:key="index">
<swiper-item>
<image class="slide-image" src="{{item.src}}" mode="aspectFit" bindtap="activityItemTapped" data-brand-item="{{item}}" data-F_ID="{{1001}}" data-F_INDEX="{{1}}" data-I_INDEX="{{index}}"/>
</swiper-item>
</block>
</swiper>
<view class='space'/>
<view class='custom_brands' tt:if="{{custom_brands.list.length > 0}}">
<text class='title'>{{custom_brands.title.title}}</text>
</view>
<scroll-view class="custom_brands_List" scroll-x="true">
<block tt:for="{{custom_brands.list}}" tt:key="{{index}}" tt:for-item="item">
<view class="custom_brands_List_item" bindtap="activityItemTapped" data-brand-item="{{item}}" data-F_ID="{{1002}}" data-F_INDEX="{{2}}" data-I_INDEX="{{index}}">
<image src="{{item.src}}" class="custom_brands_List_img" mode="aspectFit"></image>
<view class="custom_brands_List_name">{{item.title}}</view>
</view>
</block>
</scroll-view>
<view style='height: 10rpx;' tt:if="{{custom_brands.list.length > 0}}"/>
<view class='space' tt:if="{{custom_brands.list.length > 0}}"/>
<brandSwitcher data='{{switchData}}' catchswitchBrandFliter="switchBrandFliter"></brandSwitcher>
<block tt:if="{{switchData.currentBrandFliter == 0}}">
<allBrandsComponent data="{{all_list}}" onlyTextBrand="1" bindbrandItemTapped="brandItemTapped"></allBrandsComponent>
</block>
<block tt:elif="{{switchData.currentBrandFliter == 1}}">
<allBrandsComponent data="{{new_list}}" bindbrandItemTapped="brandItemTapped"></allBrandsComponent>
</block>
<block tt:elif="{{switchData.currentBrandFliter == 2}}">
<allBrandsComponent data="{{hot_list}}" bindbrandItemTapped="brandItemTapped"></allBrandsComponent>
</block>
</scroll-view>
<view class="alphanet-selector" data-id="selector" catchtouchstart="handlerAlphaTap" catchtouchmove="handlerMove" tt:if="{{switchData.currentBrandFliter == 0}}">
<view class="selector-one" data-ap="{{item.key=='0-9' ? 'last' : item}}" tt:for="{{all_list_key}}" tt:key="unique">
{{(item=="0-9" || item=="0~9") ? '0' : item}}
</view>
</view>
</view>