index.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <view class="evaluateWtapper">
  3. <view class="evaluateItem" v-for="(item, indexw) in reply" :key="indexw">
  4. <view class="pic-text acea-row row-middle">
  5. <view class="pictrue">
  6. <image :src="item.avatar"></image>
  7. </view>
  8. <view class="acea-row row-middle">
  9. <view class="acea-row row-middle" style="margin-right: 15rpx;">
  10. <view class="name line1">{{ item.nickname }}</view>
  11. <view class="vipImg" v-if="item.is_money_level>0"><image src="../../static/images/svip.gif"></image></view>
  12. </view>
  13. <view class="start" :class="'star' + item.star"></view>
  14. </view>
  15. </view>
  16. <view class="time">{{ item.add_time }} {{ item.suk }}</view>
  17. <view class="evaluate-infor">{{ item.comment }}</view>
  18. <view class="imgList acea-row">
  19. <view class="pictrue" v-for="(itemn, indexn) in item.pics" :key="indexn">
  20. <image :src="itemn" class="image" @click='getpreviewImage(indexw, indexn)'></image>
  21. </view>
  22. </view>
  23. <view class="reply" v-if="item.merchant_reply_content">
  24. <text class="font-num">{{$t(`店小二`)}}</text>:{{
  25. item.merchant_reply_content
  26. }}
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. props: {
  34. reply: {
  35. type: Array,
  36. default: () => []
  37. }
  38. },
  39. data: function() {
  40. return {};
  41. },
  42. methods: {
  43. getpreviewImage: function(indexw, indexn) {
  44. uni.previewImage({
  45. urls: this.reply[indexw].pics,
  46. current: this.reply[indexw].pics[indexn]
  47. });
  48. }
  49. }
  50. }
  51. </script>
  52. <style scoped lang='scss'>
  53. .vipImg{
  54. width: 68rpx;
  55. height: 27rpx;
  56. image{
  57. width: 100%;
  58. height: 100%;
  59. margin-left: 10rpx;
  60. }
  61. }
  62. .evaluateWtapper .evaluateItem {
  63. background-color: #fff;
  64. padding-bottom: 25rpx;
  65. }
  66. .evaluateWtapper .evaluateItem~.evaluateItem {
  67. border-top: 1rpx solid #f5f5f5;
  68. }
  69. .evaluateWtapper .evaluateItem .pic-text {
  70. font-size: 26rpx;
  71. color: #282828;
  72. height: 95rpx;
  73. padding: 0 30rpx;
  74. }
  75. .evaluateWtapper .evaluateItem .pic-text .pictrue {
  76. width: 60rpx;
  77. height: 60rpx;
  78. margin-right: 20rpx;
  79. border-radius: 50%;
  80. }
  81. .evaluateWtapper .evaluateItem .pic-text .pictrue image {
  82. width: 100%;
  83. height: 100%;
  84. border-radius: 50%;
  85. }
  86. .evaluateWtapper .evaluateItem .pic-text .name {
  87. max-width: 450rpx;
  88. font-size: 30rpx;
  89. }
  90. .evaluateWtapper .evaluateItem .time {
  91. font-size: 24rpx;
  92. color: #82848f;
  93. padding: 0 30rpx;
  94. }
  95. .evaluateWtapper .evaluateItem .evaluate-infor {
  96. font-size: 28rpx;
  97. color: #282828;
  98. margin-top: 19rpx;
  99. padding: 0 30rpx;
  100. }
  101. .evaluateWtapper .evaluateItem .imgList {
  102. padding: 0 30rpx 0 15rpx;
  103. margin-top: 25rpx;
  104. }
  105. .evaluateWtapper .evaluateItem .imgList .pictrue {
  106. width: 156rpx;
  107. height: 156rpx;
  108. margin: 0 0 15rpx 15rpx;
  109. }
  110. .evaluateWtapper .evaluateItem .imgList .pictrue image {
  111. width: 100%;
  112. height: 100%;
  113. background-color: #f7f7f7;
  114. }
  115. .evaluateWtapper .evaluateItem .reply {
  116. font-size: 26rpx;
  117. color: #454545;
  118. background-color: #f7f7f7;
  119. border-radius: 5rpx;
  120. margin: 20rpx 30rpx 0 30rpx;
  121. padding: 20rpx;
  122. position: relative;
  123. }
  124. .evaluateWtapper .evaluateItem .reply::before {
  125. content: "";
  126. width: 0;
  127. height: 0;
  128. border-left: 20rpx solid transparent;
  129. border-right: 20rpx solid transparent;
  130. border-bottom: 30rpx solid #f7f7f7;
  131. position: absolute;
  132. top: -14rpx;
  133. left: 40rpx;
  134. }
  135. </style>