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

115 lines
1.9 KiB

2 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. 3
  10. </view>
  11. </view>
  12. <view 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 class="">
  22. <up-rate :count="count" v-model="value" active-color="#FFBF60" gutter="6"></up-rate>
  23. </view>
  24. </view>
  25. <view class="time">
  26. 2023-12-10 12:41:12
  27. </view>
  28. <view class="">
  29. 服务贴心态度热情,非常满意
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script setup>
  36. import {
  37. ref,
  38. reactive
  39. } from 'vue';
  40. const count = ref(5);
  41. const value = ref(2);
  42. </script>
  43. <style lang="scss">
  44. .box {
  45. width: 100vw;
  46. height: 100vh;
  47. font-weight: 0 !important;
  48. .text1 {
  49. margin-top: 45rpx;
  50. color: #C7C7C7;
  51. font-size: 22rpx;
  52. }
  53. .item {
  54. width: 750rpx;
  55. height: 180rpx;
  56. padding: 3% 4%;
  57. // background-color: pink;
  58. // border: 0.5rpx solid #707070;
  59. margin-top: 25rpx;
  60. font-size: 28rpx;
  61. position: relative;
  62. &::before {
  63. position: absolute;
  64. top: 10rpx;
  65. left: 0;
  66. content: "";
  67. width: 750rpx;
  68. height: 1rpx;
  69. border-radius: 9rpx;
  70. background-color: #707070;
  71. }
  72. .img {
  73. width: 132rpx;
  74. height: 132rpx;
  75. background-color: red;
  76. margin-right: 15rpx;
  77. }
  78. .flex-2 {
  79. width: 550rpx;
  80. justify-content: space-between;
  81. }
  82. .name {
  83. font-size: 30rpx;
  84. font-weight: bold;
  85. }
  86. .time {
  87. color: grey;
  88. }
  89. }
  90. }
  91. .box-size {
  92. box-sizing: border-box;
  93. }
  94. .level {
  95. display: flex;
  96. }
  97. .vertical {
  98. display: grid;
  99. justify-content: space-between;
  100. }
  101. </style>