Vue-Pull-To 回弹效果怎么处理

 时间:2024-11-17 10:16:42

1、这里的话我直接给大家代码吧!getMoreList(loaded){ this.pageNum++; var that = this; if (!that.loaded) { that.isShowLoading=true;

Vue-Pull-To 回弹效果怎么处理

2、var params = { familyId: this.familyId, pageNum: this.pageNum, iconOption:1, pageSize: this.pageSize } if(this.$route.params.fileId!=this.familyId){ params.folderId =this.$route.params.fileId;

Vue-Pull-To 回弹效果怎么处理

3、} this.$axios.get( //传参发起请求 "https://home.cloud.189.cn/fmFile/listFiles.action", { params } ).then(function (response) { //接口返回数据 console.log(Math.ceil(response.data.recordCount/response.data.pageSize));

Vue-Pull-To 回弹效果怎么处理

4、if (that.pageNum ==Math.ceil(response.data.recordCount/response.data.pageSize)) {// that.loaded = true; } that.filesList.fileList.push(...response.data.fileList);

Vue-Pull-To 回弹效果怎么处理

5、//push进去渲染 that.isShowLoading=false; that.ShowLoadingTip="没有更多了"; // loaded && loaded("done"); }, function (error) { that.pageNum--; console.log("error"); }) } load参数是默认传进来的,其实就是很简单的事情。

Vue-Pull-To 回弹效果怎么处理
  • 如何查看自己的空间访客
  • 番茄ToDo怎么设置番茄钟进入休息计时前询问
  • 网易云怎么加别人
  • 冒险与宝藏光环加速跳过使用教程
  • 萌店的收货地址在哪里添加?
  • 热门搜索
    红烧豆腐 减肥餐单 口袋妖怪叶绿攻略 黑道圣徒3攻略 太监怎么净身 红烧肉丸子 巴黎旅游攻略 武汉欢乐谷攻略 希腊字母怎么打 辐射1攻略