From d3a3569f2b9ef0d01d7d38790e6c8db7887926ce Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 17 Aug 2022 16:40:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B4=B5=E6=97=8F,=E8=BF=9E?= =?UTF-8?q?=E9=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/common/dialog/LiveTotalDialog.java | 14 +++++++ .../common/event/LiveAudienceEvent.java | 8 ++-- .../com/yunbao/common/http/PDLiveApi.java | 5 +++ .../src/main/res/layout/view_live_total.xml | 2 + .../live/activity/LiveAudienceActivity.java | 42 +++++++++++++++++-- 5 files changed, 65 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java b/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java index b648094da..d184ba39b 100644 --- a/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java +++ b/common/src/main/java/com/yunbao/common/dialog/LiveTotalDialog.java @@ -83,6 +83,20 @@ public class LiveTotalDialog extends AbsDialogFragment { dismiss(); } ); + //贵族 + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.noble_layout), () -> { + Bus.get().post(new LiveAudienceEvent() + .setType(LiveAudienceEvent.LiveAudienceType.NOBLE)); + dismiss(); + } + ); + //连麦 + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_link_mic), () -> { + Bus.get().post(new LiveAudienceEvent() + .setType(LiveAudienceEvent.LiveAudienceType.LIANMAI)); + dismiss(); + } + ); } @Override diff --git a/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java b/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java index 5ec9b4185..e4276d3fa 100644 --- a/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java +++ b/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java @@ -30,9 +30,11 @@ public class LiveAudienceEvent extends BaseModel { BOTTOMCOLLECTION(2, "底部合集"), GIFTPOPUP(3, "礼物弹窗"), CURRENTACTIVITY(4, "当前活动"), - FANCLUB(5,"粉絲團"), - GUARD(6,"守護"), - LIVEWKS(7,"周星榜"); + FANCLUB(5, "粉絲團"), + GUARD(6, "守護"), + LIVEWKS(7, "周星榜"), + NOBLE(8, "贵族"), + LIANMAI(9, "连麦"); private int type; diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java index 7f32922ae..a465f85a2 100644 --- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java +++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java @@ -148,4 +148,9 @@ public interface PDLiveApi { */ @GET("/api/public/?service=Active.getActiveList") Observable>> getActiveList(); + /** + * 获取活动 + */ + @GET("/api/public/?service=live.getDrLm") + Observable>> getDrLm(); } diff --git a/common/src/main/res/layout/view_live_total.xml b/common/src/main/res/layout/view_live_total.xml index 7587258b2..ea0bce7ae 100644 --- a/common/src/main/res/layout/view_live_total.xml +++ b/common/src/main/res/layout/view_live_total.xml @@ -82,6 +82,7 @@