carSeries.wxml
1.52 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
<!--packageEquity/pages/carEquity/carSeries/carSeries.wxml-->
<view class="car-brands-box">
<view class="car-brands">
<scroll-view style="height:100%;" scroll-y scroll-into-view="{{letter}}">
<block wx:for="{{list}}" wx:key="index">
<view id="series-{{index}}">
<view class="title car-y-center">{{item.name}}</view>
<view class="box">
<block wx:if="{{item.done}}">
<block wx:for="{{item.childs}}" wx:for-item="i" wx:key="ind" wx:for-index="ind">
<view class="brands" catchtap="showCarType" data-item="{{item}}" data-i="{{i}}">
<view class="list car-y-center">
{{i.name}}
</view>
</view>
</block>
</block>
<block wx:else>
<page-loading>加载中...</page-loading>
</block>
</view>
</view>
</block>
</scroll-view>
<view class="side-bar" id="side-bar">
<block wx:for="{{list}}" wx:key="index">
<view class="view" data-index="{{index}}" bindtap="go">{{item.name}}
</view>
</block>
</view>
</view>
</view>
<block wx:if="{{showType}}">
<view class="car-type-box">
<view class="bg" bindtap="cancel" catchtouchmove="noScroll"></view>
<view class="car-view">
<block wx:for="{{carTypeList}}" wx:key="index">
<view class="flex item" bindtap="choose" data-i="{{item}}">
{{item.name}}
</view>
</block>
</view>
</view>
</block>