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

131 lines
2.4 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
2 weeks ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months 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. <!-- 客服组件 -->
  35. <CustomerService />
  36. </template>
  37. <script setup>
  38. import {
  39. ref,
  40. reactive
  41. } from 'vue';
  42. import { appletCommentList } from "@/api/myFlow/index.js"
  43. import {
  44. onShow
  45. } from "@dcloudio/uni-app"
  46. onShow(() => {
  47. getAppletCommentList()
  48. })
  49. const count = ref(5);
  50. const value = ref(2);
  51. const list = ref([]);
  52. const getAppletCommentList = async() => {
  53. let response = await appletCommentList();
  54. if(response.code == 200 && response.data) {
  55. list.value = response.data;
  56. }
  57. }
  58. </script>
  59. <style lang="scss">
  60. .box {
  61. width: 100vw;
  62. min-height: 100vh;
  63. font-weight: 0 !important;
  64. background-color: #fff;
  65. .text1 {
  66. margin-top: 45rpx;
  67. color: #C7C7C7;
  68. font-size: 22rpx;
  69. }
  70. .item {
  71. width: 750rpx;
  72. height: 180rpx;
  73. padding: 3% 4%;
  74. // background-color: pink;
  75. // border: 0.5rpx solid #707070;
  76. margin-top: 25rpx;
  77. font-size: 28rpx;
  78. position: relative;
  79. &::before {
  80. position: absolute;
  81. top: 10rpx;
  82. left: 0;
  83. content: "";
  84. width: 750rpx;
  85. height: 1rpx;
  86. border-radius: 9rpx;
  87. }
  88. .img {
  89. width: 132rpx;
  90. height: 132rpx;
  91. margin-right: 15rpx;
  92. }
  93. .flex-2 {
  94. width: 550rpx;
  95. justify-content: space-between;
  96. }
  97. .name {
  98. font-size: 30rpx;
  99. font-weight: bold;
  100. }
  101. .time {
  102. color: grey;
  103. }
  104. }
  105. }
  106. .box-size {
  107. box-sizing: border-box;
  108. }
  109. .level {
  110. display: flex;
  111. }
  112. .vertical {
  113. display: grid;
  114. justify-content: space-between;
  115. }
  116. </style>