普兆健康管家前端代码仓库
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.

129 lines
2.6 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
  1. <template>
  2. <view class="page__view">
  3. <navbar :title="title" leftClick @leftClick="$utils.navigateBack" color="#191919" bgColor="#FFFFFF" />
  4. <view class="main">
  5. <view class="tabs">
  6. <uv-tabs
  7. :list="tabs"
  8. :scrollable="false"
  9. lineColor="#7451DE"
  10. lineWidth="48rpx"
  11. lineHeight="4rpx"
  12. :activeStyle="{
  13. 'font-family': 'PingFang SC',
  14. 'font-weight': 500,
  15. 'font-size': '32rpx',
  16. 'line-height': 1.4,
  17. 'color': '#7451DE',
  18. }"
  19. :inactiveStyle="{
  20. 'font-family': 'PingFang SC',
  21. 'font-weight': 400,
  22. 'font-size': '32rpx',
  23. 'line-height': 1.4,
  24. 'color': '#181818',
  25. }"
  26. @click="clickTabs"
  27. ></uv-tabs>
  28. </view>
  29. <view class="comment">
  30. <view class="comment-item" v-for="item in list" :key="item.id">
  31. <commentCard :data="item" mode="edit" @deleteSucc="getData"></commentCard>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import mixinsList from '@/mixins/list.js'
  39. import commentCard from '@/pages_order/comment/commentCard.vue'
  40. export default {
  41. mixins: [mixinsList],
  42. components: {
  43. commentCard,
  44. },
  45. data() {
  46. return {
  47. title: '我的评价',
  48. tabs: [
  49. { name: '全部' },
  50. { name: '有图/视频' },
  51. { name: '最新' },
  52. ],
  53. mixinsListApi: 'myEvaluate',
  54. }
  55. },
  56. onShow() {
  57. console.log('onShow')
  58. },
  59. onLoad() {
  60. this.getData()
  61. },
  62. methods: {
  63. //点击tab栏
  64. clickTabs({ index }) {
  65. // todo
  66. return
  67. if (index == 0) {
  68. delete this.queryParams.status
  69. } else {
  70. this.queryParams.status = index - 1
  71. }
  72. this.getData()
  73. },
  74. },
  75. }
  76. </script>
  77. <style scoped lang="scss">
  78. .page__view {
  79. width: 100vw;
  80. min-height: 100vh;
  81. background-color: $uni-bg-color;
  82. position: relative;
  83. /deep/ .nav-bar__view {
  84. position: fixed;
  85. top: 0;
  86. left: 0;
  87. }
  88. }
  89. .main {
  90. width: 100vw;
  91. padding-top: calc(var(--status-bar-height) + 204rpx);
  92. box-sizing: border-box;
  93. .tabs {
  94. position: fixed;
  95. top: calc(var(--status-bar-height) + 120rpx);
  96. left: 0;
  97. width: 100%;
  98. height: 84rpx;
  99. background: #FFFFFF;
  100. /deep/ .uv-tabs__wrapper__nav__line {
  101. border-radius: 2rpx;
  102. }
  103. }
  104. }
  105. .comment {
  106. padding: 40rpx 32rpx;
  107. &-item {
  108. & + & {
  109. margin-top: 40rpx;
  110. }
  111. }
  112. }
  113. </style>