酒店桌布为微信小程序
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.

131 lines
2.4 KiB

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