普兆健康管家前端代码仓库
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.

136 lines
3.0 KiB

  1. <template>
  2. <view class="card">
  3. <view class="flex header">
  4. <view class="avatar">
  5. <image class="avatar-img" :src="data.avatar"></image>
  6. </view>
  7. <view class="info">
  8. <view class="name">{{ data.userName }}</view>
  9. <view>{{ `${data.countDesc} | ${$dayjs(data.createTime).format('YYYY-MM-DD')}` }}</view>
  10. </view>
  11. </view>
  12. <view class="section content">{{ data.content }}</view>
  13. <view class="flex section imgs">
  14. <image class="img"
  15. v-for="(item, iIdx) in data.images"
  16. :key="iIdx" :src="item"
  17. mode="scaleToFill"
  18. ></image>
  19. </view>
  20. <view class="section score">
  21. <view class="flex score-item">
  22. <view class="score-item-label">产品服务度</view>
  23. <uv-rate :value="data.productServeScore" size="48rpx" gutter="16rpx" activeColor="#F7BA1E" :allowHalf="true" :minCount="0.5" readonly></uv-rate>
  24. </view>
  25. <view class="flex score-item">
  26. <view class="score-item-label">问卷体验</view>
  27. <uv-rate :value="data.questionExperienceScore" size="48rpx" gutter="16rpx" activeColor="#F7BA1E" :allowHalf="true" :minCount="0.5" readonly></uv-rate>
  28. </view>
  29. <view class="flex score-item">
  30. <view class="score-item-label">物流速度</view>
  31. <uv-rate :value="data.deliverySpeedScore" size="48rpx" gutter="16rpx" activeColor="#F7BA1E" :allowHalf="true" :minCount="0.5" readonly></uv-rate>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. props: {
  39. data: {
  40. type: Object,
  41. default() {
  42. return {}
  43. }
  44. },
  45. }
  46. }
  47. </script>
  48. <style scoped lang="scss">
  49. .card {
  50. width: 100%;
  51. padding: 32rpx;
  52. box-sizing: border-box;
  53. background: #FAFAFF;
  54. border: 2rpx solid #FFFFFF;
  55. border-radius: 32rpx;
  56. }
  57. .header {
  58. justify-content: flex-start;
  59. column-gap: 24rpx;
  60. .avatar {
  61. width: 100rpx;
  62. height: 100rpx;
  63. border: 4rpx solid #FFFFFF;
  64. border-radius: 50%;
  65. overflow: hidden;
  66. &-img {
  67. width: 100%;
  68. height: 100%;
  69. }
  70. }
  71. .info {
  72. font-family: PingFang SC;
  73. font-weight: 400;
  74. font-size: 24rpx;
  75. line-height: 1.5;
  76. color: #8B8B8B;
  77. .name {
  78. font-weight: 600;
  79. font-size: 36rpx;
  80. line-height: 1.2;
  81. color: #252545;
  82. margin-bottom: 8rpx;
  83. }
  84. }
  85. }
  86. .section {
  87. margin-top: 24rpx;
  88. }
  89. .content {
  90. font-family: PingFang SC;
  91. font-weight: 400;
  92. font-size: 32rpx;
  93. line-height: 1.4;
  94. color: #181818;
  95. }
  96. .imgs {
  97. justify-content: flex-start;
  98. flex-wrap: wrap;
  99. gap: 24rpx;
  100. .img {
  101. width: 190rpx;
  102. height: 190rpx;
  103. }
  104. }
  105. .score {
  106. &-item {
  107. padding: 12rpx 0;
  108. justify-content: space-between;
  109. & + & {
  110. margin-top: 4rpx;
  111. }
  112. &-label {
  113. font-family: PingFang SC;
  114. font-weight: 400;
  115. font-size: 26rpx;
  116. line-height: 1.4;
  117. color: #181818;
  118. }
  119. }
  120. }
  121. </style>