添加周星榜
This commit is contained in:
parent
6d22c6a066
commit
31de4dc516
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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"
|
||||||
|
@ -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",
|
||||||
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user