selectcity.wxml 1.8 KB
<view class="selcityhead">
  <view class="selcityleft">
    <view class="selcityimg">
      <image src="/img/sousuo.png"></image>
    </view>

    <view class="selinput">
      <input placeholder='请输入搜索城市' placeholder-class='searchcity' />
    </view>
  </view>

  <view class="selcityright">取消</view>
</view>

<view class="cityhead">
  <view class="cityheadleft">
    <view class="selimgsize">
      <image src="/img/ditu.png"></image>
    </view>
    <view class="cityleftname">{{currentCity}}</view>
    <view class="cityleftding">当前定位</view>
  </view>

  <view class="cityheadright" bindtap="reseatweizhi">重新定位</view>
</view>


<view class='city_box'>
  <view class='city_left'>
    <scroll-view style='width:100%;height:100%;' scroll-with-animation scroll-into-view='{{cityListId}}' class="citybox" scroll-y='true' scroll-top="{{scrollHeight}}">

      <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'>
          <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>
    </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>