帧视界壹通告,付费看视频的微信小程序
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.

151 lines
3.3 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="releaseRecord">
  3. <!--顶部导航栏-->
  4. <navbar
  5. leftClick
  6. @leftClick="$utils.navigateBack"
  7. title="我的发布"/>
  8. <!--发布记录列表-->
  9. <view class="frame">
  10. <!--标题-->
  11. <view class="title">
  12. <span>我的发布</span>
  13. </view>
  14. <!--标签栏-->
  15. <view class="tabbar">
  16. <view class="tabbarItemActive" @click="getData('all')">
  17. <span class="1==1 ? 'active' : ''">全部</span>
  18. </view>
  19. <view class="tabbarItemNoActive" @click="getData('all')">
  20. <span class="1==1 ? 'active' : ''">贴子</span>
  21. </view>
  22. <view class="tabbarItemNoActive" @click="getData('all')">
  23. <span class="1==1 ? 'active' : ''">名片</span>
  24. </view>
  25. </view>
  26. <!--发布列表-->
  27. <view style="" class="publishListClass">
  28. <PublishList :list="publishList"/>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import PublishList from "@/components/post/publishList.vue";
  35. export default {
  36. components: {
  37. PublishList
  38. },
  39. data() {
  40. return {
  41. publishList: [
  42. {
  43. title: "这是一条动态",
  44. createTime: '2024-08-22 09:00:00',
  45. createBy: "小飞",
  46. isPay: "是"
  47. },
  48. {
  49. title: "这是一条动态",
  50. createTime: '2024-08-22 09:00:00',
  51. createBy: "小飞",
  52. isPay: "是"
  53. },
  54. {
  55. title: "这是一条动态",
  56. createTime: '2024-08-22 09:00:00',
  57. createBy: "小飞",
  58. isPay: "是"
  59. },
  60. {
  61. title: "这是一条动态",
  62. createTime: '2024-08-22 09:00:00',
  63. createBy: "小飞",
  64. isPay: "是"
  65. },
  66. {
  67. title: "这是一条动态",
  68. createTime: '2024-08-22 09:00:00',
  69. createBy: "小飞",
  70. isPay: "是"
  71. },
  72. {
  73. title: "这是一条动态",
  74. createTime: '2024-08-22 09:00:00',
  75. createBy: "小飞",
  76. isPay: "是"
  77. },
  78. {
  79. title: "这是一条动态",
  80. createTime: '2024-08-22 09:00:00',
  81. createBy: "小飞",
  82. isPay: "是"
  83. },
  84. {
  85. title: "这是一条动态",
  86. createTime: '2024-08-22 09:00:00',
  87. createBy: "小飞",
  88. isPay: "是"
  89. },
  90. ],
  91. };
  92. },
  93. methods: {
  94. getData(type){
  95. console.log(type,"点击了标签栏")
  96. }
  97. }
  98. }
  99. </script>
  100. <style lang="scss" scoped>
  101. * {
  102. box-sizing: border-box;
  103. margin: 0;
  104. padding: 0;
  105. }
  106. .frame {
  107. width: 100%;
  108. height: calc(100vh - 220rpx);
  109. border: 1px solid red;
  110. padding: 28rpx 0 0 50rpx;
  111. .title {
  112. font-size: 38rpx;
  113. color: #333;
  114. font-weight: 700
  115. }
  116. .tabbar {
  117. display: flex;
  118. justify-content: flex-start;
  119. gap: 20rpx;
  120. margin-top: 40rpx;
  121. .tabbarItemActive {
  122. padding: 10rpx 40rpx;
  123. background: $uni-linear-gradient-color;
  124. -webkit-background-clip: text; /*将设置的背景颜色限制在文字中*/
  125. -webkit-text-fill-color: transparent; /*给文字设置成透明*/
  126. }
  127. .tabbarItemNoActive {
  128. padding: 10rpx 40rpx;
  129. background-color: #eaeaeb;
  130. color: #777777;
  131. border-radius: 20rpx;
  132. }
  133. }
  134. .publishListClass {
  135. margin-top: 10rpx;
  136. height: calc(100vh - 200rpx);
  137. overflow: auto;
  138. }
  139. }
  140. </style>