eva-item.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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 class="review-content flex-row" v-if="true">
  38. <view class="key">回复:</view>
  39. <view class="val">谢谢您的评价,我们会继续努力谢谢您的评价,我们会继续努力谢谢您的评价,我们会继续努力</view>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {};
  48. },
  49. props: {
  50. //请求数据
  51. info:{
  52. type:Object,
  53. default:()=>({})
  54. },
  55. },
  56. methods: {
  57. previewImg(idx){
  58. let url = [];
  59. this.$tools.previewImg(url)
  60. }
  61. }
  62. };
  63. </script>
  64. <style lang="scss" scoped>
  65. .eva-wrap {
  66. padding: 37rpx 33rpx 20rpx;
  67. border-bottom: 2rpx solid #eee;
  68. .review-content{
  69. margin-top: 10rpx;
  70. color:$base-color;
  71. font-size: 26rpx;
  72. .key{
  73. margin-right: 10rpx;
  74. height: 36rpx;
  75. line-height: 36rpx;
  76. display: inline-block;
  77. flex-shrink: 0;
  78. }
  79. .val{
  80. line-height: 36rpx;
  81. display: inline-block;
  82. word-break: break-all;
  83. text-align: justify;
  84. }
  85. }
  86. .image_16 {
  87. width: 54rpx;
  88. height: 54rpx;
  89. border-radius: 54rpx;
  90. }
  91. .image_22 {
  92. margin-top: 4rpx;
  93. }
  94. .group_30 {
  95. margin-left: 20rpx;
  96. }
  97. .text_20 {
  98. color: #333333;
  99. font-size: 30rpx;
  100. font-family: PingFang;
  101. letter-spacing: 1.2rpx;
  102. max-width: 300rpx;
  103. }
  104. .text_21 {
  105. margin-top: 15rpx;
  106. color: #999999;
  107. font-size: 20rpx;
  108. font-family: PingFang;
  109. }
  110. .image_10 {
  111. width: 28rpx;
  112. height: 28rpx;
  113. margin-left: 4rpx;
  114. }
  115. .group_31 {
  116. margin: 13.5rpx 24rpx 0 7rpx;
  117. }
  118. .group_32 {
  119. line-height: 37rpx;
  120. }
  121. .text_22 {
  122. color: #333333;
  123. font-size: 26rpx;
  124. font-family: PingFang;
  125. line-height: 40rpx;
  126. letter-spacing: 1.04rpx;
  127. }
  128. .imgs-wrap{
  129. flex-wrap: wrap;
  130. .image_19 {
  131. width: 180rpx;
  132. height: 180rpx;
  133. margin-right: 20rpx;
  134. border-radius: 10rpx;
  135. margin-bottom: 20rpx;
  136. // &:nth-child(4n){
  137. // margin-right: 0;
  138. // }
  139. }
  140. .image_24 {
  141. margin-top: 16.5rpx;
  142. align-self: flex-start;
  143. }
  144. }
  145. }
  146. </style>