铝交易,微信公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
2.8 KiB

9 months ago
9 months ago
9 months ago
9 months ago
  1. <template>
  2. <view class="list">
  3. <view class="item"
  4. v-for="(item, index) in 10"
  5. @click="$utils.navigateTo('/pages_order/product/productDetail?id=123')"
  6. :key="index">
  7. <image
  8. class="image"
  9. src="https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg" mode=""></image>
  10. <view class="info">
  11. <view class="title">
  12. 铝制品
  13. </view>
  14. <view class="price">
  15. <text>58</text>
  16. /
  17. </view>
  18. <!--<view class="favorable">-->
  19. <!-- <view class="t">-->
  20. <!-- 限时优惠-->
  21. <!-- </view>-->
  22. <!-- <view class="p">-->
  23. <!-- 48-->
  24. <!-- </view>-->
  25. <!--</view>-->
  26. <view class="num">
  27. 最多批发*快速下单
  28. </view>
  29. </view>
  30. <view class="btn">
  31. <view @click="immediatePurchase(item)" class="change">
  32. 立即采购
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. name: "productList",
  41. data() {
  42. return {};
  43. },
  44. methods: {
  45. // 立即购买
  46. immediatePurchase(item) {
  47. }
  48. },
  49. }
  50. </script>
  51. <style scoped lang="scss">
  52. .list {
  53. display: flex;
  54. justify-content: center;
  55. flex-wrap: wrap;
  56. .item {
  57. position: relative;
  58. width: 300rpx;
  59. padding: 20rpx;
  60. background-color: #fff;
  61. border-radius: 20rpx;
  62. margin-top: 20rpx;
  63. &:nth-child(odd) {
  64. margin-right: 20rpx;
  65. }
  66. .image {
  67. width: 300rpx;
  68. height: 250rpx;
  69. border-radius: 20rpx;
  70. }
  71. .info {
  72. font-size: 26rpx;
  73. .title {
  74. font-size: 30rpx;
  75. color: #000;
  76. }
  77. .price {
  78. color: #D03F25;
  79. margin-top: 6rpx;
  80. text {
  81. font-size: 34rpx;
  82. font-weight: 900;
  83. }
  84. }
  85. .favorable {
  86. display: flex;
  87. background-image: url(/static/image/product/favorable.png);
  88. background-size: 100% 100%;
  89. width: fit-content;
  90. padding: 5rpx 10rpx;
  91. font-size: 18rpx;
  92. margin-top: 6rpx;
  93. .p {
  94. color: #fff;
  95. margin-left: 10rpx;
  96. }
  97. }
  98. .num {
  99. margin-top: 6rpx;
  100. font-size: 22rpx;
  101. color: #888;
  102. }
  103. }
  104. .btn {
  105. position: absolute;
  106. right: 0rpx;
  107. bottom:0rpx;
  108. padding: 10rpx;
  109. border-radius: 50%;
  110. //background-color: $uni-color;
  111. .change {
  112. display: flex;
  113. align-items: center;
  114. justify-content: center;
  115. border-radius: 40rpx;
  116. color: white;
  117. font-size: 22rpx;
  118. //margin: 20rpx 10rpx 0 0;
  119. padding: 10rpx 10rpx;
  120. background: #2b467a;
  121. border: 1px solid #757986;
  122. //margin-top: 20rpx;
  123. //border-radius: 40rpx;
  124. }
  125. }
  126. }
  127. }
  128. </style>