userEvaluation.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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 v-if="item.isLogoff === true" class="name line1">(已注销)</view>
  15. <view class="start" :class="'star' + item.star"></view>
  16. </view>
  17. <view class="time">{{ item.createTime }}</view>
  18. </view>
  19. <view class="sku">规格:{{ item.sku?item.sku:'无' }}</view>
  20. </view>
  21. <view class="evaluate-infor">{{ item.comment }}</view>
  22. <view class="imgList acea-row" v-if="item.pics && item.pics.length && item.pics[0]">
  23. <view class="pictrue" v-for="(itemn, indexn) in item.pics" :key="indexn">
  24. <image :src="itemn" class="image" @click='getpreviewImage(indexw, indexn)'></image>
  25. </view>
  26. </view>
  27. <view class="reply" v-if="item.merchantReplyContent">
  28. <text class="font_color">店小二</text>:{{ item.merchantReplyContent }}
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. // +----------------------------------------------------------------------
  37. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  38. // +----------------------------------------------------------------------
  39. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  40. // +----------------------------------------------------------------------
  41. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  42. // +----------------------------------------------------------------------
  43. // | Author: CRMEB Team <admin@crmeb.com>
  44. // +----------------------------------------------------------------------
  45. export default {
  46. props: {
  47. reply: {
  48. type: Array,
  49. default: () => []
  50. }
  51. },
  52. data: function() {
  53. return {};
  54. },
  55. methods: {
  56. getpreviewImage: function(indexw, indexn) {
  57. uni.previewImage({
  58. urls: this.reply[indexw].pics,
  59. current: this.reply[indexw].pics[indexn]
  60. });
  61. }
  62. }
  63. }
  64. </script>
  65. <style scoped lang='scss'>
  66. .evaluateWtapper .evaluateItem {
  67. background-color: #fff;
  68. padding: 24rpx;
  69. border-bottom-left-radius: 14rpx;
  70. border-bottom-right-radius: 14rpx;
  71. }
  72. .evaluateWtapper .evaluateItem~.evaluateItem {
  73. border-top: 1rpx solid #f5f5f5;
  74. }
  75. .evaluateWtapper .evaluateItem .pic-text {
  76. font-size: 26rpx;
  77. color: #282828;
  78. .content{
  79. width: 84%;
  80. margin-left: 20rpx;
  81. }
  82. }
  83. .evaluateWtapper .evaluateItem .pic-text .pictrue {
  84. width: 62rpx;
  85. height: 62rpx;
  86. }
  87. .evaluateWtapper .evaluateItem .pic-text .pictrue image {
  88. width: 100%;
  89. height: 100%;
  90. border-radius: 50%;
  91. }
  92. .evaluateWtapper .evaluateItem .pic-text .name {
  93. max-width: 450rpx;
  94. }
  95. .evaluateWtapper .evaluateItem .time {
  96. font-size: 24rpx;
  97. color: #999999;
  98. }
  99. .sku{
  100. font-size: 24rpx;
  101. color: #999999;
  102. margin: 10rpx 0;
  103. }
  104. .evaluateWtapper .evaluateItem .evaluate-infor {
  105. font-size: 28rpx;
  106. color: #333;
  107. margin-bottom: 14rpx;
  108. }
  109. .evaluateWtapper .evaluateItem .imgList {/*
  110. padding: 0 24rpx;
  111. margin-top: 16rpx; */
  112. }
  113. .evaluateWtapper .evaluateItem .imgList .pictrue {
  114. width: 102rpx;
  115. height: 102rpx;
  116. margin-right: 14rpx;
  117. border-radius: 14rpx;
  118. margin-bottom: 16rpx;
  119. /* margin: 0 0 15rpx 15rpx; */
  120. }
  121. .evaluateWtapper .evaluateItem .imgList .pictrue image {
  122. width: 100%;
  123. height: 100%;
  124. background-color: #f7f7f7;
  125. border-radius: 14rpx;
  126. }
  127. .evaluateWtapper .evaluateItem .reply {
  128. font-size: 26rpx;
  129. color: #454545;
  130. background-color: #f7f7f7;
  131. border-radius: 14rpx;
  132. margin: 20rpx 30rpx 0 0rpx;
  133. padding: 20rpx;
  134. position: relative;
  135. }
  136. .evaluateWtapper .evaluateItem .reply::before {
  137. content: "";
  138. width: 0;
  139. height: 0;
  140. border-left: 20rpx solid transparent;
  141. border-right: 20rpx solid transparent;
  142. border-bottom: 30rpx solid #f7f7f7;
  143. position: absolute;
  144. top: -14rpx;
  145. left: 40rpx;
  146. }
  147. .font_color{
  148. @include main_color(theme);
  149. }
  150. </style>