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

103 lines
1.7 KiB

11 months ago
10 months ago
10 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="postList">
  3. <navbar
  4. leftClick
  5. @leftClick="$utils.navigateBack"
  6. title="认证演员"/>
  7. <view class="title">
  8. 认证创作者
  9. </view>
  10. <view class="box">
  11. <view class="search">
  12. <view class="icon">
  13. <uv-icon
  14. size="40rpx"
  15. name="search"></uv-icon>
  16. </view>
  17. <input type="text" placeholder="请输入搜索关键字..."/>
  18. <view class="text">
  19. 搜索
  20. </view>
  21. </view>
  22. <actorList :list="actorList"/>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import actorList from '@/components/post/actorList.vue'
  28. export default {
  29. components : {
  30. actorList
  31. },
  32. data() {
  33. return {
  34. actorList : [],
  35. total : 0,
  36. queryParams: {
  37. pageNo: 1,
  38. pageSize: 10
  39. },
  40. }
  41. },
  42. onShow() {
  43. this.getData()
  44. },
  45. onReachBottom(){
  46. if(this.queryParams.pageSize < this.total){
  47. //当前条数小于总条数 则增加请求数
  48. this.queryParams.pageSize += 10
  49. this.getData() //调用加载数据方法
  50. }
  51. },
  52. methods: {
  53. getData(){
  54. this.$api('indexGetActorSetPage', this.queryParams, res => {
  55. if(res.code == 200){
  56. this.actorList = res.result.records
  57. this.total = res.result.total
  58. }
  59. })
  60. },
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .postList{
  66. .title{
  67. padding-top: 20rpx;
  68. padding-left: 30rpx;
  69. font-size: 32rpx;
  70. }
  71. .box{
  72. padding: 30rpx;
  73. .search{
  74. background-color: #fff;
  75. height: 70rpx;
  76. width: 100%;
  77. margin: 20rpx 0;
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. font-size: 28rpx;
  82. border-radius: 10rpx;
  83. .icon{
  84. margin: 0 20rpx;
  85. }
  86. input{
  87. }
  88. .text{
  89. margin-left: auto;
  90. margin-right: 20rpx;
  91. }
  92. }
  93. }
  94. }
  95. </style>