feat: 稍后再看下拉刷新

This commit is contained in:
guozhigq
2024-10-15 00:17:46 +08:00
parent 3f9b35b56b
commit 63a6c048e6
2 changed files with 66 additions and 59 deletions

View File

@ -22,11 +22,11 @@ class LaterController extends GetxController {
userInfo = userInfoCache.get('userInfoCache');
}
Future queryLaterList() async {
Future queryLaterList({type = 'init'}) async {
if (userInfo == null) {
return {'status': false, 'msg': '账号未登录', 'code': -101};
}
isLoading.value = true;
isLoading.value = type == 'init';
var res = await UserHttp.seeYouLater();
if (res['status']) {
count = res['data']['count'];