4 changed files with 257 additions and 53 deletions
Unified View
Diff Options
-
198components/city-change/index.js
-
5components/city-change/index.json
-
46components/city-change/index.wxml
-
61components/city-change/index.wxss
@ -1,3 +1,6 @@ |
|||||
{ |
{ |
||||
"component": true |
|
||||
|
"component": true, |
||||
|
"usingComponents": { |
||||
|
"wux-dialog": "/components/dialog/index" |
||||
|
} |
||||
} |
} |
||||
@ -1,26 +1,32 @@ |
|||||
<view class='city_box' style='{{styles}}'> |
<view class='city_box' style='{{styles}}'> |
||||
<view class='city_left'> |
|
||||
<scroll-view scroll-y style='width:100%;height:85vh;' scroll-with-animation scroll-into-view="{{cityListId}}"> |
|
||||
<!-- <view class='city_locate' data-types='locate' catchtap='cityTap'> |
|
||||
|
<view class='city_left'> |
||||
|
<scroll-view scroll-y style='width:100%;height:85vh;' 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_title'>自动定位</text> |
||||
<text class='city_locate_text' style='{{!locateCity&&"color:#33b9ff;"}}'>{{locateCity||'点击定位'}}</text> |
<text class='city_locate_text' style='{{!locateCity&&"color:#33b9ff;"}}'>{{locateCity||'点击定位'}}</text> |
||||
</view> --> |
</view> --> |
||||
<view class='national' data-types='national' catchtap='cityTap'>全国</view> |
|
||||
<view class='new_city'> |
|
||||
<view class='new_city_title'>热门城市</view> |
|
||||
<view class='new_city_box'> |
|
||||
<text class='new_city_text' wx:for='{{newcity}}' wx:key='this' data-types='new' catchtap='cityTap' data-val='{{item}}'>{{item}}</text> |
|
||||
</view> |
|
||||
</view> |
|
||||
<view class='city_list_box'> |
|
||||
|
<view class='national' data-types='national' catchtap='cityTap'>全国</view> |
||||
|
<view class='new_city'> |
||||
|
<view class='new_city_title'>热门城市</view> |
||||
|
<view class='new_city_box'> |
||||
|
<text class='new_city_text' wx:for='{{newcity}}' wx:key='this' data-types='new' catchtap='cityTap' |
||||
|
data-val='{{item}}'>{{item}}</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class='city_list_box'> |
||||
<block wx:for='{{citylist}}' wx:key='this' wx:for-item='letterItem' wx:for-index='letterIndex'> |
<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> |
|
||||
|
<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> |
</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> |
|
||||
|
</view> |
||||
|
</scroll-view> |
||||
|
</view> |
||||
|
<view class='city_right' id="rightSortHeight"> |
||||
|
<text class='letter_item' wx:for='{{letter}}' wx:key='this' catchtap='letterTap' data-item='{{item}}' |
||||
|
bindtouchstart='touchStart' bindtouchmove='touchMove' bindtouchend='touchEnd'>{{item}}</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class='cu-dialog show-dialog' wx:if="{{dialogIsShow}}"> |
||||
|
<text>{{dialongValue}}</text> |
||||
|
</view> |
||||
Write
Preview
Loading…
Cancel
Save