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

求教订单列表,onshow的时候,不设置page=1 #6

Open
candyAndBella opened this issue Dec 18, 2019 · 1 comment
Open

求教订单列表,onshow的时候,不设置page=1 #6

candyAndBella opened this issue Dec 18, 2019 · 1 comment

Comments

@candyAndBella
Copy link

订单列表onshow事件,如果把page=1,每次进入重新刷新整个页面。能否不把page=1,并且做到保留原来的翻页和滚动位置,同时做到单条数据的刷新

@hanwenbo
Copy link
Contributor

@candyAndBella 订单的业务逻辑写到后面比较复杂,我这种刷新也是写的临时解决方案,最好是能搞个本地的存储,几个tab列表的数据都保存进去,切换到每个列表从存储里拿数据,切换到详情操作了数据记得更新到缓存,不要本地订单修改状态,因为写到后面逻辑穿插多,还是从服务器拿状态比较稳

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

2 participants