Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

歌手页面下拉分页有bug,数据全是重复的 #36

Open
yzbgyq opened this issue Oct 23, 2019 · 8 comments
Open

歌手页面下拉分页有bug,数据全是重复的 #36

yzbgyq opened this issue Oct 23, 2019 · 8 comments

Comments

@yzbgyq
Copy link

yzbgyq commented Oct 23, 2019

应该是每次下拉页码 * offset,比如当前是第一页就是 1 * offset(30),假设offset为30,第二页就是2 *30这样子才对,数据才不会重复

@sanyuan0704
Copy link
Owner

目前的master代码已经修复

@yzbgyq
Copy link
Author

yzbgyq commented Oct 24, 2019

最近我也在做这个,发现你有些地方还需要优化,比如这个下拉分页就有问题,你要给他限制下,当第二页数据没有请求回来之前不让他再去请求
image

@sanyuan0704
Copy link
Owner

sanyuan0704 commented Oct 24, 2019 via email

@sanyuan0704
Copy link
Owner

sanyuan0704 commented Oct 24, 2019 via email

@yzbgyq
Copy link
Author

yzbgyq commented Oct 24, 2019

其实这个下拉分页不能做防抖和节流处理,这个地方一定要确定他下一页数据成功加载之后,下下页的数据才能请求,可以设置一个锁的机制,如果用户网速过慢,他就会一直下拉一直下拉,导致页码重复叠加,数据重复,个人建议哈,不喜勿喷

@ThoughtZer
Copy link
Contributor

ThoughtZer commented Oct 24, 2019

@yzbgyq这一行前面判断下是否在loading应该能最快达到你的目的

@bihongbin3027
Copy link

@sanyuan0704 歌手页面,选择一个首字母,然后下拉分页,就有问题了,加载的数据没有首字母传参

@sanyuan0704
Copy link
Owner

sanyuan0704 commented Nov 4, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants