switchcity.wxml 888 B

1234567891011121314151617181920
  1. <view class="searchLetter touchClass">
  2. <view wx:for="{{searchLetter}}" style="height:{{itemH}}px" wx:key="index" data-letter="{{item.name}}"
  3. catchtouchstart="searchStart" catchtouchmove="searchMove" catchtouchend="searchEnd">{{item.name}}</view>
  4. </view>
  5. <block wx:if="{{isShowLetter}}">
  6. <view class="showSlectedLetter">
  7. {{showLetter}}
  8. </view>
  9. </block>
  10. <view>当前选择城市:{{city}}</view>
  11. <scroll-view scroll-y="true" style="height:{{winHeight}}px" bindscroll="bindScroll" scroll-top="{{scrollTop}}">
  12. <view class="selection" wx:for="{{cityList}}" wx:key="{{item.initial}}">
  13. <view class="item_letter">{{item.initial}}</view>
  14. <view class="item_city" wx:for="{{item.cityInfo}}" wx:for-item="ct" wx:key="{{ct.id}}" data-city="{{ct.city}}"
  15. bindtap="bindCity">
  16. {{ct.city}}
  17. </view>
  18. </view>
  19. </scroll-view>