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

118 lines
2.1 KiB

11 months ago
10 months ago
11 months ago
8 months ago
10 months ago
8 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
10 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. v-model="queryParams.title"/>
  19. <view class="text"
  20. @click="getData">
  21. 搜索
  22. </view> -->
  23. <uv-search
  24. bgColor="#fff"
  25. @search="getData"
  26. @custom="getData"
  27. placeholder="请输入搜索关键字..."
  28. v-model="queryParams.title"></uv-search>
  29. </view>
  30. <actorList :list="actorList"/>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. import actorList from '@/components/post/actorList.vue'
  36. export default {
  37. components : {
  38. actorList
  39. },
  40. data() {
  41. return {
  42. actorList : [],
  43. total : 0,
  44. queryParams: {
  45. pageNo: 1,
  46. pageSize: 10,
  47. title : '',
  48. },
  49. }
  50. },
  51. onShow() {
  52. this.queryParams.pageNo = 1
  53. this.getData()
  54. },
  55. onPullDownRefresh(){
  56. this.getData()
  57. },
  58. onReachBottom(){
  59. if(this.queryParams.pageSize < this.total){
  60. //当前条数小于总条数 则增加请求数
  61. this.queryParams.pageSize += 10
  62. this.getData() //调用加载数据方法
  63. }
  64. },
  65. methods: {
  66. getData(){
  67. this.$api('indexGetActorSetPage', this.queryParams, res => {
  68. uni.stopPullDownRefresh()
  69. if(res.code == 200){
  70. this.actorList = res.result.records
  71. this.total = res.result.total
  72. }
  73. })
  74. },
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .postList{
  80. .title{
  81. padding-top: 20rpx;
  82. padding-left: 30rpx;
  83. font-size: 32rpx;
  84. }
  85. .box{
  86. padding: 30rpx;
  87. .search{
  88. background-color: #fff;
  89. height: 70rpx;
  90. width: 100%;
  91. margin: 20rpx 0;
  92. display: flex;
  93. justify-content: center;
  94. align-items: center;
  95. font-size: 28rpx;
  96. border-radius: 10rpx;
  97. .icon{
  98. margin: 0 20rpx;
  99. }
  100. input{
  101. }
  102. .text{
  103. margin-left: auto;
  104. margin-right: 20rpx;
  105. }
  106. }
  107. }
  108. }
  109. </style>