feat: 动态跳转直播

This commit is contained in:
guozhigq
2023-07-13 12:02:30 +08:00
parent 3f457aa7f6
commit 0cbf777220
5 changed files with 105 additions and 61 deletions

View File

@ -20,12 +20,13 @@ class LiveRoomController extends GetxController {
@override
void onInit() {
super.onInit();
var args = Get.arguments['liveItem'];
liveItem = args;
print(liveItem.roomId);
roomId = liveItem.roomId!;
if (args.pic != null && args.pic != '') {
cover = args.cover;
if (Get.arguments != null) {
var args = Get.arguments['liveItem'];
liveItem = args;
roomId = liveItem.roomId!;
if (args.pic != null && args.pic != '') {
cover = args.cover;
}
}
queryLiveInfo();
}