index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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-color">店小二</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. }
  60. }
  61. .evaluateWtapper .evaluateItem {
  62. background-color: #fff;
  63. padding-bottom: 25rpx;
  64. }
  65. .evaluateWtapper .evaluateItem~.evaluateItem {
  66. border-top: 1rpx solid #f5f5f5;
  67. }
  68. .evaluateWtapper .evaluateItem .pic-text {
  69. font-size: 26rpx;
  70. color: #282828;
  71. height: 95rpx;
  72. padding: 0 30rpx;
  73. }
  74. .evaluateWtapper .evaluateItem .pic-text .pictrue {
  75. width: 56rpx;
  76. height: 56rpx;
  77. margin-right: 20rpx;
  78. }
  79. .evaluateWtapper .evaluateItem .pic-text .pictrue image {
  80. width: 100%;
  81. height: 100%;
  82. border-radius: 50%;
  83. }
  84. .evaluateWtapper .evaluateItem .pic-text .name {
  85. max-width: 450rpx;
  86. }
  87. .evaluateWtapper .evaluateItem .time {
  88. font-size: 24rpx;
  89. color: #82848f;
  90. padding: 0 30rpx;
  91. }
  92. .evaluateWtapper .evaluateItem .evaluate-infor {
  93. font-size: 28rpx;
  94. color: #282828;
  95. margin-top: 19rpx;
  96. padding: 0 30rpx;
  97. }
  98. .evaluateWtapper .evaluateItem .imgList {
  99. padding: 0 30rpx 0 15rpx;
  100. margin-top: 25rpx;
  101. }
  102. .evaluateWtapper .evaluateItem .imgList .pictrue {
  103. width: 156rpx;
  104. height: 156rpx;
  105. margin: 0 0 15rpx 15rpx;
  106. }
  107. .evaluateWtapper .evaluateItem .imgList .pictrue image {
  108. width: 100%;
  109. height: 100%;
  110. background-color: #f7f7f7;
  111. }
  112. .evaluateWtapper .evaluateItem .reply {
  113. font-size: 26rpx;
  114. color: #454545;
  115. background-color: #f7f7f7;
  116. border-radius: 5rpx;
  117. margin: 20rpx 30rpx 0 30rpx;
  118. padding: 20rpx;
  119. position: relative;
  120. }
  121. .evaluateWtapper .evaluateItem .reply::before {
  122. content: "";
  123. width: 0;
  124. height: 0;
  125. border-left: 20rpx solid transparent;
  126. border-right: 20rpx solid transparent;
  127. border-bottom: 30rpx solid #f7f7f7;
  128. position: absolute;
  129. top: -14rpx;
  130. left: 40rpx;
  131. }
  132. </style>