猫妈狗爸伴宠师小程序前端代码
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.

130 lines
2.3 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 weeks ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <!-- <div>我的评价</div> -->
  3. <view class="box">
  4. <view class="level">
  5. <view class="form-title">
  6. 我的评价
  7. </view>
  8. <view class="text1">
  9. {{ list.length }}
  10. </view>
  11. </view>
  12. <view v-for="item in list" :key="item.id" class="item box-size level">
  13. <view class="img" :style="{borderRadius:'75rpx'}">
  14. <image src="https://image.hhlm1688.com/img/work/log/headImage.png" mode="" style="width: 132rpx;height: 132rpx;" :style="{borderRadius:'75rpx'}"></image>
  15. </view>
  16. <view class="vertical">
  17. <view class="level flex-2">
  18. <view class="name">
  19. {{ item.appUsers.userName }}
  20. </view>
  21. <view>
  22. <up-rate :count="5" v-model="item.satisfaction" active-color="#FFBF60" gutter="6"></up-rate>
  23. </view>
  24. </view>
  25. <view class="time">
  26. {{ item.createTime }}
  27. </view>
  28. <view >
  29. {{ item.comment }}
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script setup>
  36. import {
  37. ref,
  38. reactive
  39. } from 'vue';
  40. import { appletCommentList } from "@/api/myFlow/index.js"
  41. import {
  42. onShow
  43. } from "@dcloudio/uni-app"
  44. onShow(() => {
  45. getAppletCommentList()
  46. })
  47. const count = ref(5);
  48. const value = ref(2);
  49. const list = ref([]);
  50. const getAppletCommentList = async() => {
  51. let response = await appletCommentList();
  52. if(response.code == 200 && response.data) {
  53. list.value = response.data;
  54. }
  55. }
  56. </script>
  57. <style lang="scss">
  58. .box {
  59. width: 100vw;
  60. min-height: 100vh;
  61. font-weight: 0 !important;
  62. background-color: #fff;
  63. .text1 {
  64. margin-top: 45rpx;
  65. color: #C7C7C7;
  66. font-size: 22rpx;
  67. }
  68. .item {
  69. width: 750rpx;
  70. height: 180rpx;
  71. padding: 3% 4%;
  72. // background-color: pink;
  73. // border: 0.5rpx solid #707070;
  74. margin-top: 25rpx;
  75. font-size: 28rpx;
  76. position: relative;
  77. &::before {
  78. position: absolute;
  79. top: 10rpx;
  80. left: 0;
  81. content: "";
  82. width: 750rpx;
  83. height: 1rpx;
  84. border-radius: 9rpx;
  85. }
  86. .img {
  87. width: 132rpx;
  88. height: 132rpx;
  89. margin-right: 15rpx;
  90. }
  91. .flex-2 {
  92. width: 550rpx;
  93. justify-content: space-between;
  94. }
  95. .name {
  96. font-size: 30rpx;
  97. font-weight: bold;
  98. }
  99. .time {
  100. color: grey;
  101. }
  102. }
  103. }
  104. .box-size {
  105. box-sizing: border-box;
  106. }
  107. .level {
  108. display: flex;
  109. }
  110. .vertical {
  111. display: grid;
  112. justify-content: space-between;
  113. }
  114. </style>