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

184 lines
4.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year 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%" mode="aspectFill"></image>
  5. <view class="text">
  6. <view class="title">
  7. {{ item.title || item.name }}
  8. </view>
  9. <view class="createBy">
  10. <view class=""
  11. :style="{color: colors[item.state]}">
  12. 状态{{ state[item.state] }}
  13. </view>
  14. </view>
  15. <view class="isPay">
  16. <view class="">
  17. 是否付费{{ item.isPay=='Y'?"是":"否" }}
  18. </view>
  19. <view class="">
  20. 是否置顶{{ item.isTop=='Y'?"是":"否" }}
  21. </view>
  22. </view>
  23. <view class="createTime">
  24. 发布时间{{ item.createTime }}
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. name: "releaseList",
  33. props: ['list'],
  34. data() {
  35. return {
  36. total: 0,
  37. queryParams: {
  38. pageNo: 1,
  39. pageSize: 5,
  40. },
  41. checkedIndex: 0,
  42. colors : ['#000', '#05b905', '#f00'],
  43. state : ['审核中', '审核通过', '审核不通过,请编辑后重新提交'],
  44. };
  45. },
  46. onShow() {
  47. // this.getData()
  48. },
  49. // onReachBottom() {
  50. // let allTotal = this.queryParams.pageNo * this.queryParams.pageSize
  51. // if (allTotal < this.total) {
  52. // //当前条数小于总条数 则增加请求数
  53. // console.log(this.queryParams.pageSize,'==son=')
  54. // this.queryParams.pageSize += 10
  55. // this.getData() //调用加载数据方法
  56. // }
  57. // },
  58. methods: {
  59. getData() {
  60. this.$api('infoGetMyReleasePage', {
  61. pageNo: this.queryParams.pageNo,
  62. pageSize: this.queryParams.pageSize,
  63. state: this.checkedIndex
  64. }, res => {
  65. if (res.code == 200) {
  66. this.list = res.result.records
  67. this.total = res.result.total
  68. }
  69. })
  70. },
  71. gotoDetail(item) {
  72. // 待审核
  73. if(item.state == 0){
  74. return uni.showToast({
  75. title: '审核中,请耐心等待',
  76. icon:'none'
  77. })
  78. }
  79. // 审核不通过,请编辑后重新提交
  80. if(item.state == 2){
  81. // 根据字段区分跳转到不同页面
  82. if (item.isCard == 'Y') {
  83. // 跳转到动态(贴子)发布页面
  84. uni.navigateTo({
  85. url: '/pages/publish/publishPost?id=' + item.id
  86. })
  87. } else if(item.phone) {
  88. // 跳转到演员(名片)发布页面
  89. uni.navigateTo({
  90. url: '/pages/publish/actorRelease?id=' + item.id
  91. })
  92. }else{
  93. // 跳转到作品发布页面
  94. uni.navigateTo({
  95. url: '/pages_mine/publish/addWorks?id=' + item.id
  96. })
  97. }
  98. return
  99. }
  100. // 根据字段区分跳转到不同页面
  101. if (item.isCard == 'Y') {
  102. // 跳转到动态(贴子)详情页面
  103. this.$utils.navigateTo('/publish/postDetail?id=' + item.id)
  104. } else if(item.phone) {
  105. // 跳转到演员(名片)详情页面
  106. this.$utils.navigateTo('/publish/actorDetail?id=' + item.id)
  107. }else{
  108. // 跳转到作品详情页面
  109. uni.navigateTo({
  110. url: '/pages_mine/publish/worksDetail?id=' + item.id
  111. })
  112. }
  113. }
  114. }
  115. }
  116. </script>
  117. <style lang="scss" scoped>
  118. .publishList {
  119. width: 90%;
  120. .item {
  121. height: 200rpx;
  122. width: 100%;
  123. background-color: #fff;
  124. overflow: hidden;
  125. border-radius: 10rpx;
  126. color: #777;
  127. display: flex;
  128. font-size: 24rpx;
  129. margin: 30rpx 0;
  130. image {
  131. width: 50%;
  132. height: 100%;
  133. }
  134. .text {
  135. display: flex;
  136. flex-direction: column;
  137. padding: 16rpx;
  138. width: 60%;
  139. .title {
  140. font-size: 30rpx;
  141. font-weight: 600;
  142. color: #000;
  143. }
  144. .createBy {
  145. display: flex;
  146. margin-top: auto;
  147. margin-bottom: 10rpx;
  148. justify-content: space-between;
  149. &>view {
  150. display: flex;
  151. align-items: center;
  152. justify-content: center;
  153. }
  154. }
  155. .isPay {
  156. display: flex;
  157. margin-top: auto;
  158. margin-bottom: 10rpx;
  159. color: #7395f4;
  160. justify-content: space-between;
  161. &>view {
  162. display: flex;
  163. align-items: center;
  164. justify-content: center;
  165. margin-right: 20rpx;
  166. }
  167. }
  168. }
  169. }
  170. }
  171. </style>