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

143 lines
2.9 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="publishList">
  3. <view class="item" v-for="(item, index) in list" @click="gotoDetail(item)" :key="index">
  4. <image :src="item.image" style="width: 40%"></image>
  5. <view class="text">
  6. <view class="title">
  7. {{ item.title }}
  8. </view>
  9. <view class="createBy">
  10. <view class="">
  11. 是否置顶{{ item.isTop=='Y'?"是":"否" }}
  12. </view>
  13. </view>
  14. <view class="isPay">
  15. <view class="">
  16. 是否付费{{ item.isPay=='Y'?"是":"否" }}
  17. </view>
  18. </view>
  19. <view class="createTime">
  20. 发布时间{{ item.createTime }}
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. name: "releaseList",
  29. props: ['list'],
  30. data() {
  31. return {
  32. total: 0,
  33. queryParams: {
  34. pageNo: 1,
  35. pageSize: 5,
  36. },
  37. checkedIndex: 0,
  38. };
  39. },
  40. onShow() {
  41. // this.getData()
  42. },
  43. // onReachBottom() {
  44. // let allTotal = this.queryParams.pageNo * this.queryParams.pageSize
  45. // if (allTotal < this.total) {
  46. // //当前条数小于总条数 则增加请求数
  47. // console.log(this.queryParams.pageSize,'==son=')
  48. // this.queryParams.pageSize += 10
  49. // this.getData() //调用加载数据方法
  50. // }
  51. // },
  52. methods: {
  53. getData() {
  54. this.$api('infoGetMyReleasePage', {
  55. pageNo: this.queryParams.pageNo,
  56. pageSize: this.queryParams.pageSize,
  57. state: this.checkedIndex
  58. }, res => {
  59. if (res.code == 200) {
  60. this.list = res.result.records
  61. this.total = res.result.total
  62. }
  63. })
  64. },
  65. gotoDetail(item) {
  66. // 根据字段区分跳转到不同页面
  67. if (item.isCard == 'N') {
  68. // 跳转到动态(贴子)详情页面
  69. console.log("跳转到动态(贴子)详情页面")
  70. this.$utils.navigateTo('/publish/postDetail?id=' + item.id)
  71. } else {
  72. // 跳转到演员(名片)详情页面
  73. console.log("跳转到演员(名片)详情页面")
  74. this.$utils.navigateTo('/publish/actorDetail?id=' + item.id)
  75. }
  76. }
  77. }
  78. }
  79. </script>
  80. <style lang="scss" scoped>
  81. .publishList {
  82. width: 90%;
  83. .item {
  84. height: 200rpx;
  85. width: 100%;
  86. background-color: #fff;
  87. overflow: hidden;
  88. border-radius: 10rpx;
  89. color: #777;
  90. display: flex;
  91. font-size: 24rpx;
  92. margin: 30rpx 0;
  93. image {
  94. width: 50%;
  95. height: 100%;
  96. }
  97. .text {
  98. display: flex;
  99. flex-direction: column;
  100. padding: 16rpx;
  101. width: 60%;
  102. .title {
  103. font-size: 30rpx;
  104. font-weight: 600;
  105. color: #000;
  106. }
  107. .createBy {
  108. display: flex;
  109. margin-top: auto;
  110. margin-bottom: 10rpx;
  111. justify-content: space-between;
  112. &>view {
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. }
  117. }
  118. .isPay {
  119. display: flex;
  120. margin-top: auto;
  121. margin-bottom: 10rpx;
  122. color: #7395f4;
  123. justify-content: space-between;
  124. &>view {
  125. display: flex;
  126. align-items: center;
  127. justify-content: center;
  128. }
  129. }
  130. }
  131. }
  132. }
  133. </style>