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.

155 lines
3.4 KiB

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