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 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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>
  18. <view class="bottom">
  19. <view class="text good" v-if="item.evaluate === '好评'">好评</view>
  20. <view class="text middle" v-if="item.evaluate === '中评'">中评</view>
  21. <view class="text bad" v-if="item.evaluate === '差评'">差评</view>
  22. <view class="score">{{item.score}}分</view>
  23. </view>
  24. </view>
  25. </template>
  26. <script setup lang="ts">
  27. // import {onLoad} from "@dcloudio/uni-app";
  28. // const tabClick = defineEmits(['tabClick'])
  29. defineProps({
  30. //数据列表
  31. dataList:{
  32. type:Array,
  33. default:()=>{
  34. return [];
  35. }
  36. }
  37. })
  38. // onLoad(()=>{
  39. // console.log("tabClick",tabClick)
  40. // })
  41. </script>
  42. <style lang="scss" scoped>
  43. .item-box{
  44. background: #ffffff;
  45. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223,223,223,0.8);
  46. border-radius: 20rpx;
  47. margin-bottom: 30rpx;
  48. .top{
  49. min-height: 88rpx;
  50. padding: 0rpx 30rpx;
  51. border-bottom: 1rpx solid #DCDCDC;
  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. image{
  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. }
  95. .bottom{
  96. padding: 15rpx 30rpx;
  97. text-align: right;
  98. display: flex;
  99. justify-content: flex-end;
  100. align-items: center;
  101. .text{
  102. width: 97rpx;
  103. height: 36rpx;
  104. line-height: 36rpx;
  105. border-radius: 18rpx;
  106. font-size: 26rpx;
  107. text-align: center;
  108. }
  109. .good{
  110. background: #FBD9D0;
  111. color: #DD523E;
  112. }
  113. .middle{
  114. background: #FBECD0;
  115. color: #FF9600;
  116. }
  117. .bad{
  118. background: #E1E1E1;
  119. color: #999999;
  120. }
  121. .score{
  122. font-size: 26rpx;
  123. font-family: Noto Sans S Chinese;
  124. font-weight: 400;
  125. color: #333333;
  126. margin-left: 17rpx;
  127. }
  128. }
  129. }
  130. </style>