feat: up投稿显示充电专属

This commit is contained in:
guozhigq
2024-07-18 00:52:17 +08:00
parent 5a4bf24b30
commit 9c00d3c4d3
3 changed files with 51 additions and 11 deletions

View File

@ -9,12 +9,14 @@ class MemberArchiveController extends GetxController {
int pn = 1;
int count = 0;
RxMap<String, String> currentOrder = <String, String>{}.obs;
List<Map<String, String>> orderList = [
RxList<Map<String, String>> orderList = [
{'type': 'pubdate', 'label': '最新发布'},
{'type': 'click', 'label': '最多播放'},
{'type': 'stow', 'label': '最多收藏'},
];
{'type': 'charge', 'label': '充电专属'},
].obs;
RxList<VListItemModel> archivesList = <VListItemModel>[].obs;
RxBool isLoading = false.obs;
@override
void onInit() {
@ -27,6 +29,8 @@ class MemberArchiveController extends GetxController {
Future getMemberArchive(type) async {
if (type == 'init') {
pn = 1;
archivesList.clear();
isLoading.value = true;
}
var res = await MemberHttp.memberArchive(
mid: mid,
@ -43,6 +47,7 @@ class MemberArchiveController extends GetxController {
count = res['data'].page['count'];
pn += 1;
}
isLoading.value = false;
return res;
}