cityList.wxml
2.8 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
<view class='city_box'>
<view class='city_left'>
<scroll-view scroll-y style='width:100%;height:100%;' scroll-with-animation scroll-into-view='{{cityListId}}'>
<!-- <view class='city_locate' data-types='locate' catchtap='cityTap'>
<text class='city_locate_title'>自动定位</text>
<text class='city_locate_text' style='{{!locateCity&&"color:#33b9ff;"}}'>{{locateCity||'点击定位'}}</text>
</view> -->
<view class="cityname">
<view class="address_tj">
<text>{{DWcity.shortname}}</text>
<image src="{{imagesUrl}}assets/static/img/xia_triangle.png" />
</view>
<view class="search">
<image src="{{imagesUrl}}assets/static/img/searchone.png"></image>
<input type="text" placeholder="请输入搜索的城市" value="{{searchValue}}" name="input" bindfocus="userNameInput"></input>
</view>
</view>
<!-- <view class='national' data-types='national' catchtap='cityTap'>全国</view> -->
<view class="ci">
<view class="dingwei">
<image src="{{imagesUrl}}assets/static/img/icon_address@2.png" />
<text class="cityDW0">{{DingWei.name}}</text>
</view>
<view class="tjcs">推荐位置</view>
</view>
<view class='new_city'>
<view class="redaTitle">
<view class="red"></view>
<view class='new_city_title'>热门城市</view>
</view>
<view class='new_city_box'>
<text class='new_city_text' wx:for='{{hotCity}}' wx:key='this' data-types='new' catchtap='cityTap' data-val='{{item}}'>
{{item.city.shortname}}
</text>
</view>
</view>
<!-- <view class='city_list_box'>
<block wx:for='{{citylist}}' wx:key='this' wx:for-item='letterItem' wx:for-index='letterIndex'>
<view class='city_first_letter' id='{{letterItem.letter}}'>{{letterItem.letter}}</view>
<text class='city_name' wx:for='{{letterItem.data}}' wx:key='this' data-types='list' catchtap='cityTap' data-index='{{index}}' data-val='{{item}}'>{{item.cityName}}</text>
</block>
</view> -->
<view class='city_list_box'>
<block wx:for='{{letterCITY}}' wx:key='this' wx:for-item='letterItem' wx:for-index='letterIndex'>
<view class='city_first_letter' id='{{letterItem.name}}'>{{letterItem.name}}</view>
<text class='city_name' wx:for='{{letterItem.city}}' wx:key='this' data-types='list' catchtap='cityTap' data-index='{{index}}' data-val='{{item}}'>
{{item.shortname}}
</text>
</block>
</view>
</scroll-view>
</view>
<view class='city_right'>
<text class='letter_item' wx:for='{{letter}}' wx:key='this' catchtap='letterTap' data-item='{{item}}'>
{{item}}
</text>
</view>
</view>