home.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <view class="home-wrapper">
  2. <view class="page-header-search">
  3. <view class="page-header-search-warp">
  4. <label for="header-search">
  5. <image src=""></image>
  6. </label>
  7. <input
  8. placeholder-class="header-search-placeholder"
  9. value=""
  10. placeholder="搜索"></input>
  11. </view>
  12. <view
  13. class="leaving-a-message"
  14. bind:tap="jumpLeavingAMessage">
  15. <image src=""></image>
  16. <view>8</view>
  17. </view>
  18. </view>
  19. <!-- 轮播 -->
  20. <view class="page-section">
  21. <swiper
  22. indicator-dots="{{true}}"
  23. indicator-color="rgba(151, 209, 79, 1)"
  24. indicator-active-color="#FFF"
  25. autoplay="{{false}}">
  26. <block
  27. wx:for="{{background}}"
  28. wx:key="*this">
  29. <swiper-item>
  30. <view class="swiper-item {{item}}">{{item}}</view>
  31. </swiper-item>
  32. </block>
  33. </swiper>
  34. </view>
  35. <!-- 消息通知 -->
  36. <view class="news-section">
  37. <image src=""></image>
  38. <swiper
  39. vertical="{{true}}"
  40. interval="{{2000}}"
  41. circular="{{true}}"
  42. autoplay="{{true}}">
  43. <block wx:for="{{txtlist}}" wx:key="*this">
  44. <swiper-item>
  45. <view class="swiper-item {{item}}">{{item}}</view>
  46. </swiper-item>
  47. </block>
  48. </swiper>
  49. </view>
  50. <!--顶部导航-->
  51. <view class="header-nav">
  52. <view
  53. class="nav"
  54. wx:for="{{headerNav}}"
  55. wx:key="index"
  56. data-item="{{item}}"
  57. bind:tap="handleNav">
  58. <image src=""></image>
  59. <text>{{item.name}}</text>
  60. </view>
  61. </view>
  62. <!-- 核心入口:最新上架、VR看菜园、频道:村长说农货 -->
  63. <view class="marketing-wrap">
  64. <view>
  65. <image class="new-goods" src=""></image>
  66. <image class="vr" src=""></image>
  67. </view>
  68. <image class="media" src=""></image>
  69. </view>
  70. <view class="excellent-goods-title">优秀产品</view>
  71. <van-tabs
  72. active="{{ currentCategory }}"
  73. color="transparent"
  74. title-active-color="#FFFFFF"
  75. title-inactive-color="#858597"
  76. tab-class="my-tab-class"
  77. tab-active-class="my-tab-active-class">
  78. <van-tab
  79. title="{{item.name}}"
  80. wx:for="{{category}}"
  81. wx:key="id"
  82. name="{{item.id}}">
  83. </van-tab>
  84. </van-tabs>
  85. <!--瀑布流-->
  86. <view class="waterfall">
  87. <view class="waterfall-left">
  88. <goods-item/>
  89. </view>
  90. <view class="waterfall-right">
  91. <goods-item/>
  92. </view>
  93. </view>
  94. </view>