|
|
@ -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.血脂。
|
|
|
|
//(U32)0.心率、1.血氧、2.呼吸率、3.体温、 、4.睡眠、5.血压、6.血糖、7.尿酸、8.心电,9血脂
|
|
|
|
//(U32)0.心率、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)
|
|
|
|