|
|
@ -96,6 +96,7 @@ class HealthSkyHourReportAct : BaseVmAct<ReportVm>() {
|
|
|
|
private var user: ReportBean.User? = null
|
|
|
|
private var user: ReportBean.User? = null
|
|
|
|
private var isfirst: Boolean = true
|
|
|
|
private var isfirst: Boolean = true
|
|
|
|
private var isX1X2 = false
|
|
|
|
private var isX1X2 = false
|
|
|
|
|
|
|
|
private var startEventTime:Long=0L
|
|
|
|
|
|
|
|
|
|
|
|
private var isSelectTable = false
|
|
|
|
private var isSelectTable = false
|
|
|
|
private var isScrollTable = false
|
|
|
|
private var isScrollTable = false
|
|
|
@ -192,6 +193,7 @@ class HealthSkyHourReportAct : BaseVmAct<ReportVm>() {
|
|
|
|
|
|
|
|
|
|
|
|
override fun initData() {
|
|
|
|
override fun initData() {
|
|
|
|
super.initData()
|
|
|
|
super.initData()
|
|
|
|
|
|
|
|
startEventTime = System.currentTimeMillis()
|
|
|
|
isX1X2 = MMkvHelper.getBoolean(Const.X1_X2_Device, false)
|
|
|
|
isX1X2 = MMkvHelper.getBoolean(Const.X1_X2_Device, false)
|
|
|
|
isEstimate = intent.getBooleanExtra("isEstimate", false)
|
|
|
|
isEstimate = intent.getBooleanExtra("isEstimate", false)
|
|
|
|
|
|
|
|
|
|
|
@ -764,6 +766,10 @@ class HealthSkyHourReportAct : BaseVmAct<ReportVm>() {
|
|
|
|
timeMill - (24 * 60 * 60 * 1000),
|
|
|
|
timeMill - (24 * 60 * 60 * 1000),
|
|
|
|
SimpleDateFormat("MM-dd")
|
|
|
|
SimpleDateFormat("MM-dd")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
val yestDay1 = RxTimeTool.milliseconds2String(
|
|
|
|
|
|
|
|
timeMill - (24 * 60 * 60 * 1000),
|
|
|
|
|
|
|
|
SimpleDateFormat("yyyy-MM-dd")
|
|
|
|
|
|
|
|
)
|
|
|
|
if (isDemonstrate) {
|
|
|
|
if (isDemonstrate) {
|
|
|
|
if (isfirst) {
|
|
|
|
if (isfirst) {
|
|
|
|
binding.mTvTime.text = yestDay
|
|
|
|
binding.mTvTime.text = yestDay
|
|
|
@ -771,6 +777,7 @@ class HealthSkyHourReportAct : BaseVmAct<ReportVm>() {
|
|
|
|
binding.mTvTime.text = timSelect.selectTime
|
|
|
|
binding.mTvTime.text = timSelect.selectTime
|
|
|
|
}
|
|
|
|
}
|
|
|
|
isfirst = false
|
|
|
|
isfirst = false
|
|
|
|
|
|
|
|
text = "$yestDay1 11:00:00"
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
binding.mTvTime.text = "$yestDay 11:00 至 ${
|
|
|
|
binding.mTvTime.text = "$yestDay 11:00 至 ${
|
|
|
|
it.data.healthy.createTime.substring(
|
|
|
|
it.data.healthy.createTime.substring(
|
|
|
@ -778,6 +785,7 @@ class HealthSkyHourReportAct : BaseVmAct<ReportVm>() {
|
|
|
|
10
|
|
|
|
10
|
|
|
|
)
|
|
|
|
)
|
|
|
|
} 11:00"
|
|
|
|
} 11:00"
|
|
|
|
|
|
|
|
text = "$yestDay1 11:00:00"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1993,21 +2001,21 @@ class HealthSkyHourReportAct : BaseVmAct<ReportVm>() {
|
|
|
|
val time = if (nowTime == showTime) {
|
|
|
|
val time = if (nowTime == showTime) {
|
|
|
|
RxTimeTool.curTimeString
|
|
|
|
RxTimeTool.curTimeString
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
"$showTime 12:00:00"
|
|
|
|
showTime
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (isEstimate) {
|
|
|
|
if (isEstimate) {
|
|
|
|
user?.let {
|
|
|
|
user?.let {
|
|
|
|
val aesId = AESCrypt.encrypt("${it.id}")
|
|
|
|
val aesId = AESCrypt.encrypt("${it.id}")
|
|
|
|
val subtitle = "${it.name}的24小时健康评估"
|
|
|
|
val subtitle = "${it.name}的24小时健康评估"
|
|
|
|
val url = "${BuildConfig.image_prefix}/shareApi/reportDaily/$aesId/${time}"
|
|
|
|
val url = "${BuildConfig.image_prefix}shareApi/reportDaily/$aesId/${time}"
|
|
|
|
WxUtils.shareWebPage("24小时健康评估", subtitle, this, url)
|
|
|
|
WxUtils.shareWebPage("24小时健康评估", subtitle, this, url)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
user?.let {
|
|
|
|
user?.let {
|
|
|
|
val aesId = AESCrypt.encrypt("${it.id}")
|
|
|
|
val aesId = AESCrypt.encrypt("${it.id}")
|
|
|
|
val subtitle = "${it.name}的日报数据"
|
|
|
|
val subtitle = "${it.name}的日报数据"
|
|
|
|
val url = "${BuildConfig.image_prefix}/shareApi/reportDaily/$aesId/${time}"
|
|
|
|
val url = "${BuildConfig.image_prefix}shareApi/reportDaily/$aesId/${time}"
|
|
|
|
WxUtils.shareWebPage("日报分享", subtitle, this, url)
|
|
|
|
WxUtils.shareWebPage("日报分享", subtitle, this, url)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|