埋点配置
This commit is contained in:
parent
72e9633045
commit
233469c7e4
@ -54,6 +54,20 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void loadPageData(int position) {
|
protected void loadPageData(int position) {
|
||||||
|
switch (position) {
|
||||||
|
case 0:
|
||||||
|
MobclickAgent.onEvent(mContext, "home_page_follow", "首页关注列表按钮");
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
MobclickAgent.onEvent(mContext, "home_page_hot", "首页热门列表按钮");
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
MobclickAgent.onEvent(mContext, "home_page_recommend", "首页推荐列表按钮");
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
MobclickAgent.onEvent(mContext, "home_page_redpk", "首页红包列表按钮");
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (mViewHolders == null) {
|
if (mViewHolders == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -68,19 +82,19 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
|
|||||||
} else if (position == 0) {
|
} else if (position == 0) {
|
||||||
mainHomeFollLiveViewHolder = new MainHomeFollLiveViewHolder(mContext, parent);
|
mainHomeFollLiveViewHolder = new MainHomeFollLiveViewHolder(mContext, parent);
|
||||||
vh = mainHomeFollLiveViewHolder;
|
vh = mainHomeFollLiveViewHolder;
|
||||||
MobclickAgent.onEvent(mContext, "home_page_follow", "首页关注列表按钮");
|
|
||||||
} else if (position == 1) {
|
} else if (position == 1) {
|
||||||
mainHomeLiveViewHolder = new MainHomeLiveViewHolder(mContext, parent);
|
mainHomeLiveViewHolder = new MainHomeLiveViewHolder(mContext, parent);
|
||||||
vh = mainHomeLiveViewHolder;
|
vh = mainHomeLiveViewHolder;
|
||||||
MobclickAgent.onEvent(mContext, "home_page_hot", "首页热门列表按钮");
|
|
||||||
} else if (position == 2) {
|
} else if (position == 2) {
|
||||||
mainHomeRecomLiveViewHolder = new MainHomeRecomLiveViewHolder(mContext, parent);
|
mainHomeRecomLiveViewHolder = new MainHomeRecomLiveViewHolder(mContext, parent);
|
||||||
vh = mainHomeRecomLiveViewHolder;
|
vh = mainHomeRecomLiveViewHolder;
|
||||||
MobclickAgent.onEvent(mContext, "home_page_recommend", "首页推荐列表按钮");
|
|
||||||
} else if (position == 3) {
|
} else if (position == 3) {
|
||||||
mainHomeRedPacketLiveViewHolder = new MainHomeRedPacketLiveViewHolder(mContext, parent);
|
mainHomeRedPacketLiveViewHolder = new MainHomeRedPacketLiveViewHolder(mContext, parent);
|
||||||
vh = mainHomeRedPacketLiveViewHolder;
|
vh = mainHomeRedPacketLiveViewHolder;
|
||||||
MobclickAgent.onEvent(mContext, "home_page_redpk", "首页红包列表按钮");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vh == null) {
|
if (vh == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user