|
@@ -464,15 +464,6 @@ abstract class BaseComFragment<T : FragmentBaseComBinding> : BaseXFragment<T>(),
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //推荐游戏列表
|
|
|
- roomVm.recommendGameListModelLiveData.observe(this){
|
|
|
- binding.playBannerView.setData(it.list)
|
|
|
- binding.playBannerView.jumpToWebFun = { game ->
|
|
|
- setRecommendGame(game)
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
//直播间配置
|
|
|
roomVm.roomConfigLiveData.observe(this) {
|
|
|
this.roomConfig = it
|
|
@@ -787,6 +778,25 @@ abstract class BaseComFragment<T : FragmentBaseComBinding> : BaseXFragment<T>(),
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //推荐游戏列表
|
|
|
+ roomVm.recommendGameListModelLiveData.observe(this){
|
|
|
+ if (iRoomInfo.getRoomType() == RoomType.AUDIO.type){
|
|
|
+ binding.playBannerView.setData(it.list)
|
|
|
+ binding.playBannerView.jumpToWebFun = { game ->
|
|
|
+ setRecommendGame(game)
|
|
|
+
|
|
|
+ }
|
|
|
+ } else if (iRoomInfo.getRoomType() == RoomType.VIDEO.type){
|
|
|
+ binding.videoPlayBannerView.setData(it.list)
|
|
|
+ binding.videoPlayBannerView.jumpToWebFun = { game ->
|
|
|
+ setRecommendGame(game)
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
fun setGameDefaultData(index: Int) {
|