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

159 lines
3.5 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 "@/pages/mine/sonPage/release/releaseList.vue";
  35. export default {
  36. name: "releaseRecord",
  37. components: {
  38. PublishList
  39. },
  40. data() {
  41. return {
  42. publishList: [
  43. {
  44. title: "这是一条动态",
  45. createTime: '2024-08-22 09:00:00',
  46. createBy: "小飞",
  47. isPay: "是"
  48. },
  49. {
  50. title: "这是一条动态",
  51. createTime: '2024-08-22 09:00:00',
  52. createBy: "小飞",
  53. isPay: "是"
  54. },
  55. {
  56. title: "这是一条动态",
  57. createTime: '2024-08-22 09:00:00',
  58. createBy: "小飞",
  59. isPay: "是"
  60. },
  61. {
  62. title: "这是一条动态",
  63. createTime: '2024-08-22 09:00:00',
  64. createBy: "小飞",
  65. isPay: "是"
  66. },
  67. {
  68. title: "这是一条动态",
  69. createTime: '2024-08-22 09:00:00',
  70. createBy: "小飞",
  71. isPay: "是"
  72. },
  73. {
  74. title: "这是一条动态",
  75. createTime: '2024-08-22 09:00:00',
  76. createBy: "小飞",
  77. isPay: "是"
  78. },
  79. {
  80. title: "这是一条动态",
  81. createTime: '2024-08-22 09:00:00',
  82. createBy: "小飞",
  83. isPay: "是"
  84. },
  85. {
  86. title: "这是一条动态",
  87. createTime: '2024-08-22 09:00:00',
  88. createBy: "小飞",
  89. isPay: "是"
  90. },
  91. ],
  92. };
  93. },
  94. methods: {
  95. getData(type) {
  96. console.log(type, "点击了标签栏")
  97. }
  98. }
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. * {
  103. box-sizing: border-box;
  104. margin: 0;
  105. padding: 0;
  106. }
  107. .releaseRecord {
  108. width: 100vw;
  109. height: 100vh;
  110. .frame {
  111. width: 100%;
  112. //height: calc(100vh - 220rpx);
  113. padding: 28rpx 28rpx 0 28rpx;
  114. .title {
  115. font-size: 34rpx;
  116. color: #333;
  117. font-weight: 700
  118. }
  119. .tabbar {
  120. display: flex;
  121. justify-content: flex-start;
  122. gap: 20rpx;
  123. margin-top: 40rpx;
  124. .tabbarItemActive {
  125. padding: 10rpx 40rpx;
  126. background: $uni-linear-gradient-color;
  127. -webkit-background-clip: text; /*将设置的背景颜色限制在文字中*/
  128. -webkit-text-fill-color: transparent; /*给文字设置成透明*/
  129. }
  130. .tabbarItemNoActive {
  131. padding: 10rpx 40rpx;
  132. background-color: #eaeaeb;
  133. color: #777777;
  134. border-radius: 20rpx;
  135. }
  136. }
  137. .publishListClass {
  138. //margin-top: 10rpx;
  139. height: 78vh;
  140. //margin-top: 300rpx;
  141. overflow: auto;
  142. width: 100%;
  143. }
  144. }
  145. }
  146. </style>