index.wxml 1.4 KB

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