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

100 lines
1.7 KiB

11 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. }
  37. },
  38. onShow() {
  39. this.getData()
  40. },
  41. onReachBottom(){
  42. let allTotal = this.queryParams.pageNo * this.queryParams.pageSize
  43. if(allTotal < this.total){
  44. //当前条数小于总条数 则增加请求数
  45. this.queryParams.pageSize += 10
  46. this.getData() //调用加载数据方法
  47. }
  48. },
  49. methods: {
  50. getData(){
  51. this.$api('indexGetActorSetPage', this.queryParams, res => {
  52. if(res.code == 200){
  53. this.actorList = res.result.records
  54. this.total = res.result.total
  55. }
  56. })
  57. },
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .postList{
  63. .title{
  64. padding-top: 20rpx;
  65. padding-left: 30rpx;
  66. font-size: 32rpx;
  67. }
  68. .box{
  69. padding: 30rpx;
  70. .search{
  71. background-color: #fff;
  72. height: 70rpx;
  73. width: 100%;
  74. margin: 20rpx 0;
  75. display: flex;
  76. justify-content: center;
  77. align-items: center;
  78. font-size: 28rpx;
  79. border-radius: 10rpx;
  80. .icon{
  81. margin: 0 20rpx;
  82. }
  83. input{
  84. }
  85. .text{
  86. margin-left: auto;
  87. margin-right: 20rpx;
  88. }
  89. }
  90. }
  91. }
  92. </style>