estimate.vue 2.1 KB

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