CarBrands.wxml
2.47 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<popup
title="选择车型"
show="{{show}}"
bindconfirm="confirm"
height="{{ equityFlag ? '85%' : '90%' }}">
<view class="car-brands-box">
<search-input bindsearch="searchCar" />
<view class="car-brands">
<scroll-view style="height:100%;" scroll-y scroll-into-view="{{letter}}">
<block wx:if="{{brandList.length > 0}}">
<block wx:for="{{brandList}}" wx:key="index">
<view>
<view class="title y-center" id="{{item.letter}}">{{item.letter}}</view>
<view class="box">
<block
wx:for="{{item.list}}"
wx:for-item="i"
wx:key="ind"
wx:for-index="ind">
<view
class="brands"
catchtap="showChilds"
data-index='{{index}}'
data-ind='{{ind}}'>
<view class="list y-center">{{i.name}}</view>
<block wx:if="{{i.active}}">
<block
wx:for='{{i.childs_list}}'
wx:key="cind"
wx:for-item='c'
wx:for-index='cind'>
<view
class="list y-center child {{c.active?'active':''}} {{c.isTitle?'title':''}}"
catchtap="choose"
data-index="{{index}}"
data-ind="{{ind}}"
data-cind="{{cind}}"
data-item="{{i}}"
data-that="{{c}}">
{{c.name}}
<view class="icon">
<image src="../images/choose.png" />
</view>
</view>
</block>
</block>
</view>
</block>
</view>
</view>
</block>
</block>
<block wx:if="{{merchantId && brandList.length <= 0}}">
<view class="nothing">暂无数据</view>
</block>
<block wx:if="{{!merchantId}}">
<view class="nothing">请先选择流量来源</view>
</block>
</scroll-view>
<view class="side-bar" id="side-bar">
<block wx:for="{{brandList}}" wx:key="index">
<view
data-letter="{{item.letter}}"
class="view {{item.active?'active':''}}"
capture-catch:touchstart="start"
id="letter-{{item.letter}}"
data-index="{{index}}"
capture-catch:touchmove="move"
capture-catch:touchend="end">
{{item.letter}}
</view>
</block>
</view>
<!-- 提示 -->
<view class='tips' hidden='{{!showTip}}'>{{letter}}</view>
</view>
</view>
</popup>