中建365-二期开发-增加埋点

develop
wlh 1 year ago
parent 8ab6168b2c
commit 7f8a277e74

@ -36,7 +36,7 @@ class HealthScienceAct : BaseListAct<HomeVm> (){
bundle.clear() bundle.clear()
var bean = adapter.getItem(position) as ScienceBean var bean = adapter.getItem(position) as ScienceBean
bundle.putSerializable("bean", bean) bundle.putSerializable("bean", bean)
onEventObject(this, UmengEventId.HealthScience, "${bean.name}") // onEventObject(this, UmengEventId.HealthScience, "${bean.name}")
RouteManager.goAct(ARouterUrl.SCIENCE_DETAIL, bundle) RouteManager.goAct(ARouterUrl.SCIENCE_DETAIL, bundle)
} }

@ -6,8 +6,10 @@ import com.alibaba.android.arouter.facade.annotation.Route
import com.xty.base.act.BaseVmAct import com.xty.base.act.BaseVmAct
import com.xty.base.vm.BaseVm import com.xty.base.vm.BaseVm
import com.xty.common.Dateutils import com.xty.common.Dateutils
import com.xty.common.UmengEventId
import com.xty.common.arouter.ARouterUrl import com.xty.common.arouter.ARouterUrl
import com.xty.common.event.MessageReadEvent import com.xty.common.event.MessageReadEvent
import com.xty.common.onEventObject
import com.xty.common.util.ImageGetterUtils import com.xty.common.util.ImageGetterUtils
import com.xty.network.model.MessageBean import com.xty.network.model.MessageBean
import com.xty.network.model.MessageTypeDataBean import com.xty.network.model.MessageTypeDataBean
@ -53,5 +55,10 @@ class MessageDetailNewAct: BaseVmAct<BaseVm>() {
} }
} }
onEventObject(
baseContext,
UmengEventId.MESSAGEDETAIL
)
} }
} }

