添加周星榜

This commit is contained in:
18401019693 2022-08-17 16:14:15 +08:00
parent 6d22c6a066
commit 31de4dc516
5 changed files with 21 additions and 5 deletions

View File

@ -76,7 +76,13 @@ public class LiveTotalDialog extends AbsDialogFragment {
dismiss(); dismiss();
} }
); );
//周星榜
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_wks_layout), () -> {
Bus.get().post(new LiveAudienceEvent()
.setType(LiveAudienceEvent.LiveAudienceType.LIVEWKS));
dismiss();
}
);
} }
@Override @Override

View File

@ -31,7 +31,8 @@ public class LiveAudienceEvent extends BaseModel {
GIFTPOPUP(3, "礼物弹窗"), GIFTPOPUP(3, "礼物弹窗"),
CURRENTACTIVITY(4, "当前活动"), CURRENTACTIVITY(4, "当前活动"),
FANCLUB(5,"粉絲團"), FANCLUB(5,"粉絲團"),
GUARD(6,"守護"); GUARD(6,"守護"),
LIVEWKS(7,"周星榜");
private int type; private int type;

View File

@ -103,6 +103,7 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/live_wks_layout"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="28dp" android:layout_marginStart="28dp"

View File

@ -9,9 +9,9 @@ ext {
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //
serverHost : "https://napi.yaoulive.com", // serverHost : "https://napi.yaoulive.com",
// //
// serverHost : "https://ceshi.yaoulive.com", serverHost : "https://ceshi.yaoulive.com",
// //
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",

View File

@ -1389,6 +1389,7 @@ public class LiveAudienceActivity extends LiveActivity {
@Subscribe(threadMode = ThreadMode.MAIN) @Subscribe(threadMode = ThreadMode.MAIN)
public void onOpenDrawer(LiveAudienceEvent event) { public void onOpenDrawer(LiveAudienceEvent event) {
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
switch (event.getType()) { switch (event.getType()) {
case SIDEBAR: case SIDEBAR:
//从右边打开侧边栏 //从右边打开侧边栏
@ -1419,7 +1420,7 @@ public class LiveAudienceActivity extends LiveActivity {
liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment"); liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
break; break;
case FANCLUB: case FANCLUB:
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
LiveFansFragment liveFansFragment = new LiveFansFragment(); LiveFansFragment liveFansFragment = new LiveFansFragment();
//粉絲團粉絲團 //粉絲團粉絲團
//不是粉絲 //不是粉絲
@ -1445,6 +1446,13 @@ public class LiveAudienceActivity extends LiveActivity {
liveGuardDialogFragment.setArguments(bundle); liveGuardDialogFragment.setArguments(bundle);
liveGuardDialogFragment.show(getSupportFragmentManager(), "LiveGuardDialogFragment"); liveGuardDialogFragment.show(getSupportFragmentManager(), "LiveGuardDialogFragment");
break; break;
case LIVEWKS:
String url = CommonAppConfig.HOST + "/h5/activity/weekStar/index.html?&uid="
+ userInfo.getId() +
"&token=" + userInfo.getToken() + "&anchorUid=" + mLiveUid;
ZhuangBanActivity.forward(mContext, url, false);
break;
} }
} }