logo和名称替换
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import 'package:hgmj/hj_model/list_base_model.dart';
|
||||
import 'package:wydj/hj_model/list_base_model.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:hgmj/hj_page/live/live_service.dart';
|
||||
import 'package:wydj/hj_page/live/live_service.dart';
|
||||
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||||
|
||||
import '../mine/mine_vip/mine_charge_vip_page.dart';
|
||||
@@ -50,7 +50,8 @@ class LiveSubLogic extends GetxController {
|
||||
|
||||
//tag直播列表
|
||||
loadCountryAnchor({int pageNum = 1, bool showLoading = false}) async {
|
||||
ListBaseModel<LiveAnchor>? liveMainModels = await LiveService.getLiveAnchorList(
|
||||
ListBaseModel<LiveAnchor>? liveMainModels =
|
||||
await LiveService.getLiveAnchorList(
|
||||
id: tagData?.id ?? '',
|
||||
pageNumber: pageNum,
|
||||
);
|
||||
@@ -58,12 +59,15 @@ class LiveSubLogic extends GetxController {
|
||||
if (liveMainModels != null) {
|
||||
currentPage = pageNum;
|
||||
if (currentPage == 1) liveList.clear();
|
||||
if (liveMainModels.list != null && liveMainModels.list?.isNotEmpty == true) {
|
||||
if (liveMainModels.list != null &&
|
||||
liveMainModels.list?.isNotEmpty == true) {
|
||||
liveList.addAll(liveMainModels.list ?? []);
|
||||
}
|
||||
}
|
||||
update();
|
||||
liveMainModels?.hasNext == true ? controller?.loadComplete() : controller?.loadNoData();
|
||||
liveMainModels?.hasNext == true
|
||||
? controller?.loadComplete()
|
||||
: controller?.loadNoData();
|
||||
controller?.refreshCompleted();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user