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.

evaluate-issue-item.vue 3.4KB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <!-- 发行评价列表 Item -->
  2. <template>
  3. <view class="item-box" v-for="(item,index) in dataList" :key="index">
  4. <view class="top as-layout-horizontal as-gravity-center-start">
  5. <view class="as-layout-horizontal as-gravity-center-start">
  6. <image :src="`${$imgUrl}order/icon-star-green.png`"></image>
  7. <text>{{item.productName}}</text>
  8. </view>
  9. <view class="time">{{item.insertTime}}</view>
  10. </view>
  11. <view class="center">
  12. <!-- <view class="as-layout-horizontal as-gravity-center-start">
  13. <image :src="`${$imgUrl}user/icon-avatar.png`"></image>
  14. <text>{{item.customerName}}</text>
  15. </view> -->
  16. <view class="content">{{item.suggestion}}</view>
  17. <view class="images" v-if="item.pictureUrlArr && item.pictureUrlArr.length>0">
  18. <image class="img" mode="aspectFill" v-for="(itemChild,index) in item.pictureUrlArr" :src="itemChild"
  19. :key="index" @click="see(index,item.pictureUrlArr)" />
  20. </view>
  21. </view>
  22. <view class="bottom">
  23. <view class="text good" v-if="item.evaluate === '好评'">好评</view>
  24. <view class="text middle" v-if="item.evaluate === '中评'">中评</view>
  25. <view class="text bad" v-if="item.evaluate === '差评'">差评</view>
  26. <view class="score">{{item.score}}分</view>
  27. </view>
  28. </view>
  29. </template>
  30. <script setup lang="ts">
  31. defineProps({
  32. //数据列表
  33. dataList: {
  34. type: Array,
  35. default: () => {
  36. return [];
  37. }
  38. }
  39. })
  40. const see = (index, pictureUrlArr) => {
  41. uni.previewImage({
  42. current: index,
  43. urls: pictureUrlArr,
  44. });
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .item-box {
  49. background: #ffffff;
  50. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  51. border-radius: 20rpx;
  52. margin-bottom: 30rpx;
  53. .top {
  54. min-height: 88rpx;
  55. padding: 0rpx 30rpx;
  56. border-bottom: 1rpx solid #DCDCDC;
  57. image {
  58. width: 48rpx;
  59. height: 53rpx;
  60. }
  61. text {
  62. margin-left: 12rpx;
  63. font-size: 30rpx;
  64. font-family: Noto Sans S Chinese;
  65. font-weight: 400;
  66. color: #333333;
  67. }
  68. .time {
  69. font-size: 26rpx;
  70. color: #999999;
  71. text-align: right;
  72. }
  73. }
  74. .center {
  75. padding: 28rpx 30rpx;
  76. border-bottom: 1rpx solid #DCDCDC;
  77. image {
  78. width: 50rpx;
  79. height: 50rpx;
  80. background: #B2EEE1;
  81. border-radius: 50%;
  82. }
  83. text {
  84. font-size: 26rpx;
  85. font-size: 26rpx;
  86. font-family: Noto Sans S Chinese;
  87. font-weight: 400;
  88. color: #333333;
  89. margin-left: 22rpx;
  90. }
  91. .content {
  92. font-size: 26rpx;
  93. font-family: Noto Sans S Chinese;
  94. font-weight: 400;
  95. color: #333333;
  96. line-height: 46rpx;
  97. margin-top: 30rpx;
  98. }
  99. }
  100. .bottom {
  101. padding: 15rpx 30rpx;
  102. text-align: right;
  103. display: flex;
  104. justify-content: flex-end;
  105. align-items: center;
  106. .text {
  107. width: 97rpx;
  108. height: 36rpx;
  109. line-height: 36rpx;
  110. border-radius: 18rpx;
  111. font-size: 26rpx;
  112. text-align: center;
  113. }
  114. .good {
  115. background: #FBD9D0;
  116. color: #DD523E;
  117. }
  118. .middle {
  119. background: #FBECD0;
  120. color: #FF9600;
  121. }
  122. .bad {
  123. background: #E1E1E1;
  124. color: #999999;
  125. }
  126. .score {
  127. font-size: 26rpx;
  128. font-family: Noto Sans S Chinese;
  129. font-weight: 400;
  130. color: #333333;
  131. margin-left: 17rpx;
  132. }
  133. }
  134. }
  135. .images {
  136. margin-top: 40rpx;
  137. display: flex;
  138. flex-direction: row;
  139. flex-wrap: wrap;
  140. margin-right: -30rpx;
  141. margin-bottom: -30rpx;
  142. .img {
  143. width: 130rpx;
  144. height: 130rpx;
  145. margin-right: 30rpx;
  146. background: #F3F3F3;
  147. border-radius: 10rpx;
  148. margin-bottom: 30rpx;
  149. }
  150. }
  151. </style>