cityList.wxml 2.8 KB
<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>