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

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