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-equity-item.vue 3.3KB

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