@ -40,7 +40,7 @@ class WarningMsgAct : BaseListAct<HealthVm>() {
binding.title.mIvBack.setOnClickListener { binding.title.mIvBack.setOnClickListener {
finish() finish()
} }
onEventObject(baseContext, UmengEventId.WarningMsg, "打开预警消息列表") // onEventObject(baseContext, UmengEventId.WarningMsg, "打开预警消息列表")
} }
override fun initAdapter() { override fun initAdapter() {

@ -13,10 +13,12 @@ import com.xty.network.model.ChooseAddressBean
import com.xty.base.model.ChooseCouponBean import com.xty.base.model.ChooseCouponBean
import com.xty.base.model.CreateOrderBean import com.xty.base.model.CreateOrderBean
import com.xty.base.utils.PayUtils import com.xty.base.utils.PayUtils
import com.xty.common.UmengEventId
import com.xty.common.arouter.ARouterUrl import com.xty.common.arouter.ARouterUrl
import com.xty.common.arouter.RouteManager import com.xty.common.arouter.RouteManager
import com.xty.common.event.ReChangeEvent import com.xty.common.event.ReChangeEvent
import com.xty.common.event.WxPayEvent import com.xty.common.event.WxPayEvent
import com.xty.common.onEventObject
import com.xty.common.setImage import com.xty.common.setImage
import com.xty.common.util.NumUtils import com.xty.common.util.NumUtils
import com.zj365.dc.BuildConfig import com.zj365.dc.BuildConfig
@ -90,6 +92,7 @@ class CreateGoodsOrderAct : BaseVmAct<ShopMallVm>() {
binding.title.mIvBack.setOnClickListener { binding.title.mIvBack.setOnClickListener {
finish() finish()
} }
onEventObject(baseContext, UmengEventId.CREATE_ORDER)
bean = intent.getParcelableExtra("bean") bean = intent.getParcelableExtra("bean")
onClickedListener() onClickedListener()
@ -140,6 +143,7 @@ class CreateGoodsOrderAct : BaseVmAct<ShopMallVm>() {
binding.tvDiscounts.setOnClickListener { binding.tvDiscounts.setOnClickListener {
if(hasCoup == 1){ if(hasCoup == 1){
onEventObject(baseContext, UmengEventId.COUPON)
bundle.clear() bundle.clear()
bundle.putString( bundle.putString(
"web_site_url", "web_site_url",

@ -14,8 +14,10 @@ import com.xty.base.act.BaseListAct
import com.xty.base.act.BaseVmAct import com.xty.base.act.BaseVmAct
import com.xty.common.Const import com.xty.common.Const
import com.xty.common.R import com.xty.common.R
import com.xty.common.UmengEventId
import com.xty.common.arouter.ARouterUrl import com.xty.common.arouter.ARouterUrl
import com.xty.common.arouter.RouteManager import com.xty.common.arouter.RouteManager
import com.xty.common.onEventObject
import com.xty.common.util.CommonToastUtils import com.xty.common.util.CommonToastUtils
import com.xty.network.model.GoodsRecordsBean import com.xty.network.model.GoodsRecordsBean
import com.xty.network.model.ShopCategoryBean import com.xty.network.model.ShopCategoryBean
@ -66,6 +68,7 @@ class ShopCategoryActivity : BaseVmAct<ShopMallVm>() {
} }
bean.isChecked = true bean.isChecked = true
categoryId = bean.id categoryId = bean.id
onEventObject(baseContext, UmengEventId.GOODS_CATEGORY,"id:${bean.id}")
mViewModel.getGoodsList(goodsName,categoryId,0,page) mViewModel.getGoodsList(goodsName,categoryId,0,page)
mChildCategoryAdapter.notifyDataSetChanged() mChildCategoryAdapter.notifyDataSetChanged()
} }
@ -84,6 +87,7 @@ class ShopCategoryActivity : BaseVmAct<ShopMallVm>() {
mGoodsAdapter.setOnItemClickListener { adapter, view, position -> mGoodsAdapter.setOnItemClickListener { adapter, view, position ->
var bean = adapter.data[position] as GoodsRecordsBean.GoodsBean var bean = adapter.data[position] as GoodsRecordsBean.GoodsBean
onEventObject(baseContext, UmengEventId.GOODS_DETAIL,"id:${bean.id}")
bundle.clear() bundle.clear()
bundle.putString( bundle.putString(
"web_site_url", "web_site_url",
@ -137,6 +141,7 @@ class ShopCategoryActivity : BaseVmAct<ShopMallVm>() {
} }
bean.isChecked = true bean.isChecked = true
parentId = bean.id parentId = bean.id
onEventObject(baseContext, UmengEventId.GOODS_CATEGORY,"id:${bean.id}")
mViewModel.getGoodsCategory(bean.id) mViewModel.getGoodsCategory(bean.id)
mCategoryAdapter.notifyDataSetChanged() mCategoryAdapter.notifyDataSetChanged()
} }

@ -186,7 +186,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
binding.mGriddingList.mGridView.setOnItemClickListener { _, _, position, _ -> binding.mGriddingList.mGridView.setOnItemClickListener { _, _, position, _ ->
val index = mHealthAdapter.getItem(position).type val index = mHealthAdapter.getItem(position).type
val functionType = mHealthAdapter.getItem(position).functionType val functionType = mHealthAdapter.getItem(position).functionType
onEventObject(requireContext(), UmengEventId.HealthMonitor, mHealthAdapter.getItem(position).buttonName) // onEventObject(requireContext(), UmengEventId.HealthMonitor, mHealthAdapter.getItem(position).buttonName)
when (functionType) { when (functionType) {
// 0.心率、1.血氧、2.呼吸率、3.体温、4.步数、5.睡眠、6.血压、7.血糖、8.心电、9.尿酸、10.血脂。 // 0.心率、1.血氧、2.呼吸率、3.体温、4.步数、5.睡眠、6.血压、7.血糖、8.心电、9.尿酸、10.血脂。
//U320.心率、1.血氧、2.呼吸率、3.体温、 、4.睡眠、5.血压、6.血糖、7.尿酸、8.心电,9血脂 //U320.心率、1.血氧、2.呼吸率、3.体温、 、4.睡眠、5.血压、6.血糖、7.尿酸、8.心电,9血脂
@ -283,6 +283,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
} }
//评估 //评估
R.id.mCard -> { R.id.mCard -> {
onEventObject(requireContext(), UmengEventId.Health24HourReport)
bundle.clear() bundle.clear()
bundle.putSerializable("index", ReportVm.ReportInfoType.Hour) bundle.putSerializable("index", ReportVm.ReportInfoType.Hour)
bundle.putString("id", showIdInfo) bundle.putString("id", showIdInfo)
@ -297,6 +298,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
} }
//健康监测 //健康监测
R.id.mSub -> { R.id.mSub -> {
onEventObject(requireContext(), UmengEventId.TODAYDATADETAIL)
goPage(0,"") goPage(0,"")
} }
//健康对比 //健康对比
@ -335,7 +337,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
} }
//日报 //日报
R.id.mDailyReports -> { R.id.mDailyReports -> {
onEventObject(requireContext(), UmengEventId.HealthReport, "动态管理") onEventObject(requireContext(), UmengEventId.DAILYPAPER)
bundle.clear() bundle.clear()
bundle.putString("id", showIdInfo) bundle.putString("id", showIdInfo)
bundle.putSerializable("index", ReportVm.ReportInfoType.Day) bundle.putSerializable("index", ReportVm.ReportInfoType.Day)
@ -348,7 +350,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
} }
//周报 //周报
R.id.mWeeklyReports -> { R.id.mWeeklyReports -> {
onEventObject(requireContext(), UmengEventId.HealthReport, "动态管理") onEventObject(requireContext(), UmengEventId.WEEKLYPAPER)
bundle.clear() bundle.clear()
bundle.putString("id", showIdInfo) bundle.putString("id", showIdInfo)
bundle.putSerializable("index", ReportVm.ReportInfoType.Week) bundle.putSerializable("index", ReportVm.ReportInfoType.Week)
@ -360,7 +362,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
} }
//月报 //月报
R.id.mMonthlyReports -> { R.id.mMonthlyReports -> {
onEventObject(requireContext(), UmengEventId.HealthReport, "动态管理") onEventObject(requireContext(), UmengEventId.MONTHLY)
bundle.clear() bundle.clear()
bundle.putString("id", showIdInfo) bundle.putString("id", showIdInfo)
bundle.putSerializable("index", ReportVm.ReportInfoType.Month) bundle.putSerializable("index", ReportVm.ReportInfoType.Month)
@ -372,7 +374,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
} }
//年报 //年报
R.id.mAnnualReports -> { R.id.mAnnualReports -> {
onEventObject(requireContext(), UmengEventId.HealthReport, "动态管理") onEventObject(requireContext(), UmengEventId.ANNUALREPORT)
bundle.clear() bundle.clear()
bundle.putString("id", showIdInfo) bundle.putString("id", showIdInfo)
bundle.putSerializable("index", ReportVm.ReportInfoType.Year) bundle.putSerializable("index", ReportVm.ReportInfoType.Year)
@ -384,6 +386,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
} }
//24小时健康评估 //24小时健康评估
R.id.llSkyHourReport -> { R.id.llSkyHourReport -> {
onEventObject(requireContext(), UmengEventId.HOURSFOR24)
bundle.clear() bundle.clear()
bundle.putSerializable("index", ReportVm.ReportInfoType.Hour) bundle.putSerializable("index", ReportVm.ReportInfoType.Hour)
bundle.putString("id", showIdInfo) bundle.putString("id", showIdInfo)
@ -395,6 +398,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
} }
//近7天健康评估 //近7天健康评估
R.id.llHebdomadReport -> { R.id.llHebdomadReport -> {
onEventObject(requireContext(), UmengEventId.HEALTHFOR7DAY)
bundle.clear() bundle.clear()
bundle.putSerializable("index", ReportVm.ReportInfoType.Week) bundle.putSerializable("index", ReportVm.ReportInfoType.Week)
bundle.putString("id", showIdInfo) bundle.putString("id", showIdInfo)
@ -407,6 +411,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() , EasyPermission
} }
//近30天健康评估 //近30天健康评估
R.id.llThirtyDaysReport -> { R.id.llThirtyDaysReport -> {
onEventObject(requireContext(), UmengEventId.HEALTHFOR30DAY)
bundle.clear() bundle.clear()
bundle.putSerializable("index", ReportVm.ReportInfoType.Week) bundle.putSerializable("index", ReportVm.ReportInfoType.Week)
bundle.putString("id", showIdInfo) bundle.putString("id", showIdInfo)

@ -116,7 +116,7 @@ HealthHomeFrag : BaseVmFrag<HomeVm>() {
onEventObject( onEventObject(
requireContext(), requireContext(),
UmengEventId.Banner, UmengEventId.Banner,
"type:${bannerBean.bannerType}; 标题:${bannerBean.title}" "url:${bannerBean.linkAddress}"
) )
when (bannerBean.bannerType) { when (bannerBean.bannerType) {
1 -> {//图片 1 -> {//图片
@ -172,7 +172,7 @@ HealthHomeFrag : BaseVmFrag<HomeVm>() {
onEventObject( onEventObject(
requireContext(), requireContext(),
UmengEventId.Banner, UmengEventId.Banner,
"type:${bannerBean.bannerType}; 标题:${bannerBean.title}" "url:${bannerBean.linkAddress}"
) )
when (bannerBean.bannerType) { when (bannerBean.bannerType) {
1 -> {//图片 1 -> {//图片
@ -234,7 +234,6 @@ HealthHomeFrag : BaseVmFrag<HomeVm>() {
bundle.clear() bundle.clear()
var bean = adapter.getItem(position) as ScienceBean var bean = adapter.getItem(position) as ScienceBean
bundle.putSerializable("bean", bean) bundle.putSerializable("bean", bean)
onEventObject(requireContext(), UmengEventId.HealthScience, "${bean.name}")
RouteManager.goAct(ARouterUrl.SCIENCE_DETAIL, bundle) RouteManager.goAct(ARouterUrl.SCIENCE_DETAIL, bundle)
} }
@ -245,6 +244,11 @@ HealthHomeFrag : BaseVmFrag<HomeVm>() {
var contentData = adapter.getItem(position) as HomeLayoutBean.HomeChildBean var contentData = adapter.getItem(position) as HomeLayoutBean.HomeChildBean
onEventObject(
requireContext(),
UmengEventId.FUNCTION,
"id:${contentData.id}"
)
when(contentData.jumpType){ when(contentData.jumpType){
1 ->{ 1 ->{
@ -333,6 +337,11 @@ HealthHomeFrag : BaseVmFrag<HomeVm>() {
layoutContentAdapter.setOnItemClickListener { adapter, view, position -> layoutContentAdapter.setOnItemClickListener { adapter, view, position ->
var contentData = adapter.getItem(position) as HomeLayoutBean.HomeChildBean var contentData = adapter.getItem(position) as HomeLayoutBean.HomeChildBean
onEventObject(
requireContext(),
UmengEventId.FUNCTION,
"id:${contentData.id}"
)
when(contentData.jumpType){ when(contentData.jumpType){
1 ->{ 1 ->{
contentData.jumpUrl?.let { contentData.jumpUrl?.let {

@ -206,6 +206,7 @@ class MineFrag : BaseVmFrag<SettingVm>() , EasyPermissions.PermissionCallbacks{
if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){ if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){
RouteManager.goAct(ARouterUrl.LOGIN_ACT) RouteManager.goAct(ARouterUrl.LOGIN_ACT)
}else { }else {
onEventObject(requireContext(), UmengEventId.HealthRisk)
bundle.clear() bundle.clear()
bundle.putString("id", showIdInfo) bundle.putString("id", showIdInfo)
RouteManager.goAct(ARouterUrl.SUBMIT_REPORTMain, bundle) RouteManager.goAct(ARouterUrl.SUBMIT_REPORTMain, bundle)
@ -310,6 +311,7 @@ class MineFrag : BaseVmFrag<SettingVm>() , EasyPermissions.PermissionCallbacks{
}else { }else {
otherInfo?.let { otherInfo?.let {
if (!TextUtils.isEmpty(it.start_business)){ if (!TextUtils.isEmpty(it.start_business)){
onEventObject(requireContext(), UmengEventId.StartBus)
bundle.clear() bundle.clear()
bundle.putString( bundle.putString(
"web_site_url", "web_site_url",
@ -390,6 +392,7 @@ class MineFrag : BaseVmFrag<SettingVm>() , EasyPermissions.PermissionCallbacks{
if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){ if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){
RouteManager.goAct(ARouterUrl.LOGIN_ACT) RouteManager.goAct(ARouterUrl.LOGIN_ACT)
}else { }else {
onEventObject(requireContext(), UmengEventId.EnterpriseData)
RouteManager.goAct(ARouterUrl.ENTERPRISE_INFO) RouteManager.goAct(ARouterUrl.ENTERPRISE_INFO)
// CommonToastUtils.showToast("敬请期待") // CommonToastUtils.showToast("敬请期待")
} }
@ -415,6 +418,7 @@ class MineFrag : BaseVmFrag<SettingVm>() , EasyPermissions.PermissionCallbacks{
}else { }else {
otherInfo?.let { otherInfo?.let {
if (!TextUtils.isEmpty(it.operation_guide)){ if (!TextUtils.isEmpty(it.operation_guide)){
onEventObject(requireContext(), UmengEventId.OperGuide)
bundle.clear() bundle.clear()
bundle.putString("title", "操作手册") bundle.putString("title", "操作手册")
bundle.putBoolean("isAgree", false) bundle.putBoolean("isAgree", false)

@ -16,8 +16,10 @@ import com.tamsiree.rxkit.RxKeyboardTool
import com.xty.base.fragment.BaseFragList import com.xty.base.fragment.BaseFragList
import com.xty.base.fragment.BaseVmFrag import com.xty.base.fragment.BaseVmFrag
import com.xty.base.vm.BaseVm import com.xty.base.vm.BaseVm
import com.xty.common.UmengEventId
import com.xty.common.arouter.ARouterUrl import com.xty.common.arouter.ARouterUrl
import com.xty.common.arouter.RouteManager import com.xty.common.arouter.RouteManager
import com.xty.common.onEventObject
import com.xty.common.util.CommonToastUtils import com.xty.common.util.CommonToastUtils
import com.xty.common.weight.ExpandStaggeredManager import com.xty.common.weight.ExpandStaggeredManager
import com.xty.network.model.GoodsRecordsBean import com.xty.network.model.GoodsRecordsBean
@ -48,6 +50,7 @@ class ShopFragment: BaseFragList<ShopMallVm>() {
mCategoryAdapter.setOnItemClickListener { adapter, view, position -> mCategoryAdapter.setOnItemClickListener { adapter, view, position ->
var bean = adapter.data[position] as ShopCategoryBean var bean = adapter.data[position] as ShopCategoryBean
onEventObject(requireContext(), UmengEventId.GOODS_CATEGORY,"id:${bean.id}")
bundle.clear() bundle.clear()
bundle.putLong("id",bean.id) bundle.putLong("id",bean.id)
bundle.putParcelableArrayList("categoryList",adapter.data as ArrayList<ShopCategoryBean>) bundle.putParcelableArrayList("categoryList",adapter.data as ArrayList<ShopCategoryBean>)
@ -58,6 +61,7 @@ class ShopFragment: BaseFragList<ShopMallVm>() {
mGoodsAdapter.setOnItemClickListener { adapter, view, position -> mGoodsAdapter.setOnItemClickListener { adapter, view, position ->
var bean = adapter.data[position] as GoodsRecordsBean.GoodsBean var bean = adapter.data[position] as GoodsRecordsBean.GoodsBean
onEventObject(requireContext(), UmengEventId.GOODS_DETAIL,"id:${bean.id}")
bundle.clear() bundle.clear()
bundle.putString( bundle.putString(
"web_site_url", "web_site_url",

@ -10,8 +10,10 @@ import com.bumptech.glide.request.transition.Transition
import com.xty.base.databinding.DialogActivitiesBinding import com.xty.base.databinding.DialogActivitiesBinding
import com.xty.common.R import com.xty.common.R
import com.xty.common.SizeUtil import com.xty.common.SizeUtil
import com.xty.common.UmengEventId
import com.xty.common.arouter.ARouterUrl import com.xty.common.arouter.ARouterUrl
import com.xty.common.arouter.RouteManager import com.xty.common.arouter.RouteManager
import com.xty.common.onEventObject
import com.xty.common.setBigImage import com.xty.common.setBigImage
import com.xty.common.setImage import com.xty.common.setImage
import com.xty.common.setImageUser import com.xty.common.setImageUser
@ -48,6 +50,7 @@ class DialogActivities (context:Context,var bannerBean: BannerBean?): BaseDialog
bundle.putString("title", bean.title) bundle.putString("title", bean.title)
bundle.putString("url", it) bundle.putString("url", it)
RouteManager.goAct(ARouterUrl.WEB_ACT, bundle) RouteManager.goAct(ARouterUrl.WEB_ACT, bundle)
onEventObject(context, UmengEventId.DIALOG)
} }
} }

@ -21,38 +21,128 @@ fun onEventObject(context: Context, event:UmengEventId, params: String = ""){
} }
enum class UmengEventId(val eventId: String) { enum class UmengEventId(val eventId: String) {
/**/
DIALOG("clickPop-upWindow"),
/*金刚区*/
FUNCTION("clikcFunction"),
/**健康方案**/ /**健康方案**/
HealthProgrammes("Android_Healthprogrammes"), FAMILY("clickFamily"),
/**佩戴管理**/ /**佩戴管理**/
WearManager("Android_WearManager"), WearManager("Android_WearManager"),
/**操作指南**/ /**操作指南**/
OperGuide("Android_Operationguide"), OperGuide("clickOperationGuide"),
/**健康监测**/
HealthMonitor("Android_Healthmonitoring"),
/**健康科普**/
HealthScience("Android_Healthsciencepopularization"),
/**健康报告**/
HealthReport("Android_Healthreport"),
/**24小时报告**/ /**24小时报告**/
Health24HourReport("Android_24Hour"), Health24HourReport("click24HoursDetails"),
/**健康榜单**/ /**绑定监护人**/
HealthRank("Android_Healthlist"), BINDINGGUARDIAN("clickBindingGuardian"),
/**健康管家**/
HealthAdmin("Android_HealthHousekeeper"),
/**风险评估**/ /**风险评估**/
HealthRisk("Android_riskassessment"), HealthRisk("showRisk"),
/**家人**/
Family("Android_family"),
/**健康打卡**/
HealthDk("Android_Healthpunch"),
/**轮播图**/ /**轮播图**/
Banner("Android_banner"), Banner("clickBanner"),
/**预警消息**/ /**
WarningMsg("Android_WarningMsg"), * 今日数据详情
/**30天预警**/ */
Health30Day("Android_30day"), TODAYDATADETAIL("clickTodayDataDetails"),
/**我的家人**/ /**
MyFamily("Android_Myfamily"), * 日报
*/
DAILYPAPER("clickDailyPaper"),
/**
* 周报
*/
WEEKLYPAPER("clickWeeklyPaper"),
/**
* 月报
*/
MONTHLY("clickMonthly"),
/**
* 年报
*/
ANNUALREPORT("clickAnnualReport"),
/**
* 24小时
*/
HOURSFOR24("click24Hours"),
/**
* 7
*/
HEALTHFOR7DAY("click7Day"),
/**
* 30
*/
HEALTHFOR30DAY("click30Day"),
/**
* 消息详情
*/
MESSAGEDETAIL("clickMsgDetails"),
/**
* 商品详情
*/
GOODS_DETAIL("clickProductDetails"),
/**
*商品分类
*/
GOODS_CATEGORY("clickProductType"),
/**
* 创建订单
*/
CREATE_ORDER("creatOrder"),
/**
* 优惠券
*/
COUPON("clickCoupon"),
/**
* 个人信息编辑
*/
SAVE_USERINFO("saveUserinfo"),
/**
* 健康档案
*/
HEALTHRECORD("showHealthRecord"),
/**
* 健康监测
*/
HEALTH_MONITORING("showHealthMonitoring"),
/**
* 健康日报
*/
HEALTH_DAILY("showHealthDaily"),
/**
* 数据对比
*/
COMPARSION("showDataComparison"),
/**
*疾病预警
*/
Health30Day("showDiseaseWarning"),
/**
* 企业资料
*/
EnterpriseData("clickEnterpriseData"),
/**
* 2999创业
*/
StartBus("click2999"),
/**
*穿戴解绑
*/
Unbind("clickUnbind"),
/**
* 舌诊支付
*/
TonguePay("clickTonguePay"),
/**
* 防癌支付
*/
CancerPay("clickCancerPay")
} }

@ -81,7 +81,7 @@ class ARouterUrl {
const val QUEST_DETAIL = "/health/com/zj365/health/act/QuestDetailAct" const val QUEST_DETAIL = "/health/com/zj365/health/act/QuestDetailAct"
// const val FRIEND_WATCH = "/health/com/zj365/health/act/FriendWatchAct" // const val FRIEND_WATCH = "/health/com/zj365/health/act/FriendWatchAct"
const val COMPARE_DATA_ACT = "/health/com/zj365/health/act/CompareAct" const val COMPARE_DATA_ACT = "/health/com/zj365/health/act/CompareAct"
const val COMPARE_PAGE_DATA_ACT = "/health/com/zj365/health/act/ComparePageAct" const val COMPARE_PAGE_DATA_ACT = "/health/com/zj365/health/act/ComparePageDataAct"
// const val BLOOD_STUDY_NEED_KNOW = "/health/com/zj365/health/act/BloodStudyNeedKnowAct" // const val BLOOD_STUDY_NEED_KNOW = "/health/com/zj365/health/act/BloodStudyNeedKnowAct"
const val XINLV_EXCEPTION_DATA_ACT = "/health/com/zj365/health/act/XinLvExceptionAct" const val XINLV_EXCEPTION_DATA_ACT = "/health/com/zj365/health/act/XinLvExceptionAct"
const val URIC_ACID_EXCEPTION_DATA_ACT = "/health/com/zj365/health/act/UricAcidExceptionAct" const val URIC_ACID_EXCEPTION_DATA_ACT = "/health/com/zj365/health/act/UricAcidExceptionAct"
@ -95,7 +95,7 @@ class ARouterUrl {
const val BODY_INFO_SHOW_OR_ADD = "/health/com/zj365/health/act/BodyInfoShowOrAddAct" const val BODY_INFO_SHOW_OR_ADD = "/health/com/zj365/health/act/BodyInfoShowOrAddAct"
/*AI防癌*/ /*AI防癌*/
const val PRVENT_CANCER = "/health/com/zj365/health/act/PreventCanceltAct" const val PRVENT_CANCER = "/health/com/zj365/health/act/PreventCancertAct"
const val DUIHUAN = "/health/com/zj365/health/act/DuihuanmaAct" const val DUIHUAN = "/health/com/zj365/health/act/DuihuanmaAct"
const val PAY_SUCCESS = "/health/com/zj365/health/act/PaySuccessAct" const val PAY_SUCCESS = "/health/com/zj365/health/act/PaySuccessAct"
const val AGREE = "/health/com/zj365/health/act/AGREE" const val AGREE = "/health/com/zj365/health/act/AGREE"

@ -28,12 +28,14 @@ import com.xty.common.LogUtils
import com.xty.common.MMkvHelper import com.xty.common.MMkvHelper
import com.xty.common.TimeSelect import com.xty.common.TimeSelect
import com.xty.common.TimeUtils import com.xty.common.TimeUtils
import com.xty.common.UmengEventId
import com.xty.common.aMapUtils.AmapInit import com.xty.common.aMapUtils.AmapInit
import com.xty.common.arouter.ARouterUrl import com.xty.common.arouter.ARouterUrl
import com.xty.common.arouter.RouteManager import com.xty.common.arouter.RouteManager
import com.xty.common.bracelet.getBluePermission import com.xty.common.bracelet.getBluePermission
import com.xty.common.bracelet.isGpsOpen import com.xty.common.bracelet.isGpsOpen
import com.xty.common.event.MyInfoEvent import com.xty.common.event.MyInfoEvent
import com.xty.common.onEventObject
import com.xty.common.picture.PictureUtils import com.xty.common.picture.PictureUtils
import com.xty.common.setImage import com.xty.common.setImage
import com.xty.common.setImageUser import com.xty.common.setImageUser
@ -449,6 +451,10 @@ class BaseInfoChangeAct : BaseVmAct<BaseInfoVm>() , EasyPermissions.PermissionCa
CommonToastUtils.showToast("请输入关系") CommonToastUtils.showToast("请输入关系")
return return
} }
onEventObject(
baseContext,
UmengEventId.SAVE_USERINFO
)
mViewModel.submit( mViewModel.submit(
paht, paht,

@ -16,6 +16,7 @@ import com.xty.common.Const
import com.xty.common.LogUtils import com.xty.common.LogUtils
import com.xty.common.MMkvHelper import com.xty.common.MMkvHelper
import com.xty.common.MyLinkedMovementMethod import com.xty.common.MyLinkedMovementMethod
import com.xty.common.UmengEventId
import com.xty.common.aMapUtils.AmapInit import com.xty.common.aMapUtils.AmapInit
import com.xty.common.arouter.ARouterUrl import com.xty.common.arouter.ARouterUrl
import com.xty.common.arouter.RouteManager import com.xty.common.arouter.RouteManager
@ -24,6 +25,7 @@ import com.xty.common.event.BlueToothConnectEvent
import com.xty.common.event.MyInfoEvent import com.xty.common.event.MyInfoEvent
import com.xty.common.event.ReChangeEvent import com.xty.common.event.ReChangeEvent
import com.xty.common.event.UnBinderEvent import com.xty.common.event.UnBinderEvent
import com.xty.common.onEventObject
import com.xty.common.setImage import com.xty.common.setImage
import com.xty.common.util.PermissionUtils import com.xty.common.util.PermissionUtils
import com.xty.network.MyRetrofit import com.xty.network.MyRetrofit
@ -59,6 +61,7 @@ class DevInfoAct : BaseVmAct<SettingVm>() , EasyPermissions.PermissionCallbacks
var devInfo: UserEquipmentInformationizationBean? = null var devInfo: UserEquipmentInformationizationBean? = null
private val unBindDialog by lazy { private val unBindDialog by lazy {
FactorySettingDialog(this, getString(R.string.dialog_un_bind)) { FactorySettingDialog(this, getString(R.string.dialog_un_bind)) {
onEventObject(baseContext, UmengEventId.Unbind)
//确认解除绑定 //确认解除绑定
mViewModel.unBind() mViewModel.unBind()
} }

@ -31,7 +31,7 @@ class MessageDetailAct: IBaseAct() {
} }
binding.mMsg.text=content binding.mMsg.text=content
onEventObject(baseContext, UmengEventId.WarningMsg, "查看预警消息详情$content") // onEventObject(baseContext, UmengEventId.WarningMsg, "查看预警消息详情$content")
} }
override fun initView() { override fun initView() {

Loading…
Cancel
Save