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

132 lines
2.3 KiB

3 months ago
3 months ago
3 months ago
2 months ago
3 months ago
3 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 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="" 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. 猫小姐
  20. </view>
  21. <view >
  22. <up-rate :count="count" v-model="value" 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. height: 100vh;
  61. font-weight: 0 !important;
  62. .text1 {
  63. margin-top: 45rpx;
  64. color: #C7C7C7;
  65. font-size: 22rpx;
  66. }
  67. .item {
  68. width: 750rpx;
  69. height: 180rpx;
  70. padding: 3% 4%;
  71. // background-color: pink;
  72. // border: 0.5rpx solid #707070;
  73. margin-top: 25rpx;
  74. font-size: 28rpx;
  75. position: relative;
  76. &::before {
  77. position: absolute;
  78. top: 10rpx;
  79. left: 0;
  80. content: "";
  81. width: 750rpx;
  82. height: 1rpx;
  83. border-radius: 9rpx;
  84. background-color: #707070;
  85. }
  86. .img {
  87. width: 132rpx;
  88. height: 132rpx;
  89. background: red;
  90. margin-right: 15rpx;
  91. }
  92. .flex-2 {
  93. width: 550rpx;
  94. justify-content: space-between;
  95. }
  96. .name {
  97. font-size: 30rpx;
  98. font-weight: bold;
  99. }
  100. .time {
  101. color: grey;
  102. }
  103. }
  104. }
  105. .box-size {
  106. box-sizing: border-box;
  107. }
  108. .level {
  109. display: flex;
  110. }
  111. .vertical {
  112. display: grid;
  113. justify-content: space-between;
  114. }
  115. </style>