Browse Source

no message

ios
ZHR007 4 months ago
parent
commit
c6c5beb473
2 changed files with 7 additions and 2 deletions
  1. 3
      lib/controller/discover/discover_controller.dart
  2. 6
      lib/pages/discover/dating_page.dart

3
lib/controller/discover/discover_controller.dart

@ -25,6 +25,9 @@ class DiscoverController extends GetxController {
/// RTC
Future<void> loadRtcChannelPage() async {
if(isLoading.value){
return;
}
try {
isLoading.value = true;
final response = await _networkService.rtcApi.getRtcChannelPage();

6
lib/pages/discover/dating_page.dart

@ -114,13 +114,15 @@ class _DatingPageState extends State<DatingPage>
if (discoverController.rtcChannelList.isEmpty) {
return Center(
child: Text(
'暂无直播频道',
'暂无直播频道,点击刷新',
style: TextStyle(
fontSize: 14.w,
color: Colors.black38,
),
),
);
).onTap((){
discoverController.loadRtcChannelPage();
});
}
return EasyRefresh(
controller: _refreshController,

Loading…
Cancel
Save