|
@@ -205,7 +205,7 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
|
|
mViewBinding.rvHotTrack.setAdapter(mHomeHotMusicSheetAdapter);
|
|
mViewBinding.rvHotTrack.setAdapter(mHomeHotMusicSheetAdapter);
|
|
|
|
|
|
|
|
|
|
- //推荐达人
|
|
|
|
|
|
+ //推荐老师
|
|
mRecommendTalentAdapter = new HomeRecommendTalentAdapter();
|
|
mRecommendTalentAdapter = new HomeRecommendTalentAdapter();
|
|
CommonItemDecoration commonItemDecoration = new CommonItemDecoration(0, 0, 0, SizeUtils.dp2px(12), 0);
|
|
CommonItemDecoration commonItemDecoration = new CommonItemDecoration(0, 0, 0, SizeUtils.dp2px(12), 0);
|
|
LinearLayoutManager recommendTalentManager = new LinearLayoutManager(getContext());
|
|
LinearLayoutManager recommendTalentManager = new LinearLayoutManager(getContext());
|
|
@@ -329,7 +329,7 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
|
|
@Override
|
|
@Override
|
|
public void onItemClick(@NonNull BaseQuickAdapter<?, ?> adapter, @NonNull View view, int position) {
|
|
public void onItemClick(@NonNull BaseQuickAdapter<?, ?> adapter, @NonNull View view, int position) {
|
|
if (position < mRecommendTalentAdapter.getData().size()) {
|
|
if (position < mRecommendTalentAdapter.getData().size()) {
|
|
- //跳转达人风采
|
|
|
|
|
|
+ //跳转老师风采
|
|
RecommendTalentListBean item = mRecommendTalentAdapter.getItem(position);
|
|
RecommendTalentListBean item = mRecommendTalentAdapter.getItem(position);
|
|
ARouter.getInstance()
|
|
ARouter.getInstance()
|
|
.build(RouterPath.WebCenter.ACTIVITY_HTML)
|
|
.build(RouterPath.WebCenter.ACTIVITY_HTML)
|
|
@@ -421,7 +421,7 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
|
|
refreshBottomData();
|
|
refreshBottomData();
|
|
//查询个人信息
|
|
//查询个人信息
|
|
presenter.queryUserInfo();
|
|
presenter.queryUserInfo();
|
|
- //获取推荐达人列表
|
|
|
|
|
|
+ //获取推荐老师列表
|
|
presenter.getRecommendTalentList();
|
|
presenter.getRecommendTalentList();
|
|
//获取热门专辑
|
|
//获取热门专辑
|
|
presenter.userAccountPage();
|
|
presenter.userAccountPage();
|
|
@@ -786,7 +786,7 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
|
|
if (isDetached()) {
|
|
if (isDetached()) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- //获取推荐达人列表
|
|
|
|
|
|
+ //获取推荐老师列表
|
|
if (presenter != null) {
|
|
if (presenter != null) {
|
|
presenter.getRecommendTalentList();
|
|
presenter.getRecommendTalentList();
|
|
}
|
|
}
|
|
@@ -916,7 +916,7 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (id == R.id.view_talent_style_click) {
|
|
if (id == R.id.view_talent_style_click) {
|
|
- //达人风采tab点击
|
|
|
|
|
|
+ //老师风采tab点击
|
|
mViewBinding.viewPagerBottom.setCurrentItem(0);
|
|
mViewBinding.viewPagerBottom.setCurrentItem(0);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -1042,7 +1042,7 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- //获取达人风采列表
|
|
|
|
|
|
+ //获取老师风采列表
|
|
@Override
|
|
@Override
|
|
public void getStyleData(int page) {
|
|
public void getStyleData(int page) {
|
|
if (presenter != null) {
|
|
if (presenter != null) {
|