Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

evaluate-equity-item.vue 3.4KB

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