nav.wxml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <custom style="height:{{CustomBar}}px;">
  2. <bar class="fixed gradual-pink" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
  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. <view wx:for="{{10}}" wx:key wx:if="{{index==TabCur}}" class='bg-grey padding margin text-center'>
  9. Tab{{index}}
  10. </view>
  11. <bar class="solid-bottom">
  12. <view class='action'>
  13. <text class='icon-titles text-orange '></text> 默认
  14. </view>
  15. </bar>
  16. <scroll-view scroll-x class="bg-white nav" scroll-with-animation scroll-left="{{scrollLeft}}">
  17. <item class="{{index==TabCur?'text-green cur':''}}" wx:for="{{10}}" wx:key bindtap='tabSelect' data-id="{{index}}">
  18. Tab{{index}}
  19. </item>
  20. </scroll-view>
  21. <bar class="margin-top solid-bottom">
  22. <view class='action'>
  23. <text class='icon-title text-orange'></text> 居中
  24. </view>
  25. </bar>
  26. <scroll-view scroll-x class="bg-white nav text-center">
  27. <item class="{{index==TabCur?'text-blue cur':''}}" wx:for="{{3}}" wx:key bindtap='tabSelect' data-id="{{index}}">
  28. Tab{{index}}
  29. </item>
  30. </scroll-view>
  31. <bar class="margin-top solid-bottom">
  32. <view class='action'>
  33. <text class='icon-title text-orange'></text> 平分
  34. </view>
  35. </bar>
  36. <scroll-view scroll-x class="bg-white nav">
  37. <view class='flex text-center'>
  38. <item class="flex-sub {{index==TabCur?'text-orange cur':''}}" wx:for="{{4}}" wx:key bindtap='tabSelect' data-id="{{index}}">
  39. Tab{{index}}
  40. </item>
  41. </view>
  42. </scroll-view>
  43. <bar class="margin-top solid-bottom">
  44. <view class='action'>
  45. <text class='icon-title text-orange'></text> 背景
  46. </view>
  47. </bar>
  48. <scroll-view scroll-x class="bg-red nav text-center">
  49. <item class="{{index==TabCur?'text-white cur':''}}" wx:for="{{3}}" wx:key bindtap='tabSelect' data-id="{{index}}">
  50. Tab{{index}}
  51. </item>
  52. </scroll-view>
  53. <bar class="margin-top solid-bottom">
  54. <view class='action'>
  55. <text class='icon-title text-orange'></text> 图标
  56. </view>
  57. </bar>
  58. <scroll-view scroll-x class="bg-green nav text-center">
  59. <item class="{{0==TabCur?'text-white cur':''}}" bindtap='tabSelect' data-id="0">
  60. <text class='icon-camerafill'></text> 数码
  61. </item>
  62. <item class="{{1==TabCur?'text-white cur':''}}" bindtap='tabSelect' data-id="1">
  63. <text class='icon-upstagefill'></text> 排行榜
  64. </item>
  65. <item class="{{2==TabCur?'text-white cur':''}}" bindtap='tabSelect' data-id="2">
  66. <text class='icon-clothesfill'></text> 皮肤
  67. </item>
  68. </scroll-view>
  69. <bar class="margin-top solid-bottom">
  70. <view class='action'>
  71. <text class='icon-title text-orange'></text> 定位
  72. </view>
  73. </bar>
  74. <scroll-view scroll-x class="bg-green nav text-center">
  75. <item class="{{0==TabCur?'text-white cur':''}}" bindtap='tabSelect' data-id="0">
  76. <text class='icon-camerafill'></text> 数码
  77. </item>
  78. <item class="{{1==TabCur?'text-white cur':''}}" bindtap='tabSelect' data-id="1">
  79. <text class='icon-upstagefill'></text> 排行榜
  80. </item>
  81. <item class="{{2==TabCur?'text-white cur':''}}" bindtap='tabSelect' data-id="2">
  82. <text class='icon-clothesfill'></text> 皮肤
  83. </item>
  84. </scroll-view>