index-list.wxml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <scroll-view class="page page-select-city" style="height: {{windowHeight}}px;" enable-back-to-top scroll-into-view="{{intoView}}" scroll-y bindscroll="onScroll">
  2. <view>
  3. <slot></slot>
  4. </view>
  5. <view class="city_list_item" wx:for="{{list}}" wx:key="alpha" id="{{item.alpha}}">
  6. <view class="city-group__title font-size-26 tips-color">{{item.alpha}}</view>
  7. <view class="city-group__content">
  8. <view class="city-group__list">
  9. <block wx:for="{{item.subItems}}" wx:for-item="subItem" wx:key="name">
  10. <view
  11. class="city-group__item thin-border-bottom"
  12. hover-class="bg-highlight"
  13. data-item="{{subItem}}"
  14. bindtap="choose">
  15. {{subItem.name}}
  16. </view>
  17. </block>
  18. </view>
  19. </view>
  20. </view>
  21. </scroll-view>
  22. <view class="anchor-bar__wrp wx-flex" catchtouchstart='scrollTo' catchtouchmove='scrollTo' catchtouchend='removeTouching'>
  23. <view class="anchor-bar wx-flex__item">
  24. <view class="anchor-list">
  25. <block wx:for="{{alphabet}}" wx:key="*this" wx:for-item="alpha">
  26. <view class="anchor-item {{current == alpha ? ( touching ? 'selected tapped' : 'selected' ): ''}}" data-alpha="{{alpha}}">
  27. <view class="anchor-item__inner">{{alpha}}</view>
  28. <view class="anchor-item__pop">{{alpha}}</view>
  29. </view>
  30. </block>
  31. </view>
  32. </view>
  33. </view>