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-business-item.vue 2.6KB

1 jaar geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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}user/icon-avatar.png`"></image>
  7. <text>{{item.customerName}}</text>
  8. </view> -->
  9. <view class="time">{{item.insertTime}}</view>
  10. </view>
  11. <view class="center">
  12. <!-- <view class="type">这里是业务办理</view> -->
  13. <view class="content">{{item.suggestion}}</view>
  14. </view>
  15. <view class="bottom">
  16. <view class="text good" v-if="item.evaluate === '好评'">好评</view>
  17. <view class="text middle" v-if="item.evaluate === '中评'">中评</view>
  18. <view class="text bad" v-if="item.evaluate === '差评'">差评</view>
  19. <view class="score">{{item.score}}分</view>
  20. </view>
  21. </view>
  22. </template>
  23. <script setup lang="ts">
  24. defineProps({
  25. //数据列表
  26. dataList:{
  27. type:Array,
  28. default:()=>{
  29. return [];
  30. }
  31. }
  32. })
  33. </script>
  34. <style lang="scss" scoped>
  35. .item-box{
  36. background: #ffffff;
  37. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223,223,223,0.8);
  38. border-radius: 20rpx;
  39. margin-bottom: 30rpx;
  40. .top{
  41. min-height: 88rpx;
  42. padding: 0rpx 30rpx;
  43. border-bottom: 1rpx solid #DCDCDC;
  44. display: flex;
  45. justify-content: flex-end;
  46. image{
  47. width: 50rpx;
  48. height: 50rpx;
  49. background: #B2EEE1;
  50. border-radius: 50%;
  51. }
  52. text{
  53. margin-left: 20rpx;
  54. font-size: 30rpx;
  55. font-family: Noto Sans S Chinese;
  56. font-weight: 400;
  57. color: #333333;
  58. }
  59. .time{
  60. font-size: 26rpx;
  61. color: #333333;
  62. text-align: right;
  63. }
  64. }
  65. .center{
  66. padding: 28rpx 30rpx;
  67. border-bottom: 1rpx solid #DCDCDC;
  68. .type{
  69. font-size: 26rpx;
  70. font-family: Noto Sans S Chinese;
  71. font-weight: 400;
  72. color: #999999;
  73. }
  74. .content{
  75. ffont-size: 26rpx;
  76. font-family: Noto Sans S Chinese;
  77. font-weight: 400;
  78. color: #333333;
  79. line-height: 46rpx;
  80. margin-top: 30rpx;
  81. }
  82. }
  83. .bottom{
  84. padding: 15rpx 30rpx;
  85. text-align: right;
  86. display: flex;
  87. justify-content: flex-end;
  88. align-items: center;
  89. .text{
  90. width: 97rpx;
  91. height: 36rpx;
  92. line-height: 36rpx;
  93. border-radius: 18rpx;
  94. font-size: 26rpx;
  95. text-align: center;
  96. }
  97. .good{
  98. background: #FBD9D0;
  99. color: #DD523E;
  100. }
  101. .middle{
  102. background: #FBECD0;
  103. color: #FF9600;
  104. }
  105. .bad{
  106. background: #E1E1E1;
  107. color: #999999;
  108. }
  109. .score{
  110. font-size: 26rpx;
  111. font-family: Noto Sans S Chinese;
  112. font-weight: 400;
  113. color: #333333;
  114. margin-left: 17rpx;
  115. }
  116. }
  117. }
  118. </style>