evaluateItem.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <view class="">
  3. <view class="item" v-for="item of 3">
  4. <view class="item-top">
  5. <view class="top-l">
  6. <img class="img" src="@/static/QR57a.jpg" alt="">
  7. <view class="l-text">
  8. <p class="l-name">匿名用户</p>
  9. <p class="l-time">2023-11-05</p>
  10. </view>
  11. </view>
  12. <view class="top-r">
  13. <p class="r-text">更多</p>
  14. <u-icon name="arrow-right" color="#9B9B9B" size="18"></u-icon>
  15. </view>
  16. </view>
  17. <view class="rate-box">
  18. <span class="rate-text">评分:</span>
  19. <u-rate :count="count" v-model="value"></u-rate>
  20. </view>
  21. <view class="content-box">
  22. <p class="content-text">服务非常好服务非常好服务非常好服务非常好服务非常好服务非常好服务非常好</p>
  23. <view class="content-img-box">
  24. <img class="content-img" src="@/static/QR57a.jpg" alt="" v-for="item of 5">
  25. </view>
  26. </view>
  27. <view class="btn-box">
  28. <view class="btn" @click="handlerSkipBack">回复</view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default{
  35. data(){
  36. return{
  37. count: 5,
  38. value: 2,
  39. }
  40. },
  41. methods:{
  42. // 点击跳转到回复
  43. handlerSkipBack(){
  44. uni.navigateTo({
  45. url:'/pages/tabbar/store/evaluateBack'
  46. })
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .item{
  53. background-color: #fff;
  54. padding: 20rpx;
  55. margin: 10rpx 0;
  56. .item-top{
  57. display: flex;
  58. justify-content: space-between;
  59. align-items: center;
  60. .top-l{
  61. display: flex;
  62. align-items: center;
  63. .img{
  64. width: 120rpx;
  65. height: 120rpx;
  66. border-radius: 50%;
  67. }
  68. .l-text{
  69. .l-name{
  70. font-size: 28rpx;
  71. color: #777777;
  72. }
  73. .l-time{
  74. font-size: 24rpx;
  75. color: #777777;
  76. }
  77. }
  78. }
  79. .top-r{
  80. display: flex;
  81. .r-text{
  82. font-size: 26rpx;
  83. color: #777777;
  84. }
  85. }
  86. }
  87. .rate-box{
  88. display: flex;
  89. font-size: 28rpx;
  90. color: #777777;
  91. margin: 20rpx;
  92. .rate-text{
  93. margin-right: 10rpx;
  94. }
  95. }
  96. .content-box{
  97. .content-text{
  98. }
  99. .content-img-box{
  100. display: grid;
  101. grid-template-columns: 22% 22% 22% 22%;
  102. justify-content: space-around;
  103. .content-img{
  104. width: 180rpx;
  105. height: 180rpx;
  106. }
  107. }
  108. }
  109. .btn-box{
  110. display: flex;
  111. justify-content: flex-end;
  112. .btn{
  113. background-color: #fff;
  114. border: 2rpx solid #F56C6C;
  115. color: #F56C6C;
  116. text-align: center;
  117. width: 120rpx;
  118. font-size: 26rpx;
  119. padding: 10rpx 0;
  120. border-radius: 20rpx;
  121. }
  122. }
  123. }
  124. </style>