eva-item.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view class="eva-wrap flex-col">
  3. <view class="flex-row justify-between">
  4. <view class="flex-row">
  5. <image
  6. src="/static/temp/pro.png"
  7. class="image_16 image_22"
  8. mode="aspectFill"
  9. />
  10. <view class="flex-col items-start group_30">
  11. <text class="text_20 clamp">甜品大师姐</text>
  12. <text class="text_21">2022.07.13 10:56</text>
  13. </view>
  14. </view>
  15. <view class="stars align-center">
  16. <image
  17. src="/static/mang_star.png"
  18. class="image_10"
  19. v-for="(item,idx) in 5"
  20. :key="idx"
  21. />
  22. </view>
  23. </view>
  24. <view class="flex-col group_31">
  25. <view class="group_32">
  26. <text class="text_22">这是我吃过的最好吃的一款,强烈推荐,口感细腻,想象不到的美味。太好吃了。</text>
  27. </view>
  28. <view class="imgs-wrap align-center">
  29. <image
  30. src="/static/temp/pro.png"
  31. class="image_19 image_24"
  32. mode="aspectFill"
  33. v-for="(item,idx) in 6" :key="idx"
  34. @tap="previewImg(idx)"
  35. />
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {};
  44. },
  45. props: {
  46. //请求数据
  47. info:{
  48. type:Object,
  49. default:()=>({})
  50. },
  51. },
  52. methods: {
  53. previewImg(idx){
  54. let url = [];
  55. this.$tools.previewImg(url)
  56. }
  57. }
  58. };
  59. </script>
  60. <style lang="scss" scoped>
  61. .eva-wrap {
  62. padding: 37rpx 33rpx 40rpx;
  63. .image_16 {
  64. width: 54rpx;
  65. height: 54rpx;
  66. border-radius: 54rpx;
  67. }
  68. .image_22 {
  69. margin-top: 4rpx;
  70. }
  71. .group_30 {
  72. margin-left: 20rpx;
  73. }
  74. .text_20 {
  75. color: #333333;
  76. font-size: 30rpx;
  77. font-family: PingFang;
  78. letter-spacing: 1.2rpx;
  79. max-width: 300rpx;
  80. }
  81. .text_21 {
  82. margin-top: 15rpx;
  83. color: #999999;
  84. font-size: 20rpx;
  85. font-family: PingFang;
  86. }
  87. .image_10 {
  88. width: 28rpx;
  89. height: 28rpx;
  90. margin-left: 4rpx;
  91. }
  92. .group_31 {
  93. margin: 13.5rpx 24rpx 0 7rpx;
  94. }
  95. .group_32 {
  96. line-height: 37rpx;
  97. }
  98. .text_22 {
  99. color: #333333;
  100. font-size: 26rpx;
  101. font-family: PingFang;
  102. line-height: 40rpx;
  103. letter-spacing: 1.04rpx;
  104. }
  105. .imgs-wrap{
  106. flex-wrap: wrap;
  107. .image_19 {
  108. width: 180rpx;
  109. height: 180rpx;
  110. margin-right: 20rpx;
  111. border-radius: 10rpx;
  112. margin-bottom: 20rpx;
  113. // &:nth-child(4n){
  114. // margin-right: 0;
  115. // }
  116. }
  117. .image_24 {
  118. margin-top: 16.5rpx;
  119. align-self: flex-start;
  120. }
  121. }
  122. }
  123. </style>