index.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!--index.wxml-->
  2. <view class="container">
  3. <view class="header">
  4. <view class="header-bg"></view>
  5. <view class="logo logo-at-left">
  6. <image src="/images/index/logo.png" class="logo-image"></image>
  7. </view>
  8. <view class="search-and-cart">
  9. <view class="search">
  10. <image src="/images/index/search.png" class="search-icon"></image>
  11. </view>
  12. <view class="cart">
  13. <image src="/images/index/cart.png" class="cart-icon"></image>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="banner">
  18. <view class="banner-item">
  19. banner
  20. </view>
  21. </view>
  22. <view class="hot-bar">
  23. <view class="hot-A">
  24. <image src="/images/index/hot-item.png" class="hot-image"></image>
  25. </view>
  26. <view class="hot-B">
  27. <image src="/images/index/hot-item.png" class="hot-image"></image>
  28. </view>
  29. <view class="hot-C">
  30. <image src="/images/index/hot-item.png" class="hot-image"></image>
  31. </view>
  32. </view>
  33. <view class="brand-bar">
  34. <view wx:for="{{brandList}}" wx:key="index" class="brand-item">
  35. <image src="/images/index/brand-item.png" class="brand-image"></image>
  36. <!-- <text class="brand-name">{{item.name}}</text> -->
  37. </view>
  38. </view>
  39. <view class="slider">
  40. <view class="slider-item">
  41. slider
  42. </view>
  43. </view>
  44. <view class="category">
  45. <view wx:for="{{categoryList}}" wx:key="index" class="category-item">
  46. <image src="/images/index/category-item.png" class="category-image"></image>
  47. </view>
  48. </view>
  49. <view class="goods">
  50. <view wx:for="{{goodsList}}" wx:key="index" class="goods-item">
  51. <view class="goods-image">
  52. <!-- <image src="{{item.imageUrl}}" class="goods-image"></image> -->
  53. </view>
  54. <view class="goods-info">
  55. <text class="goods-name">{{item.name}}</text>
  56. <text class="goods-price">{{item.price}}</text>
  57. </view>
  58. <view class="goods-action">
  59. <view class="favorite">
  60. <!-- <image src="{{item.favoriteIcon}}" class="favorite-icon"></image> -->
  61. fav
  62. </view>
  63. <button class="add-to-cart">Add to Cart</button>
  64. <button class="buy-now">Buy Now</button>
  65. </view>
  66. </view>
  67. </view>
  68. </view>