Commit 23202e01 by 霍志良

feat:升级m-user埋点

parent eb159ccf
......@@ -8,7 +8,7 @@ ext {
"m-confide" : "0.0.49.13",
"m-consultant" : "0.0.59.94",
"m-fm" : "0.0.30.04",
"m-user" : "0.0.61.74",
"m-user" : "0.0.61.75",
"m-home" : "0.0.22.75",
"m-im" : "0.0.19.91",
"m-dynamic" : "0.0.7.30",
......@@ -91,7 +91,7 @@ ext {
"m-confide" : "0.0.49.13",
"m-consultant" : "0.0.59.94",
"m-fm" : "0.0.30.04",
"m-user" : "0.0.61.73",
"m-user" : "0.0.61.75",
"m-home" : "0.0.22.75",
"m-im" : "0.0.19.91",
"m-dynamic" : "0.0.7.30",
......
......@@ -12,6 +12,7 @@ class UserBIConstants {
//用户埋点板块
const val PART_ID_LOGIN_MAIN = "login_main"
const val PART_ID_LOGIN_MAIN_PREFIX = "login_main|"
const val YDL_USER_MY_PAGE="ydl_user_my_page|"
//咨询筛选页
const val PART_ID_CONSULT_FILTER_PAGE = "consult_filter_page"
//百度监测 应用启动行为
......@@ -66,7 +67,15 @@ class UserBIConstants {
const val ACTION_TYPE_QQ_THIRD_LOGIN: String = "qq_login" //QQ登录
const val ACTION_TYPE_WX_THIRD_LOGIN: String = "wx_login" //WX登录
}
class UserMyPageEvent{
companion object {
const val YDL_USER_MY_PAGE_VISIT=YDL_USER_MY_PAGE+"YDL_USER_MY_PAGE_VISIT"
const val YDL_USER_MY_PAGE_STAY_VISIT=YDL_USER_MY_PAGE+"YDL_USER_MY_PAGE_STAY_VISIT"
const val YDL_USER_MY_TOP_TYPE_CLICK= YDL_USER_MY_PAGE+"ydl_user_my_top_type_click"
const val YDL_USER_MY_MIDDLE_TYPE_CLICK= YDL_USER_MY_PAGE+"ydl_user_my_middle_type_click"
const val YDL_USER_MY_BOTTOM_TYPE_CLICK= YDL_USER_MY_PAGE+"ydl_user_my_bottom_type_click"
}
}
//====================壹点灵用户版首页(ydl_user_main_page)====================
class UserMainEvent {
companion object {
......
......@@ -12,6 +12,7 @@ import com.ydl.ydlcommon.base.BaseActivity;
import com.ydl.ydlcommon.bean.StatusBarOptions;
import com.ydl.ydlcommon.bean.VersionData;
import com.ydl.ydlcommon.utils.ApkUpdateDialog;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.ydl.ydlcommon.view.JumpTextView;
import com.ydl.ydlcommon.view.TitleBar;
import com.yidianling.common.tools.ToastUtil;
......@@ -22,6 +23,8 @@ import com.yidianling.user.ui.login.H5Activity;
import org.jetbrains.annotations.NotNull;
import static com.yidianling.user.constants.UserBIConstants.UserMyPageEvent.YDL_USER_MY_BOTTOM_TYPE_CLICK;
/**
* 关于我们呢
......@@ -205,6 +208,7 @@ public class AboutUsActivity extends BaseActivity implements View.OnClickListen
H5Params mediaH5Params = new H5Params("https://m.yidianling.com/about?type=media", "媒体报道");
NewH5Activity.start(this, mediaH5Params);
} else if (id == R.id.jtv_about_us) {//联系我们
ActionCountUtils.Companion.count(YDL_USER_MY_BOTTOM_TYPE_CLICK,"关于我们");
H5Params aboutUsH5Params = new H5Params("https://m.yidianling.com/about?type=contact", "联系我们");
NewH5Activity.start(this, aboutUsH5Params);
}
......
......@@ -27,6 +27,7 @@ import com.ydl.ydlcommon.modular.ModularServiceManager;
import com.ydl.ydlcommon.utils.BuryPointUtils;
import com.ydl.ydlcommon.utils.Utils;
import com.ydl.ydlcommon.utils.YdlBuryPointUtil;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.ydl.ydlcommon.view.JumpTextView;
import com.ydl.ydlcommon.view.dialog.YDLShareDialog;
import com.ydl.ydlcommon.view.widgets.BorderCircleImageView;
......@@ -55,6 +56,12 @@ import de.greenrobot.event.EventBus;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import static com.yidianling.user.constants.UserBIConstants.UserMyPageEvent.YDL_USER_MY_BOTTOM_TYPE_CLICK;
import static com.yidianling.user.constants.UserBIConstants.UserMyPageEvent.YDL_USER_MY_MIDDLE_TYPE_CLICK;
import static com.yidianling.user.constants.UserBIConstants.UserMyPageEvent.YDL_USER_MY_PAGE_STAY_VISIT;
import static com.yidianling.user.constants.UserBIConstants.UserMyPageEvent.YDL_USER_MY_PAGE_VISIT;
import static com.yidianling.user.constants.UserBIConstants.UserMyPageEvent.YDL_USER_MY_TOP_TYPE_CLICK;
/**
* 我的Tab
......@@ -96,7 +103,8 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
*/
private JumpTextView jtv_test;
private SwipeRefreshLayout swipeRefreshLayout;
private long startTime ;
private long endTime;
@Override
public int layoutResId() {
......@@ -190,6 +198,16 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
public void onResume() {
super.onResume();
updateUI();
ActionCountUtils.Companion.count(YDL_USER_MY_PAGE_VISIT);
startTime=System.currentTimeMillis();
}
@Override
public void onStop() {
super.onStop();
endTime=System.currentTimeMillis();
ActionCountUtils.Companion.count(YDL_USER_MY_PAGE_STAY_VISIT,String.valueOf(endTime-startTime));
}
@Override
......@@ -376,22 +394,26 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
ActionCountUtils.Companion.count(YDL_USER_MY_TOP_TYPE_CLICK,"头像");
if (userInfoData != null) {
Intent intentuser = new Intent(getActivity(), PersonalInfoActivity.class);
startActivity(intentuser);
}
} else if (id == R.id.ll_account) {//账户余额
ActionCountUtils.Companion.count(YDL_USER_MY_MIDDLE_TYPE_CLICK,"账号余额");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
startActivity(new Intent(getActivity(), AccountHistoryActivity.class));
} else if (id == R.id.ll_red_packet) {//我的红包
ActionCountUtils.Companion.count(YDL_USER_MY_MIDDLE_TYPE_CLICK,"红包卡券");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
clearCouponStatus();
ModularServiceManager.INSTANCE.provide(IAppService.class).myRedPockIntent(mActivity);
} else if (id == R.id.ll_fans) {//粉丝
ActionCountUtils.Companion.count(YDL_USER_MY_TOP_TYPE_CLICK,"我的粉丝");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
......@@ -399,13 +421,14 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
H5Params h5Params = new H5Params(HttpConfig.Companion.getH5_URL() + "mine/fans-list", null);
NewH5Activity.start(getActivity(), h5Params);
} else if (id == R.id.ll_guanzhu) {//我关注的
ActionCountUtils.Companion.count(YDL_USER_MY_TOP_TYPE_CLICK,"我的关注");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
H5Params h5Params1 = new H5Params(HttpConfig.Companion.getH5_URL() + "mine/follow-per", null);
NewH5Activity.start(getActivity(), h5Params1);
} else if (id == R.id.ll_my_trends) {
ActionCountUtils.Companion.count(YDL_USER_MY_TOP_TYPE_CLICK,"我的动态");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
......@@ -418,12 +441,14 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
} catch (Exception e) {
}
} else if (id == R.id.jtv_account_setting) {//账号设置
ActionCountUtils.Companion.count(YDL_USER_MY_BOTTOM_TYPE_CLICK,"设置");
//点击消息 未登录请先登录
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
startActivity(new Intent(getActivity(), AccountSettingActivity.class));
} else if (id == R.id.jtv_account_privacy) {// 未登录请先登录
ActionCountUtils.Companion.count(YDL_USER_MY_BOTTOM_TYPE_CLICK,"帮助中心");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
......@@ -431,6 +456,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
jtv_account_privacy.setLeftRedDotVisibility(View.GONE);
startActivity(new Intent(getActivity(), PrivacyActivity.class));
} else if (id == R.id.ll_trade_order) {//预约
ActionCountUtils.Companion.count(YDL_USER_MY_MIDDLE_TYPE_CLICK,"预约订单");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
......@@ -440,11 +466,13 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
H5Params h5Params3 = new H5Params(HttpConfig.Companion.getMH5_URL() + "wb/user/order/list?needOrderHelperAlert=1", null);
NewH5Activity.start(getActivity(), h5Params3);
} else if (id == R.id.ll_my_courses) {//我的课程
ActionCountUtils.Companion.count(YDL_USER_MY_MIDDLE_TYPE_CLICK,"我的课程");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
ModularServiceManager.INSTANCE.provide(ICourseService.class).startMyCourseActivity(mActivity);
} else if (id == R.id.ll_call_order) {//倾诉
ActionCountUtils.Companion.count(YDL_USER_MY_MIDDLE_TYPE_CLICK,"倾诉记录");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
......@@ -454,10 +482,12 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
H5Params h5Paramsqing = new H5Params(HttpConfig.Companion.getYDL_H5() + "confideOrderList", null);
NewH5Activity.start(getActivity(), h5Paramsqing);
} else if (id == R.id.jtv_account_help) {//帮助
ActionCountUtils.Companion.count(YDL_USER_MY_BOTTOM_TYPE_CLICK,"帮助中心");
H5Params params = new H5Params(HttpConfig.Companion.getH5_URL() + "help/", "");
params.setShowMenu(true);
NewH5Activity.start(getActivity(), params);
} else if (id == R.id.jtv_account_enter) {//专家入驻
ActionCountUtils.Companion.count(YDL_USER_MY_BOTTOM_TYPE_CLICK,"专家入驻");
if (PlatformRamImpl.Companion.getInstance().getGlobalInfo() != null &&
PlatformRamImpl.Companion.getInstance().getGlobalInfo().info != null &&
!TextUtils.isEmpty(PlatformRamImpl.Companion.getInstance().getGlobalInfo().info.join_doctor_url)) {
......@@ -468,6 +498,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
NewH5Activity.start(getActivity(), h5Paramzhuan);
}
} else if (id == R.id.ll_my_test_log) {//测试记录
ActionCountUtils.Companion.count(YDL_USER_MY_TOP_TYPE_CLICK,"测试记录");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
......@@ -477,13 +508,16 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
H5Params testParam = new H5Params(HttpConfig.Companion.getMH5_URL() + "ceshi/my-test", "测试记录");
NewH5Activity.start(getActivity(), testParam);
} else if (id == R.id.jtv_account_share) {//分享
ActionCountUtils.Companion.count(YDL_USER_MY_BOTTOM_TYPE_CLICK,"分享");
share();
} else if (id == R.id.jtv_about_us) {
startActivity(new Intent(getActivity(), AboutUsActivity.class));
} else if (id == R.id.jtv_introduce) {
ActionCountUtils.Companion.count(YDL_USER_MY_BOTTOM_TYPE_CLICK,"壹点灵介绍");
H5Params params1 = new H5Params("https://m.yidianling.com/about", "网站介绍");
NewH5Activity.start(getActivity(), params1);
} else if (id == R.id.ll_reward) {
ActionCountUtils.Companion.count(YDL_USER_MY_MIDDLE_TYPE_CLICK,"推广返利");
if (!OneKeyLoginHelp.INSTANCE.startLoginByStatus(mActivity,true)) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment