home.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 class="nav" wx:for="{{headerNav}}" wx:key="index">
  53. <image src=""></image>
  54. <text>{{item.name}}</text>
  55. </view>
  56. </view>
  57. <!-- 核心入口:最新上架、VR看菜园、频道:村长说农货 -->
  58. <view class="marketing-wrap">
  59. <view>
  60. <image class="new-goods" src=""></image>
  61. <image class="vr" src=""></image>
  62. </view>
  63. <image class="media" src=""></image>
  64. </view>
  65. <view class="excellent-goods-title">优秀产品</view>
  66. <van-tabs
  67. class="my-van-tabs"
  68. active="{{ currentCategory }}"
  69. color="transparent"
  70. title-active-color="#FFFFFF"
  71. title-inactive-color="#858597"
  72. tab-class="my-tab-class"
  73. tab-active-class="my-tab-active-class">
  74. <van-tab
  75. title="{{item.name}}"
  76. wx:for="{{category}}"
  77. wx:key="id">
  78. </van-tab>
  79. </van-tabs>
  80. <!--瀑布流-->
  81. <view class="waterfall">
  82. <view class="waterfall-left">
  83. <goods-item/>
  84. </view>
  85. <view class="waterfall-right">
  86. <goods-item/>
  87. </view>
  88. </view>
  89. </view>