home.wxml 2.5 KB

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