estimate.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <view class="eva-section" @click="navTo">
  3. <view class="e-header">
  4. <text class="tit">评价</text>
  5. <text>({{ list.replyCount }})</text>
  6. <!-- <text class="tip">好评率 {{ list.replyChance }}%</text> -->
  7. <text class="tip">查看全部评价</text>
  8. <text class="iconfont iconenter"></text>
  9. </view>
  10. <view class="eva-box">
  11. <image class="portrait" :src="reply.avatar" mode="aspectFill"></image>
  12. <view class="right">
  13. <text class="name">{{ reply.nickname }}</text>
  14. <text class="con">{{ reply.comment }}</text>
  15. <view class="con_box">
  16. <view class="con_image" v-for="item in reply.pics"><image :src="item"></image></view>
  17. </view>
  18. <view class="bot">
  19. <text class="attr"></text>
  20. <text class="stime">{{ reply.add_time }}</text>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. props: {
  29. list: {
  30. default: ''
  31. },
  32. reply: {
  33. default: ''
  34. },
  35. },
  36. data() {
  37. return {
  38. };
  39. },
  40. methods: {
  41. navTo() {
  42. this.$emit('navTo')
  43. }
  44. },
  45. };
  46. </script>
  47. <style lang="scss">
  48. /* 评价 */
  49. .eva-section {
  50. display: flex;
  51. flex-direction: column;
  52. padding: 20rpx 30rpx;
  53. background: #fff;
  54. margin-top: 16rpx;
  55. .e-header {
  56. display: flex;
  57. align-items: center;
  58. height: 70rpx;
  59. font-size: $font-sm + 2rpx;
  60. color: $font-color-light;
  61. .tit {
  62. font-size: $font-base + 2rpx;
  63. color: $font-color-dark;
  64. margin-right: 4rpx;
  65. }
  66. .tip {
  67. flex: 1;
  68. text-align: right;
  69. }
  70. .iconenter {
  71. margin-left: 10rpx;
  72. }
  73. }
  74. .eva-box {
  75. display: flex;
  76. padding: 20rpx 0;
  77. .portrait {
  78. flex-shrink: 0;
  79. width: 80rpx;
  80. height: 80rpx;
  81. border-radius: 100px;
  82. }
  83. .right {
  84. flex: 1;
  85. display: flex;
  86. flex-direction: column;
  87. font-size: $font-base;
  88. color: $font-color-base;
  89. padding-left: 26rpx;
  90. .con {
  91. font-size: $font-base;
  92. color: $font-color-dark;
  93. padding: 20rpx 0;
  94. }
  95. .bot {
  96. display: flex;
  97. justify-content: space-between;
  98. font-size: $font-sm;
  99. color: $font-color-light;
  100. }
  101. }
  102. }
  103. .con_image {
  104. width: 130rpx;
  105. height: 130rpx;
  106. display: inline-block;
  107. padding: 15rpx;
  108. image {
  109. width: 100%;
  110. height: 100%;
  111. }
  112. }
  113. }
  114. </style>