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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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.staffName}}</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. image{
  45. width: 50rpx;
  46. height: 50rpx;
  47. background: #B2EEE1;
  48. border-radius: 50%;
  49. }
  50. text{
  51. margin-left: 20rpx;
  52. font-size: 30rpx;
  53. font-family: Noto Sans S Chinese;
  54. font-weight: 400;
  55. color: #333333;
  56. }
  57. .time{
  58. font-size: 26rpx;
  59. color: #333333;
  60. text-align: right;
  61. }
  62. }
  63. .center{
  64. padding: 28rpx 30rpx;
  65. border-bottom: 1rpx solid #DCDCDC;
  66. .type{
  67. font-size: 26rpx;
  68. font-family: Noto Sans S Chinese;
  69. font-weight: 400;
  70. color: #999999;
  71. }
  72. .content{
  73. ffont-size: 26rpx;
  74. font-family: Noto Sans S Chinese;
  75. font-weight: 400;
  76. color: #333333;
  77. line-height: 46rpx;
  78. margin-top: 30rpx;
  79. }
  80. }
  81. .bottom{
  82. padding: 15rpx 30rpx;
  83. text-align: right;
  84. display: flex;
  85. justify-content: flex-end;
  86. align-items: center;
  87. .text{
  88. width: 97rpx;
  89. height: 36rpx;
  90. line-height: 36rpx;
  91. border-radius: 18rpx;
  92. font-size: 26rpx;
  93. text-align: center;
  94. }
  95. .good{
  96. background: #FBD9D0;
  97. color: #DD523E;
  98. }
  99. .middle{
  100. background: #FBECD0;
  101. color: #FF9600;
  102. }
  103. .bad{
  104. background: #E1E1E1;
  105. color: #999999;
  106. }
  107. .score{
  108. font-size: 26rpx;
  109. font-family: Noto Sans S Chinese;
  110. font-weight: 400;
  111. color: #333333;
  112. margin-left: 17rpx;
  113. }
  114. }
  115. }
  116. </style>