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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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" />
  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. // import {onLoad} from "@dcloudio/uni-app";
  32. // const tabClick = defineEmits(['tabClick'])
  33. defineProps({
  34. //数据列表
  35. dataList: {
  36. type: Array,
  37. default: () => {
  38. return [];
  39. }
  40. }
  41. })
  42. // onLoad(()=>{
  43. // console.log("tabClick",tabClick)
  44. // })
  45. </script>
  46. <style lang="scss" scoped>
  47. .item-box {
  48. background: #ffffff;
  49. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  50. border-radius: 20rpx;
  51. margin-bottom: 30rpx;
  52. .top {
  53. min-height: 88rpx;
  54. padding: 0rpx 30rpx;
  55. border-bottom: 1rpx solid #DCDCDC;
  56. image {
  57. width: 48rpx;
  58. height: 53rpx;
  59. }
  60. text {
  61. margin-left: 12rpx;
  62. font-size: 30rpx;
  63. font-family: Noto Sans S Chinese;
  64. font-weight: 400;
  65. color: #333333;
  66. }
  67. .time {
  68. font-size: 26rpx;
  69. color: #999999;
  70. text-align: right;
  71. }
  72. }
  73. .center {
  74. padding: 28rpx 30rpx;
  75. border-bottom: 1rpx solid #DCDCDC;
  76. image {
  77. width: 50rpx;
  78. height: 50rpx;
  79. background: #B2EEE1;
  80. border-radius: 50%;
  81. }
  82. text {
  83. font-size: 26rpx;
  84. font-size: 26rpx;
  85. font-family: Noto Sans S Chinese;
  86. font-weight: 400;
  87. color: #333333;
  88. margin-left: 22rpx;
  89. }
  90. .content {
  91. font-size: 26rpx;
  92. font-family: Noto Sans S Chinese;
  93. font-weight: 400;
  94. color: #333333;
  95. line-height: 46rpx;
  96. margin-top: 30rpx;
  97. }
  98. }
  99. .bottom {
  100. padding: 15rpx 30rpx;
  101. text-align: right;
  102. display: flex;
  103. justify-content: flex-end;
  104. align-items: center;
  105. .text {
  106. width: 97rpx;
  107. height: 36rpx;
  108. line-height: 36rpx;
  109. border-radius: 18rpx;
  110. font-size: 26rpx;
  111. text-align: center;
  112. }
  113. .good {
  114. background: #FBD9D0;
  115. color: #DD523E;
  116. }
  117. .middle {
  118. background: #FBECD0;
  119. color: #FF9600;
  120. }
  121. .bad {
  122. background: #E1E1E1;
  123. color: #999999;
  124. }
  125. .score {
  126. font-size: 26rpx;
  127. font-family: Noto Sans S Chinese;
  128. font-weight: 400;
  129. color: #333333;
  130. margin-left: 17rpx;
  131. }
  132. }
  133. }
  134. .images {
  135. margin-top: 40rpx;
  136. display: flex;
  137. flex-direction: row;
  138. flex-wrap: wrap;
  139. margin-right: -30rpx;
  140. margin-bottom: -30rpx;
  141. .img {
  142. width: 130rpx;
  143. height: 130rpx;
  144. margin-right: 30rpx;
  145. background: #F3F3F3;
  146. border-radius: 10rpx;
  147. margin-bottom: 30rpx;
  148. }
  149. }
  150. </style>