feat: 搜索分区UI

This commit is contained in:
guozhigq
2024-05-13 23:37:22 +08:00
parent eda3e777fe
commit 68d35a7ed8
5 changed files with 142 additions and 8 deletions

View File

@ -75,6 +75,7 @@ class SearchHttp {
required page,
String? order,
int? duration,
int? tid,
}) async {
var reqData = {
'search_type': searchType.type,
@ -84,6 +85,7 @@ class SearchHttp {
'page': page,
if (order != null) 'order': order,
if (duration != null) 'duration': duration,
if (tid != null) 'tid': tid,
};
var res = await Request().get(Api.searchByType, data: reqData);
if (res.data['code'] == 0 && res.data['data']['numPages'] > 0) {