indexes.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <custom style="height:{{CustomBar}}px;">
  2. <bar class="fixed none-bg text-white bg-img" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;background-image:url(https://image.weilanwl.com/color2.0/plugin/sylb2244.jpg);">
  3. <navigator class='action' open-type="navigateBack" delta="1" hover-class="none">
  4. <text class='icon-back'></text> 索引
  5. </navigator>
  6. </bar>
  7. </custom>
  8. <bar class="search fixed" style="top:{{CustomBar}}px;">
  9. <view class='search-form round'>
  10. <text class="icon-search"></text>
  11. <input type="text" placeholder="输入搜索的关键词" confirm-type="search"></input>
  12. </view>
  13. <view class='action'>
  14. <button class='gradual-green shadow-blur round'>搜索</button>
  15. </view>
  16. </bar>
  17. <scroll-view scroll-y class="indexes" scroll-into-view="indexes-{{listCurID}}" style='height:calc(100vh - {{CustomBar}}px - 50px)' scroll-with-animation="true" enable-back-to-top="true">
  18. <block wx:for="{{list}}" wx:key>
  19. <view class='padding indexItem-{{list[index]}}' id="indexes-{{list[index]}}" data-index="{{list[index]}}">{{list[index]}}</view>
  20. <list class="menu menu-avatar no-padding">
  21. <item wx:for="{{2}}" wx:key wx:for-index="sub">
  22. <avatar class="round lg">{{list[index]}}</avatar>
  23. <view class='content'>
  24. <view class='text-grey'>{{list[index]}}<text class='text-abc'>{{list[sub]}}</text>君</view>
  25. <view class='text-gray text-sm'>
  26. 有{{sub+2}}个主子需要伺候
  27. </view>
  28. </view>
  29. </item>
  30. </list>
  31. </block>
  32. </scroll-view>
  33. <view class='indexBar' style='height:calc(100vh - {{CustomBar}}px - 50px)'>
  34. <view class='indexBar-box' bindtouchstart="tStart" bindtouchend="tEnd" catchtouchmove="tMove">
  35. <view class="indexBar-item " wx:for="{{list}}" wx:key id='{{index}}' bindtouchstart="getCur" bindtouchend="setCur" >{{list[index]}}</view>
  36. </view>
  37. </view>
  38. <!--选择显示-->
  39. <view hidden="{{hidden}}" class="indexToast">
  40. {{listCur}}
  41. </view>