中建365

develop
wlh 2 years ago
parent 8bbaa5fc45
commit 778116e36e

@ -130,6 +130,10 @@
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity android:name=".activity.OneKeyBinderDeviceAct"
android:launchMode="singleTop"
android:screenOrientation="portrait"/>
<activity <activity
android:name="com.xty.server.act.ScienceDetailAct" android:name="com.xty.server.act.ScienceDetailAct"
android:launchMode="singleTop" android:launchMode="singleTop"
@ -292,6 +296,10 @@
<activity android:name="com.xty.base.act.RichTextAct" <activity android:name="com.xty.base.act.RichTextAct"
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="portrait"/> android:screenOrientation="portrait"/>
<activity
android:name="com.xty.common.xqr_code.XQRCodeAct"
android:launchMode="singleTop"
android:screenOrientation="portrait"/>
</application> </application>

@ -197,6 +197,7 @@ class LoginAct : BaseVmAct<LoginVm>() {
*/ */
fun initTab() { fun initTab() {
binding.tabTitle.removeAllTabs()
tabName.forEach { tabName.forEach {
var tab = binding.tabTitle.newTab() var tab = binding.tabTitle.newTab()
tab.text = it tab.text = it

@ -0,0 +1,99 @@
package com.zj365.dc.activity
import android.content.Intent
import android.view.View
import com.alibaba.android.arouter.facade.annotation.Route
import com.google.gson.Gson
import com.tencent.qcloud.tuikit.tuichat.util.PermissionHelper
import com.xty.base.act.BaseVmAct
import com.xty.base.vm.BaseVm
import com.xty.common.LogUtils
import com.xty.common.arouter.ARouterUrl
import com.xty.common.util.CommonToastUtils
import com.xty.common.xqr_code.XQRCodeAct
import com.xuexiang.xqrcode.XQRCode
import com.zj365.dc.databinding.ActBinderDeviceOneKeyBinding
import com.zj365.dc.model.ScanInfoBean
@Route(path = ARouterUrl.DEVICE_ACTIVE)
class OneKeyBinderDeviceAct : BaseVmAct<BaseVm>() {
val binding by lazy { ActBinderDeviceOneKeyBinding.inflate(layoutInflater) }
override fun liveObserver() {
}
override fun initView() {
super.initView()
statusBar(binding.title.mView)
binding.title.mTvTitle.text ="一键绑定"
binding.title.mIvBack.setOnClickListener {
finish()
}
binding.tvScan.setOnClickListener {
startScan()
}
binding.tvBackHome.setOnClickListener {
}
}
override fun initData() {
super.initData()
}
private fun startScan() {
PermissionHelper.requestPermission(PermissionHelper.PERMISSION_CAMERA, object :
PermissionHelper.PermissionCallback {
override fun onGranted() {
// XQRCode.startScan(this@DeviceActiveAct, QRCODE_AGREEMENT)
XQRCodeAct.start(
this@OneKeyBinderDeviceAct,
XQRCodeAct.QRCODE_AGREEMENT,
com.zj365.health.R.style.XQRCodeTheme_Custom
)
}
override fun onDenied() {
}
})
}
override fun setLayout() = binding.root
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (resultCode === RESULT_OK) {
when (requestCode) {
XQRCodeAct.QRCODE_AGREEMENT -> {
when (data!!.getIntExtra(XQRCode.RESULT_TYPE, 0)) {
XQRCode.RESULT_SUCCESS -> {
try {
val result = data.extras!!.getString(XQRCode.RESULT_DATA)
LogUtils.d("扫描结果:$result")
binding.tvErrorMsg.visibility = View.GONE
if (!result.isNullOrEmpty()) {
val gson = Gson()
var scanInfoBean = gson.fromJson(result, ScanInfoBean::class.java)
} else {
binding.tvErrorMsg.visibility = View.VISIBLE
binding.tvScan.text = "继续绑定"
}
} catch (e: Exception) {
binding.tvErrorMsg.visibility = View.VISIBLE
binding.tvScan.text = "继续绑定"
}
}
XQRCode.RESULT_FAILED -> {
binding.tvErrorMsg.visibility = View.VISIBLE
binding.tvScan.text = "继续绑定"
}
}
}
}
}
}
}

@ -99,9 +99,9 @@ class HealthMonitoringAdapter(
val buttonContent = healthMonitoringListBean.buttonContent val buttonContent = healthMonitoringListBean.buttonContent
setStrSpan( setStrSpan(
buttonContent, buttonContent,
18, 14,
ContextCompat.getColor( ContextCompat.getColor(
context, R.color.col_464 context, R.color.col_313
), ),
Typeface.BOLD, Typeface.BOLD,
0, 0,
@ -118,9 +118,9 @@ class HealthMonitoringAdapter(
val buttonContent = healthMonitoringListBean.buttonContent val buttonContent = healthMonitoringListBean.buttonContent
setStrSpan( setStrSpan(
buttonContent + context.getString(units[healthMonitoringListBean.type]), buttonContent + context.getString(units[healthMonitoringListBean.type]),
18, 14,
ContextCompat.getColor( ContextCompat.getColor(
context, R.color.col_464 context, R.color.col_313
), ),
Typeface.BOLD, Typeface.BOLD,
0, 0,

@ -35,6 +35,7 @@ import com.xty.common.bracelet.checkBlueConnectPermission
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.BlueToothConnectEvent import com.xty.common.event.BlueToothConnectEvent
import com.xty.common.event.ChangeFamilyEvent
import com.xty.common.event.FamilyEvent import com.xty.common.event.FamilyEvent
import com.xty.common.event.Health24HourStatusEvent import com.xty.common.event.Health24HourStatusEvent
import com.xty.common.event.MyInfoEvent import com.xty.common.event.MyInfoEvent
@ -87,7 +88,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
override fun setViewModel() = DynamicManagementVm() override fun setViewModel() = DynamicManagementVm()
//家人列表适配器 //家人列表适配器
private val mFamilyAdapter by lazy { FamilyAdapter() } // private val mFamilyAdapter by lazy { FamilyAdapter() }
private val dialogInfoUn by lazy { private val dialogInfoUn by lazy {
DialogTip(requireContext(), "请完善基本信息") { DialogTip(requireContext(), "请完善基本信息") {
@ -301,7 +302,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
*/ */
@SuppressLint("NotifyDataSetChanged") @SuppressLint("NotifyDataSetChanged")
private fun initFamilyAdapter() { private fun initFamilyAdapter() {
binding.mRecycle.layoutManager = /*binding.mRecycle.layoutManager =
LinearLayoutManager(requireContext(), RecyclerView.HORIZONTAL, false) LinearLayoutManager(requireContext(), RecyclerView.HORIZONTAL, false)
binding.mRecycle.adapter = mFamilyAdapter binding.mRecycle.adapter = mFamilyAdapter
mFamilyAdapter.setOnItemClickListener { adapter, view, position -> mFamilyAdapter.setOnItemClickListener { adapter, view, position ->
@ -328,7 +329,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
// mViewModel.getDkInfo(false, showIdInfo) // mViewModel.getDkInfo(false, showIdInfo)
updateWarningStatus() updateWarningStatus()
} }
} }*/
} }
//点击事件 //点击事件
@ -596,10 +597,11 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
mViewModel.getAllInfo(showIdInfo, false) mViewModel.getAllInfo(showIdInfo, false)
// mViewModel.getDkInfo(false, showIdInfo) // mViewModel.getDkInfo(false, showIdInfo)
// 如果显示的是家人Tab则不刷新用户信息防止头像错乱 // 如果显示的是家人Tab则不刷新用户信息防止头像错乱
if (mFamilyAdapter.position < 1) { /*if (mFamilyAdapter.position < 1) {
mViewModel.getMySetting() mViewModel.getMySetting()
} }
mViewModel.getMyFamilyList() mViewModel.getMyFamilyList()*/
mViewModel.getMySetting()
mViewModel.getTips() mViewModel.getTips()
mViewModel.getRank(2) mViewModel.getRank(2)
} }
@ -825,7 +827,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
binding.mHeader.mWatchType.visibility = View.VISIBLE binding.mHeader.mWatchType.visibility = View.VISIBLE
binding.mHeader.mWearInfo.visibility = View.VISIBLE binding.mHeader.mWearInfo.visibility = View.VISIBLE
} }
if (mFamilyAdapter.position != -1) { /*if (mFamilyAdapter.position != -1) {
if (mFamilyAdapter.getItem(mFamilyAdapter.position).userJointId != bean.user.id.toInt()) { if (mFamilyAdapter.getItem(mFamilyAdapter.position).userJointId != bean.user.id.toInt()) {
if (mFamilyAdapter.position == 0 && bean.user.id.toString() == CommonUtils.getMyUserId()) {//如果是自己加载用户头像并保存用户信息 if (mFamilyAdapter.position == 0 && bean.user.id.toString() == CommonUtils.getMyUserId()) {//如果是自己加载用户头像并保存用户信息
} else { } else {
@ -833,7 +835,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
return@observe return@observe
} }
} }
} }*/
if (showIdInfo.isNotEmpty()) { //自己 if (showIdInfo.isNotEmpty()) { //自己
//// binding.mChildView.mGuide2.visibility = View.VISIBLE //// binding.mChildView.mGuide2.visibility = View.VISIBLE
@ -956,7 +958,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
return@observe return@observe
} }
if (mFamilyAdapter.position != -1) { /*if (mFamilyAdapter.position != -1) {
if (mFamilyAdapter.getItem(mFamilyAdapter.position).userJointId != it.data.user?.id) { if (mFamilyAdapter.getItem(mFamilyAdapter.position).userJointId != it.data.user?.id) {
if (mFamilyAdapter.position == 0 && it.data.user?.id.toString() == CommonUtils.getMyUserId()) {//如果是自己,啥也不做 if (mFamilyAdapter.position == 0 && it.data.user?.id.toString() == CommonUtils.getMyUserId()) {//如果是自己,啥也不做
@ -965,7 +967,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
return@observe return@observe
} }
} }
} }*/
reportBean = it.data reportBean = it.data
@ -974,7 +976,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
binding.mHeader.mBtnBind.visibility = View.GONE binding.mHeader.mBtnBind.visibility = View.GONE
binding.mHeader.mLayoutResult.visibility = View.VISIBLE binding.mHeader.mLayoutResult.visibility = View.VISIBLE
} else { //没有绑定手表 } else { //没有绑定手表
if (mFamilyAdapter.position == 0 && it.data.user?.id.toString() == CommonUtils.getMyUserId()) { //是自己,显示绑定手表 if (/*mFamilyAdapter.position == 0 &&*/ it.data.user?.id.toString() == CommonUtils.getMyUserId()) { //是自己,显示绑定手表
binding.mHeader.mBtnBind.visibility = View.VISIBLE binding.mHeader.mBtnBind.visibility = View.VISIBLE
binding.mHeader.mLayoutResult.visibility = View.GONE binding.mHeader.mLayoutResult.visibility = View.GONE
} else { //不是自己隐藏数据 } else { //不是自己隐藏数据
@ -1021,10 +1023,10 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
// 激活过才能开启定是我任务 // 激活过才能开启定是我任务
//Log.e("worker", "定时任务开启") //Log.e("worker", "定时任务开启")
if (mFamilyAdapter.data.isNotEmpty() && mFamilyAdapter.data.size > 0) { /*if (mFamilyAdapter.data.isNotEmpty() && mFamilyAdapter.data.size > 0) {
mFamilyAdapter.data[0].avatarUrl = mFamilyAdapter.data[0].avatarUrl =
if (settingBean.user.avatarUrl.isEmpty()) "" else settingBean.user.avatarUrl if (settingBean.user.avatarUrl.isEmpty()) "" else settingBean.user.avatarUrl
} }*/
//设置用户头像 //设置用户头像
setUserImage(settingBean.user.id, settingBean.user.avatarUrl, settingBean.user.sex.toString()) setUserImage(settingBean.user.id, settingBean.user.avatarUrl, settingBean.user.sex.toString())
@ -1163,7 +1165,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
} }
//我家人信息 //我家人信息
mViewModel.familyLive.observe(this) { /* mViewModel.familyLive.observe(this) {
it.data.add(0, FamilyBean().apply { it.data.add(0, FamilyBean().apply {
this.fCall = "" this.fCall = ""
}) })
@ -1197,7 +1199,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
mFamilyAdapter.position = selectPosition mFamilyAdapter.position = selectPosition
mFamilyAdapter.setNewInstance(it.data) mFamilyAdapter.setNewInstance(it.data)
} }*/
//手表信息组装上传 //手表信息组装上传
mViewModel.allDataInfo.observe(this) { mViewModel.allDataInfo.observe(this) {
@ -1591,13 +1593,13 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
} }
private fun updateWarningInfo(sysMsg: MessageBean.SysMsg?) { private fun updateWarningInfo(sysMsg: MessageBean.SysMsg?) {
if (sysMsg == null || mFamilyAdapter.position > 0) { //如果不是自己,不显示预警消息 /* if (sysMsg == null || mFamilyAdapter.position > 0) { //如果不是自己,不显示预警消息
binding.mHeader.llWarning.visibility = View.GONE binding.mHeader.llWarning.visibility = View.GONE
return return
} else if (mFamilyAdapter.position == 0 || mFamilyAdapter.position == -1) { } else if (mFamilyAdapter.position == 0 || mFamilyAdapter.position == -1) {
binding.mHeader.llWarning.visibility = View.VISIBLE binding.mHeader.llWarning.visibility = View.VISIBLE
} }*/
notifyStatus = sysMsg.notifyStatus notifyStatus = sysMsg?.notifyStatus
if (notifyStatus == 0) { if (notifyStatus == 0) {
//未读 显示预警消息 //未读 显示预警消息
binding.mHeader.llWarning.visibility = View.VISIBLE binding.mHeader.llWarning.visibility = View.VISIBLE
@ -1606,7 +1608,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
binding.mHeader.llWarning.visibility = View.GONE binding.mHeader.llWarning.visibility = View.GONE
} }
binding.mHeader.tvWarning.isSelected = true binding.mHeader.tvWarning.isSelected = true
binding.mHeader.tvWarning.text = sysMsg.notifyContent binding.mHeader.tvWarning.text = sysMsg?.notifyContent
} }
/** /**
@ -1641,7 +1643,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
} }
private fun updateWarningStatus() { private fun updateWarningStatus() {
val position = mFamilyAdapter.position /*val position = mFamilyAdapter.position
if (position == 0 || position == -1) { if (position == 0 || position == -1) {
if (notifyStatus == 0) { if (notifyStatus == 0) {
//未读 //未读
@ -1652,7 +1654,7 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
} }
} else { } else {
binding.mHeader.llWarning.visibility = View.GONE binding.mHeader.llWarning.visibility = View.GONE
} }*/
} }
/** /**
@ -1814,6 +1816,15 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>() {
mViewModel.getAllInfo(showIdInfo, false) mViewModel.getAllInfo(showIdInfo, false)
} }
@Subscribe(threadMode = ThreadMode.MAIN)
fun updateHealthInfo(event:ChangeFamilyEvent){
mViewModel.getAllInfo(event.showUserId, false)
getXtInfo(event.showUserId)
get24HourReportInfo(event.showUserId)
updateWarningStatus()
}
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
tenJob?.cancel() tenJob?.cancel()

@ -35,6 +35,7 @@ import com.xty.common.bracelet.getBluePermission
import com.xty.common.bracelet.isGpsOpen import com.xty.common.bracelet.isGpsOpen
import com.xty.common.event.AgainSignEvent import com.xty.common.event.AgainSignEvent
import com.xty.common.event.BlueToothConnectEvent import com.xty.common.event.BlueToothConnectEvent
import com.xty.common.event.ChangeFamilyEvent
import com.xty.common.event.FamilyEvent import com.xty.common.event.FamilyEvent
import com.xty.common.event.Health24HourStatusEvent import com.xty.common.event.Health24HourStatusEvent
import com.xty.common.event.MyInfoEvent import com.xty.common.event.MyInfoEvent
@ -73,6 +74,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job import kotlinx.coroutines.Job
import kotlinx.coroutines.delay import kotlinx.coroutines.delay
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import org.greenrobot.eventbus.EventBus
import org.greenrobot.eventbus.Subscribe import org.greenrobot.eventbus.Subscribe
import org.greenrobot.eventbus.ThreadMode import org.greenrobot.eventbus.ThreadMode
import org.json.JSONArray import org.json.JSONArray
@ -704,80 +706,7 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
// } // }
} }
/**
* 设置设备信息*/
/* private fun setBindDeviceInfo(deviceInfo: MainBean.DeviceTotal?) {
deviceInfo?.let {
if (it.sphygmomanometer > 0) {
binding.mChildHomeView.tvXueyaNum.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.col_02c
)
)
} else {
binding.mChildHomeView.tvXueyaNum.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.col_c7c
)
)
}
binding.mChildHomeView.tvXueyaNum.text = "已绑定" + it.sphygmomanometer + ""
if (it.bloodGlucose > 0) {
binding.mChildHomeView.tvXuetangNum.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.col_02c
)
)
} else {
binding.mChildHomeView.tvXuetangNum.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.col_c7c
)
)
}
binding.mChildHomeView.tvXuetangNum.text = "已绑定" + it.bloodGlucose + ""
if (it.bodyFatScale > 0) {
binding.mChildHomeView.tvBodyFatNum.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.col_02c
)
)
} else {
binding.mChildHomeView.tvBodyFatNum.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.col_c7c
)
)
}
binding.mChildHomeView.tvBodyFatNum.text = "已绑定${it.bodyFatScale}"
}
binding.mChildHomeView.llXueya.setOnClickListener {
//已绑定血压列表
bundle.clear()
bundle.putString("userId", showIdInfo)
RouteManager.goAct(ARouterUrl.XUEYAJI_BIND_LIST, bundle)
}
binding.mChildHomeView.llXuetang.setOnClickListener {
//已绑定血糖列表
bundle.clear()
bundle.putString("userId", showIdInfo)
RouteManager.goAct(ARouterUrl.XUETANGYI_BIND_LIST, bundle)
}
//体脂秤跳转页面
binding.mChildHomeView.llBodyFat.setOnClickListener {
bundle.clear()
bundle.putString("userId", showIdInfo)
RouteManager.goAct(ARouterUrl.BODY_FAT_BIND_LIST, bundle)
}
}*/
// 刷新注册 // 刷新注册
private fun refresh() { private fun refresh() {
@ -789,7 +718,7 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
private fun request() { private fun request() {
mViewModel.getBanners(CommonUtils.getMyUserId())//当期登录用户id mViewModel.getBanners(CommonUtils.getMyUserId())//当期登录用户id
mViewModel.getAllInfo(showIdInfo, false) // mViewModel.getAllInfo(showIdInfo, false)
// mViewModel.getDkInfo(false, showIdInfo) // mViewModel.getDkInfo(false, showIdInfo)
// 如果显示的是家人Tab则不刷新用户信息防止头像错乱 // 如果显示的是家人Tab则不刷新用户信息防止头像错乱
if (mFamilyAdapter.position < 1) { if (mFamilyAdapter.position < 1) {
@ -814,16 +743,6 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
mainScope.launch { mainScope.launch {
LogUtils.d("getDeviceInfo isOk:$isok;;; value=$value") LogUtils.d("getDeviceInfo isOk:$isok;;; value=$value")
if (isok) {//获取到设备信息,设备准备就绪上传手表数据 if (isok) {//获取到设备信息,设备准备就绪上传手表数据
// binding.mCom.visibility = View.GONE
// binding.mEle.visibility = View.VISIBLE
// binding.mEle.text = value
/*setDeviceInfo(
DeviceInfoBean(
true,
YCBBlueConnectHelper.BLEConnectState.Connected,
value
)
)*/
mViewModel.settingLive.value?.let { mViewModel.settingLive.value?.let {
MyWorkManger.setMyWork( MyWorkManger.setMyWork(
@ -834,7 +753,6 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
} else {//如果获取手表信息失败,断开连接以后让用户手动连接 } else {//如果获取手表信息失败,断开连接以后让用户手动连接
YCBBlueConnectHelper.disconnect() YCBBlueConnectHelper.disconnect()
// initBlueToothStatu()
} }
} }
} }
@ -844,95 +762,12 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
} }
} }
private fun blueTooth(): Boolean {
// CommonUtils.getBlueToothMac()?.let {
// if (!it.isNullOrEmpty()) {
// return true
// }
// }
return CommonUtils.isBlueTooth(MMkvHelper.getInt(Const.Watch_Device_Type))
}
/**
* 是否绑定了设备*/
private fun isBind(): Boolean {
// Const.mainLiveData?.value?.let {
// if (!it.user.bluetooth.isNullOrEmpty()) {
// return true
// }
// }
// return false
return true
}
/* private fun setTips(datas: List<String>) {
// val datas: List<String> = listOf(
// "《赋得古原草送别》",
// "离离原上草,一岁一枯荣。",
// "野火烧不尽,春风吹又生。",
// "远芳侵古道,晴翠接荒城。",
// "又送王孙去,萋萋满别情。"
// )
val marqueeFactory: SimpleMF<String?> = SimpleMF(context)
marqueeFactory.data = datas
binding.mCom.simpleMarqueeView.setMarqueeFactory(marqueeFactory)
binding.mCom.simpleMarqueeView.setDrawable(
getDrawable(R.mipmap.ic_tips_new),
null,
null,
null
)
if (binding.mCom.simpleMarqueeView.isFlipping) {
binding.mCom.simpleMarqueeView.stopFlipping()
}
// binding.mCom.simpleMarqueeView.flipInterval = 3 * 1000//轮播间隔时间
binding.mCom.simpleMarqueeView.startFlipping()
}*/
/* private fun updateBadgeNum(num: Int) {
if (num > 0) {
var badgeText = if (num > 99) "99+" else "$num"
binding.mBadge.text = badgeText
binding.mBadge.post {
val layoutParams = binding.mBadge.layoutParams as ViewGroup.LayoutParams
val text = binding.mBadge.text.toString()
binding.mBadgeCard.radius = binding.mBadge.height / 2f
var textWidth = binding.mBadge.paint.measureText(text)
if (binding.mBadge.height >= textWidth) { //等宽高的圆形
layoutParams.width = binding.mBadge.height
} else { //宽高不等 将宽度两边加10
layoutParams.width = textWidth.toInt() + 20
}
binding.mBadge.layoutParams = layoutParams
}
binding.mBadgeCard.visibility = View.VISIBLE
} else {
binding.mBadgeCard.visibility = View.GONE
}
}*/
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
mViewModel.getWarningMsg()
} }
override fun observer() { override fun observer() {
//预警消息
mViewModel.warningMsgLive.observe(this) {
/* updateBadgeNum(it.data.noReadNum)
val systemMessage = it.data.systemMessage
if (systemMessage != null && systemMessage.isNotEmpty()) {
val sysMsg = systemMessage[0]
updateWarningInfo(sysMsg)
} else {
updateWarningInfo(null)
}*/
}
//首页轮播图 //首页轮播图
mViewModel.bannerLive.observe(this) { mViewModel.bannerLive.observe(this) {
@ -1019,34 +854,6 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
} }
//手表数据上传
mViewModel.uploadMultiple.observe(this) {
CommonToastUtils.showSucceedToast(R.string.upload_data_success)
LogUtils.d("all data upload success ")
get24HourReportInfo(showIdInfo)//数据上传成功后获取24小时日报
getXtInfo(showIdInfo)//数据上传成功后获取血糖信息
YCBManager.deleteHistory(YCBOrder.DELETE_ALL) //删除 数据
mainScope.launch {
delay(500)
mViewModel.getAllInfo(showIdInfo, false)
}
}
//睡眠上传
mViewModel.uploadSleep.observe(this) {
//睡眠上传成功 清除睡眠数据
LogUtils.d("sleep upload success ")
YCBManager.deleteHistory(YCBOrder.SLEEP_HISTORY)
//clearSleep()
}
//步数上传
mViewModel.uploadStep.observe(this) {
//步数上传成功
//YCBManager.deleteHistory(YCBOrder.STEP_HISTORY)
LogUtils.d("step upload success ")
mViewModel.getDkInfo(false, showIdInfo)
}
//小贴士 //小贴士
mViewModel.tipsLive.observe(this) { mViewModel.tipsLive.observe(this) {
LogUtils.d("TipsData:${it.data.size}") LogUtils.d("TipsData:${it.data.size}")
@ -1054,32 +861,8 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
it.data.forEach { tipsBean -> it.data.forEach { tipsBean ->
list.add("${tipsBean.title}${tipsBean.content}") list.add("${tipsBean.title}${tipsBean.content}")
} }
// setTips(list)
} }
//步数信息
/* mViewModel.dkInfo.observe(this) {
mHealthAdapter.dkBean = it.data
mHealthAdapter.notifyDataSetChanged()
}*/
//排名信息
/* mViewModel.rankLive.observe(this) {
val content = getString(
R.string.rank_num,
if (it.data.userRank == 0) "-" else "${it.data.userRank}"
)
binding.mChildHomeView.tvBdContent.text = setStrSpan(
content,
15,
getColor(R.color.col_25C),
Typeface.BOLD,
content.length - 1 - (it.data.userRank).toString().length,
content.length - 1
)
}*/
//个人设置信息获取 //个人设置信息获取
mViewModel.settingLive.observe(this) { mViewModel.settingLive.observe(this) {
if (null == it.data) return@observe if (null == it.data) return@observe
@ -1107,193 +890,18 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
if (settingBean.user.avatarUrl.isNullOrEmpty()) "" else settingBean.user.avatarUrl if (settingBean.user.avatarUrl.isNullOrEmpty()) "" else settingBean.user.avatarUrl
} }
//设置用户头像
/* setUserImage(
settingBean.user.id,
settingBean.user.avatarUrl,
settingBean.user.sex.toString()
)*/
/*if (settingBean.user.bluetooth.isNullOrEmpty()) { //没有mac地址表示未绑定
// binding.mContent.visibility = View.VISIBLE
binding.mCom.mLayoutResult.visibility = View.GONE
binding.mCom.mBtnBind.visibility = View.VISIBLE
setDeviceInfo(DeviceInfoBean(false))
// if (!(activity as MainActivity).isDialogShow) {
// dialogBind.show()
// }
} else {
MyRetrofit.get().BLUETOOTH_MAC = settingBean.user.bluetooth
binding.mCom.mLayoutResult.visibility = View.VISIBLE
binding.mCom.mBtnBind.visibility = View.GONE
//重新签名提示
var signTime = settingBean.user.esignatureDate
if (!signTime.isNullOrEmpty()) {
var againTime = RxTimeTool.string2Milliseconds("2022-07-01 21:00:00")
var signTime = RxTimeTool.string2Milliseconds(signTime)
if (signTime < againTime) {
signDialog.show()
}
}
if (CommonUtils.isBlueTooth(MMkvHelper.getInt(Const.Watch_Device_Type))) {//如果是蓝牙设备
startGetDeviceInfoLive()
if (settingBean.user.bluetooth != MMkvHelper.getString(Const.Blue_Tooth)) {//如果不是同一设备
YCBBlueConnectHelper.disconnect()//断开蓝牙断开后收到BlueToothConnectEvent会自动连接
YCBBlueConnectHelper.cancelTimer()
} else {
LogUtils.d("startConnect::${settingBean.user.bluetooth}")
mainUIUpdate(YCBBlueConnectHelper.BLEConnectState.Connecting)//刷新蓝牙连接状态
connect(settingBean.user.bluetooth)
}
}
}*/
/* if (Const.Companion.WatchDevice.LightA3.ordinal == Const.watchType) {//如果是4G设备设置连接状态与电量信息
setDeviceInfo(
DeviceInfoBean(
true,
YCBBlueConnectHelper.BLEConnectState.Connected,
if (Const.battery.isNullOrEmpty()) "" else "电量${Const.battery}%"
)
)
get24HourReportInfo(showIdInfo)// 这里调用一次接口防止首次进入App不会刷新评估状态
}*/
MMkvHelper.put(Const.Blue_Tooth, settingBean.user.bluetooth) MMkvHelper.put(Const.Blue_Tooth, settingBean.user.bluetooth)
if (!settingBean.user.deviceId.isNullOrEmpty()) { if (!settingBean.user.deviceId.isNullOrEmpty()) {
Const.DeviceIdNum = settingBean.user.deviceId Const.DeviceIdNum = settingBean.user.deviceId
} else { } else {
Const.DeviceIdNum = "" Const.DeviceIdNum = ""
} }
// MMkvHelper.saveAccountConfig(requireContext(),settingBean.user.phone,Const.DEVICE_TYPE, settingBean.user.deviceId)
} }
//个人信息拿到之后再去获取mqtt信息 //个人信息拿到之后再去获取mqtt信息
mViewModel.getMqttInfo() mViewModel.getMqttInfo()
} }
//血糖信息获取
mViewModel.xtInfo.observe(this) {
updateBloodSugarInfo(it.data)
}
//获取首页所有信息返回
mViewModel.allData.observe(this) {
it.data.let { bean ->
if (null == bean) {
LogUtils.e("没得数据,不做任何处理!")
return@observe
}
if (bean.user.name.isNullOrEmpty() || bean.user.age.isNullOrEmpty() || bean.user.age == "0") {
dialogInfoUn.show()
}
isDemonstrate = bean.demonstrate == 1 //1 演示模式0 普通模式
(requireActivity() as MainActivity).isDemonstrate = isDemonstrate
/* if (isDemonstrate) {
binding.mCom.mWearInfo.visibility = View.INVISIBLE
binding.mCom.mWatchType.visibility = View.INVISIBLE
} else {
binding.mCom.mWatchType.visibility = View.VISIBLE
binding.mCom.mWearInfo.visibility = View.VISIBLE
}*/
if (mFamilyAdapter.position != -1) {
if (mFamilyAdapter.getItem(mFamilyAdapter.position).userJointId != bean.user.id.toInt()) {
if (mFamilyAdapter.position == 0 && bean.user?.id.toString() == CommonUtils.getMyUserId()) {//如果是自己加载用户头像并保存用户信息
} else {
LogUtils.e("当前用户与请求用户信息不一致,不作处理!")
return@observe
}
}
}
/* if (showIdInfo.isEmpty()) { //自己
// binding.mChildHomeView.mGuide2.visibility = View.VISIBLE
binding.mChildHomeView.mInter.visibility = View.VISIBLE
binding.mChildHomeView.lleach.visibility = View.VISIBLE
} else {
// binding.mChildHomeView.mGuide2.visibility = View.GONE//隐藏健康管家
binding.mChildHomeView.mInter.visibility = View.GONE//隐藏健康互动标题
binding.mChildHomeView.lleach.visibility = View.GONE//隐藏健康打卡,榜单,我的家人功能
Const.otherLiveData.value = bean
}*/
// setWeatherInfo(bean.weather)
Const.battery = bean.power
Const.watchType = bean.watchType
//设置健康物联手表是否绑定
/* if (bean.deviceType.isNullOrEmpty()) {
binding.mChildHomeView.tvWatchBind.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.col_7c7
)
)
binding.mChildHomeView.tvWatchBind.text = "未绑定手表"
} else {
binding.mChildHomeView.tvWatchBind.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.col_02c
)
)
binding.mChildHomeView.tvWatchBind.text = "已绑定手表"
}*/
MMkvHelper.put(Const.Watch_Device_Type, bean.watchType)
/*if (bean.watchType == -1) { //没有绑定设备
binding.mCom.mBindState.apply {
text = "未绑定"
val drawable = getDrawable(R.mipmap.ic_unbind)
drawable.setBounds(0, 0, drawable.minimumWidth, drawable.minimumHeight)
setCompoundDrawables(drawable, null, null, null)
visibility = View.VISIBLE
}
binding.mChildHomeView.mRelInterBD.visibility = View.GONE
binding.mCom.mConnectStatu.visibility = View.INVISIBLE
binding.mCom.mWatchType.visibility = View.INVISIBLE
binding.mCom.mWearManager.text = "绑定手表"
} else if (Const.Companion.WatchDevice.LightA3.ordinal == bean.watchType) {//如果是4G设备设置连接状态与电量信息
setDeviceInfo(
DeviceInfoBean(
true,
YCBBlueConnectHelper.BLEConnectState.Connected,
if (Const.battery.isNullOrEmpty()) "" else "电量${Const.battery}%"
)
)
} else {
if (showIdInfo.isEmpty()) { //自己
val localBlueMac = MMkvHelper.getString(Const.Blue_Tooth)
if (YCBBlueConnectHelper.getBleNowStatus() == YCBBlueConnectHelper.BLEConnectState.DisConnect) {//如果本地有蓝牙信息且属于未连接状态,则直接连接
if (localBlueMac.isEmpty()) {
mainUIUpdate(YCBBlueConnectHelper.BLEConnectState.DisConnect)//刷新蓝牙连接状态
} else {
mainUIUpdate(YCBBlueConnectHelper.BLEConnectState.Connecting)//刷新蓝牙连接状态
connect(localBlueMac)
}
} else if (YCBBlueConnectHelper.getBleNowStatus() == YCBBlueConnectHelper.BLEConnectState.Connected) {
getConnectStatus()
}
} else {
setDeviceInfo(null)
}
}
mHealthAdapter.mainBean = bean
mHealthAdapter.notifyDataSetChanged()
//总佩戴 活跃 休眠
binding.mCom.mWearInfo.text = getString(
R.string.wear_info,
bean.adorn.wearCount.toString(),
bean.adorn.activeWear.toString(),
bean.adorn.dormancy.toString()
)
setBindDeviceInfo(bean.deviceTotal)*/
}
}
//我家人信息 //我家人信息
mViewModel.familyLive.observe(this) { mViewModel.familyLive.observe(this) {
it.data.add(0, FamilyBean().apply { it.data.add(0, FamilyBean().apply {
@ -1312,17 +920,6 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
showIdInfo = "" showIdInfo = ""
} }
} }
val content =
getString(R.string.family_num, "" + "${it.data.size - 1}")
/* binding.mChildHomeView.tvFamilyContent.text = setStrSpan(
content,
15,
getColor(R.color.col_25C),
Typeface.BOLD,
content.length - 3 - (it.data.size - 1).toString().length,
content.length - 3
)*/
it.data.add(FamilyBean().apply { it.data.add(FamilyBean().apply {
this.fCall = "家人" this.fCall = "家人"
}) })
@ -1361,13 +958,6 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
mainScope.launch { mainScope.launch {
LogUtils.d("getDeviceInfo isOk:$isok;;; value=$value") LogUtils.d("getDeviceInfo isOk:$isok;;; value=$value")
if (isok) {//获取到设备信息,设备准备就绪上传手表数据 if (isok) {//获取到设备信息,设备准备就绪上传手表数据
/* setDeviceInfo(
DeviceInfoBean(
true,
YCBBlueConnectHelper.BLEConnectState.Connected,
value
)
)*/
} }
} }
} }
@ -1401,40 +991,9 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
var healthResult = it.data.healthy.result var healthResult = it.data.healthy.result
updateHealthDesc(healthResult) updateHealthDesc(healthResult)
//健康状态
// binding.mCom.mHealthStatus.setImageResource(UserInfoDefin.healthIcon[healthResult + 1])
// if (healthResult == 3) {
// binding.mCom.mHealthStatus.setCompoundDrawables(null, null, null, null)
// } else {
// var drawable = ContextCompat.getDrawable(
// requireContext(),
// UserInfoDefin.healthIcon[healthResult + 1]
// )
// drawable!!.setBounds(0, 0, drawable.minimumWidth, drawable.minimumHeight)
// binding.mCom.mHealthStatus.setCompoundDrawables(drawable, null, null, null)
// }
} }
} }
var notifyStatus: Int? = -1
/* private fun updateWarningInfo(sysMsg: MessageBean.SysMsg?) {
if (sysMsg == null || mFamilyAdapter.position > 0) { //如果不是自己,不显示预警消息
binding.mCom.llWarning.visibility = View.GONE
return
} else if (mFamilyAdapter.position == 0 || mFamilyAdapter.position == -1) {
binding.mCom.llWarning.visibility = View.VISIBLE
}
notifyStatus = sysMsg.notifyStatus
if (notifyStatus == 0) {
//未读 显示预警消息
binding.mCom.llWarning.visibility = View.VISIBLE
} else {
//已读 显示预警消息
binding.mCom.llWarning.visibility = View.GONE
}
binding.mCom.tvWarning.isSelected = true
binding.mCom.tvWarning.text = sysMsg.notifyContent
}*/
/** /**
* 通过设备型号来处理不同业务逻辑*/ * 通过设备型号来处理不同业务逻辑*/
@ -1444,14 +1003,12 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
when (MMkvHelper.getInt(Const.Watch_Device_Type)) {//如果是4GA3设备则隐藏心电板块 when (MMkvHelper.getInt(Const.Watch_Device_Type)) {//如果是4GA3设备则隐藏心电板块
Const.Companion.WatchDevice.LightA3.ordinal -> { Const.Companion.WatchDevice.LightA3.ordinal -> {
getXtInfo(showIdInfo, false)//获取血糖信息 getXtInfo(showIdInfo, false)//获取血糖信息
// get24HourReportInfo(showIdInfo)//获取24小时日报
} }
else -> { else -> {
if (!YCBBlueConnectHelper.isBlueExits()) {//检查蓝牙设备如未发现蓝牙设备则获取用户上次的血糖信息和24小时信息 if (!YCBBlueConnectHelper.isBlueExits()) {//检查蓝牙设备如未发现蓝牙设备则获取用户上次的血糖信息和24小时信息
LogUtils.d("未发现蓝牙设备...") LogUtils.d("未发现蓝牙设备...")
getXtInfo(showIdInfo)//如果手表没数据也需要获取获取血糖信息 getXtInfo(showIdInfo)//如果手表没数据也需要获取获取血糖信息
// get24HourReportInfo(showIdInfo)//如果手表没数据也需要获取24小时日报
} }
} }
} }
@ -1470,9 +1027,6 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
if (!info.errorMsg.isNullOrEmpty()) { if (!info.errorMsg.isNullOrEmpty()) {
CommonToastUtils.showToast(info.errorMsg) CommonToastUtils.showToast(info.errorMsg)
} }
/*
mHealthAdapter.xtangInfo = info
mHealthAdapter.notifyDataSetChanged()*/
} }
@ -1482,19 +1036,6 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
private fun updateHealthDesc(healthStatus: Int) { private fun updateHealthDesc(healthStatus: Int) {
canGoto24Healthresult = healthStatus != 0 && healthStatus != -1 canGoto24Healthresult = healthStatus != 0 && healthStatus != -1
/* binding.mCom.mDesc.apply {
text = UserInfoDefin.getHealthArray(requireContext())[healthStatus + 1]
//todo 数据不足 不允许进入健康管理
setTextColor(
ContextCompat.getColor(
requireContext(),
UserInfoDefin.healthCol[healthStatus + 1]
)
)
}*/
// text =
// setStrSpan(content, 13, getColor(com.xty.health.R.color.col_ff7), Typeface.BOLD, content.length - 3 - percent.length, content.length - 3)
} }
/** /**
@ -1518,44 +1059,14 @@ HealthHomeFrag : BaseVmFrag<HealthVm>() {
showFamily = bean showFamily = bean
bean.userJointId.toString() bean.userJointId.toString()
} }
/* binding.mCom.mWearManager.visibility =
if (showIdInfo.isNullOrEmpty()) View.VISIBLE else View.GONE*/
/* setUserImage(
if (showIdInfo.isNullOrEmpty()) "0" else showIdInfo,
bean.avatarUrl,
bean.sex.toString()
)*/
// binding.mCom.mUserName.text = bean.fCall
mFamilyAdapter.position = position mFamilyAdapter.position = position
mFamilyAdapter.notifyDataSetChanged() mFamilyAdapter.notifyDataSetChanged()
mViewModel.getAllInfo(showIdInfo, true) EventBus.getDefault().post(ChangeFamilyEvent(showIdInfo))
getXtInfo(showIdInfo)
mViewModel.getDkInfo(false, showIdInfo)
// updateWarningStatus()
} }
} }
} }
/**
* 设置用户头像*/
/* private fun setUserImage(userId: String, headerImage: String?, sex: String) {
binding.mCom.mHeaderImage.apply {
tag = userId
setImageUser(requireContext(), headerImage, sex)
setOnClickListener {
if (tag.toString()
.isNullOrEmpty() || tag.toString() == "0" || Const.mainLiveData.value?.user?.id.toString() == userId.toString()
) {
RouteManager.goAct(ARouterUrl.BASE_INFO_CHANGE, bundle)
}
}
}
}*/
/*
*
* 获取所有信息*/
private fun getAllData() { private fun getAllData() {

@ -59,7 +59,7 @@ class MineFrag : BaseVmFrag<SettingVm>() {
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{
RouteManager.goAct(ARouterUrl.MY_INFO) RouteManager.goAct(ARouterUrl.BASE_INFO_CHANGE)
} }
} }
@ -73,47 +73,74 @@ class MineFrag : BaseVmFrag<SettingVm>() {
} }
binding.llHealthRecord.setOnClickListener { binding.llHealthRecord.setOnClickListener {
bundle.putString("id", user?.id) if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){
RouteManager.goAct(ARouterUrl.HEALTH_RECORD, bundle) RouteManager.goAct(ARouterUrl.LOGIN_ACT)
}else {
bundle.putString("id", user?.id)
RouteManager.goAct(ARouterUrl.HEALTH_RECORD, bundle)
}
} }
binding.llDataComparsion.setOnClickListener { binding.llDataComparsion.setOnClickListener {
bundle.clear() if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){
bundle.putString("id", user?.id) RouteManager.goAct(ARouterUrl.LOGIN_ACT)
RouteManager.goAct(ARouterUrl.COMPARE_PAGE_DATA_ACT, bundle) }else {
bundle.clear()
bundle.putString("id", user?.id)
RouteManager.goAct(ARouterUrl.COMPARE_PAGE_DATA_ACT, bundle)
}
} }
binding.llSetting.setOnClickListener { binding.llSetting.setOnClickListener {
bundle.clear() if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){
bundle.putSerializable("user", user) RouteManager.goAct(ARouterUrl.LOGIN_ACT)
bundle.putBoolean("isDemonstrate", (requireActivity() as MainActivity).isDemonstrate) }else {
RouteManager.goAct(ARouterUrl.SETTING, bundle) bundle.clear()
bundle.putSerializable("user", user)
bundle.putBoolean(
"isDemonstrate",
(requireActivity() as MainActivity).isDemonstrate
)
RouteManager.goAct(ARouterUrl.SETTING, bundle)
}
} }
binding.llOrder.setOnClickListener { binding.llOrder.setOnClickListener {
bundle.clear() if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){
bundle.putString("id", user?.id) RouteManager.goAct(ARouterUrl.LOGIN_ACT)
RouteManager.goAct(ARouterUrl.ORDER_LIST, bundle) }else {
bundle.clear()
bundle.putString("id", user?.id)
RouteManager.goAct(ARouterUrl.ORDER_LIST, bundle)
}
} }
binding.llFamilyHealth.setOnClickListener { binding.llFamilyHealth.setOnClickListener {
RouteManager.goAct(ARouterUrl.FAMILY) if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){
RouteManager.goAct(ARouterUrl.LOGIN_ACT)
}else {
RouteManager.goAct(ARouterUrl.FAMILY)
}
} }
binding.llWearableDevice.setOnClickListener { binding.llWearableDevice.setOnClickListener {
CommonUtils.getMyUserInfo()?.let { if(MMkvHelper.getLong(Const.USER_ID).toString() == "0"){
if (it.watchName == null) { RouteManager.goAct(ARouterUrl.LOGIN_ACT)
RouteManager.goAct(ARouterUrl.DEVICE_CHOICE) }else {
} else { CommonUtils.getMyUserInfo()?.let {
//设备信息 if (it.watchName == null) {
// unBindDialog.show() RouteManager.goAct(ARouterUrl.DEVICE_CHOICE)
bundle.clear() } else {
bundle.putSerializable("user", it) //设备信息
RouteManager.goAct(ARouterUrl.DEV_INFO, bundle) // unBindDialog.show()
bundle.clear()
bundle.putSerializable("user", it)
RouteManager.goAct(ARouterUrl.DEV_INFO, bundle)
}
} }
} }
} }
binding.mInfo.setOnClickListener { /*binding.mInfo.setOnClickListener {
RouteManager.goAct(ARouterUrl.BASE_INFO_CHANGE, bundle) RouteManager.goAct(ARouterUrl.BASE_INFO_CHANGE, bundle)
} }*/
mViewModel.getNesProg("") mViewModel.getNesProg("")
} }
@ -126,9 +153,9 @@ class MineFrag : BaseVmFrag<SettingVm>() {
mViewModel.getMySetting() mViewModel.getMySetting()
} }
mViewModel.getScore(1) mViewModel.getScore(1)
mViewModel.getMyFamilyList() // mViewModel.getMyFamilyList()
mViewModel.getNesProg("") // mViewModel.getNesProg("")
mViewModel.getInviteCountRequest(CommonUtils.getMyUserId().toString()) // mViewModel.getInviteCountRequest(CommonUtils.getMyUserId().toString())
// mViewModel.getNotReadCount() // mViewModel.getNotReadCount()
} }
} }
@ -137,20 +164,10 @@ class MineFrag : BaseVmFrag<SettingVm>() {
/* mViewModel.familyLive.observe(this) { /* mViewModel.familyLive.observe(this) {
binding.mFamily.text = it.data.size.toString() binding.mFamily.text = it.data.size.toString()
}*/ }*/
mViewModel.progLive.observe(this) {
binding.mProg.text = it.data.size.toString()
}
mViewModel.scoreLive.observe(this) { mViewModel.scoreLive.observe(this) {
binding.mTvSource.text = (if (it.data.num.isNullOrEmpty()) "0" else it.data.num!!) binding.mIntegral.text = (if (it.data.num.isNullOrEmpty()) "0" else it.data.num!!)
} }
//设置邀请人数 //设置邀请人数
mViewModel.inviteCountLive.observe(this) {
binding.tvInviteCount.text = if (!TextUtils.isEmpty(it.data)) {
it.data
} else {
"0"
}
}
Const.mainLiveData.observe(this) { Const.mainLiveData.observe(this) {
if (null == it) { if (null == it) {

@ -0,0 +1,5 @@
package com.zj365.dc.model
data class ScanInfoBean(var watchName: String = "", var deviceCode: String = "", var activationCode: String = "")

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/col_f2f">
<include layout="@layout/title_white_bar"
android:id="@+id/title"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="@dimen/dp_17"
android:layout_marginLeft="@dimen/dp_14"
android:layout_marginRight="@dimen/dp_14"
android:gravity="center"
android:background="@drawable/shape_8round_white">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_width="@dimen/dp_204"
android:layout_height="@dimen/dp_189"
android:layout_marginTop="@dimen/dp_51"
android:background="@mipmap/bg_binder_decive_one"/>
<TextView
android:id="@+id/tv_error_msg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_15"
android:textColor="@color/col_2621"
android:text="扫码失败"
android:visibility="gone"
android:drawableLeft="@mipmap/icon_tips_error"
android:layout_marginBottom="@dimen/dp_11"
android:layout_gravity="center|bottom"/>
</FrameLayout>
<TextView
android:id="@+id/tv_scan"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
android:background="@drawable/shape_r25_02c"
android:text="扫码"
android:textStyle="bold"
android:textSize="@dimen/sp_18"
android:gravity="center"
android:textColor="@color/white"
android:layout_marginLeft="@dimen/dp_11"
android:layout_marginRight="@dimen/dp_11"
android:layout_marginTop="@dimen/dp_21"/>
<TextView
android:id="@+id/tv_back_home"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="回到首页"
android:textSize="@dimen/sp_18"
android:textColor="@color/col_7c7"
android:layout_marginBottom="@dimen/dp_34"
android:layout_marginTop="21dp"/>
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/col_313"
android:textSize="@dimen/sp_14"
android:text="提示:\n 1.请确认您的产品为中健三六五正规产品,扫描包装条形码进行验证。 \n2.请确定您的手环包装是否正常,未被拆封。 \n3.请确认您的手表是否已经激活。"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_21"
android:layout_marginRight="@dimen/dp_27"/>
</LinearLayout>

@ -159,8 +159,8 @@
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/mProg" android:id="@+id/mCoupon"
android:layout_width="wrap_content" android:layout_width="37dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0" android:text="0"
android:textColor="@color/col_313" android:textColor="@color/col_313"
@ -187,7 +187,7 @@
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/mTvSource" android:id="@+id/mTvWallet"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0" android:text="0"
@ -215,7 +215,7 @@
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/tvInviteCount" android:id="@+id/tvOrder"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0" android:text="0"

@ -70,7 +70,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dp_3" android:layout_marginBottom="@dimen/dp_3"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/sp_14" android:textSize="@dimen/sp_10"
android:textStyle="bold" android:textStyle="bold"
tools:text="sdfsdg" /> tools:text="sdfsdg" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

@ -2,7 +2,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid <solid
android:color="@color/col_8D0"/> android:color="@color/col_02c"/>
<corners android:radius="@dimen/dp_2"/> <corners android:radius="@dimen/dp_2"/>
<size <size
android:width="@dimen/dp_4" android:width="@dimen/dp_4"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -6,7 +6,7 @@ class ARouterUrl {
const val MAIN_ACT = "/com/zj365/dc/act/MainActivity" const val MAIN_ACT = "/com/zj365/dc/act/MainActivity"
const val LOGIN_ACT = "/com/zj365/dc/act/LoginAct" const val LOGIN_ACT = "/com/zj365/dc/act/LoginAct"
const val REGIST_ACT = "/com/zj365/dc/act/RegisterAct" const val REGIST_ACT = "/com/zj365/dc/act/RegisterAct"
const val DEVICE_ACTIVE = "/com/zj365/dc/act/DeviceActiveAct" const val DEVICE_ACTIVE = "/com/zj365/dc/act/OneKeyBinderDeviceAct"
const val BASIC_INFO = "/com/zj365/dc/act/BasicInfoAct" const val BASIC_INFO = "/com/zj365/dc/act/BasicInfoAct"
const val BIND_WX_PHONE = "/com/zj365/dc/act/BindWxPhone" const val BIND_WX_PHONE = "/com/zj365/dc/act/BindWxPhone"
const val DEVICE_CONNECT = "/com/zj365/dc/act/DeviceConnectAct" const val DEVICE_CONNECT = "/com/zj365/dc/act/DeviceConnectAct"

@ -0,0 +1,4 @@
package com.xty.common.event
class ChangeFamilyEvent(var showUserId:String) {
}

@ -82,5 +82,34 @@ object SpannableUtils {
return statuSpan return statuSpan
} }
fun setSpanMoney(num:Float): SpannableString{
var statuSpan = SpannableString("¥ ${num}")
//设置字体大小(绝对值,单位:像素),第二个参数boolean dip如果为true表示前面的字体大小单位为dip否则为像素
statuSpan.setSpan(
AbsoluteSizeSpan(20, true),
0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
)
//设置字体样式: NORMAL正常BOLD粗体ITALIC斜体BOLD_ITALIC粗斜体
statuSpan.setSpan(
StyleSpan(Typeface.BOLD),
0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
)
//设置字体大小(绝对值,单位:像素),第二个参数boolean dip如果为true表示前面的字体大小单位为dip否则为像素
statuSpan.setSpan(
AbsoluteSizeSpan(30, true),
1, statuSpan.length , Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
)
//设置字体样式: NORMAL正常BOLD粗体ITALIC斜体BOLD_ITALIC粗斜体
statuSpan.setSpan(
StyleSpan(Typeface.BOLD),
1, statuSpan.length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
)
return statuSpan
}
} }

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid
android:color="@color/col_02c"/>
<corners
android:radius="@dimen/dp_25"/>
</shape>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 B

After

Width:  |  Height:  |  Size: 694 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -4,15 +4,21 @@ import android.annotation.SuppressLint
import android.graphics.Bitmap import android.graphics.Bitmap
import android.graphics.BitmapFactory import android.graphics.BitmapFactory
import android.os.Build import android.os.Build
import android.text.SpannableString
import android.text.Spanned
import android.text.TextPaint
import android.text.style.ClickableSpan
import android.view.View import android.view.View
import android.webkit.WebChromeClient import android.webkit.WebChromeClient
import android.webkit.WebSettings import android.webkit.WebSettings
import android.webkit.WebView import android.webkit.WebView
import android.webkit.WebViewClient import android.webkit.WebViewClient
import androidx.core.content.ContextCompat
import com.alibaba.android.arouter.facade.annotation.Route import com.alibaba.android.arouter.facade.annotation.Route
import com.tamsiree.rxkit.RxNetTool import com.tamsiree.rxkit.RxNetTool
import com.tamsiree.rxkit.RxTool import com.tamsiree.rxkit.RxTool
import com.xty.base.act.BaseVmAct import com.xty.base.act.BaseVmAct
import com.xty.common.Const
import com.xty.common.LogUtils import com.xty.common.LogUtils
import com.xty.common.MyLinkedMovementMethod import com.xty.common.MyLinkedMovementMethod
import com.xty.common.arouter.ARouterUrl import com.xty.common.arouter.ARouterUrl
@ -60,7 +66,29 @@ class AgreeAct : BaseVmAct<PayCancerVm>() {
binding.mPrivate.setOnClickListener { binding.mPrivate.setOnClickListener {
it.isSelected = !it.isSelected it.isSelected = !it.isSelected
} }
var txtCol = ContextCompat.getColor(this, R.color.col_02c)
binding.mPrivate.movementMethod = MyLinkedMovementMethod().getInstance() binding.mPrivate.movementMethod = MyLinkedMovementMethod().getInstance()
var span = SpannableString("同意《知情同意书》")
span.setSpan(object : ClickableSpan() {
override fun onClick(widget: View) {
bundle.clear()
bundle.putString("title", "用户协议")
bundle.putInt("type", Const.AGREEMENT_1)
/* RouteManager.goActRequest(
ARouterUrl.RICH_TEXT,
this@AgreeAct,
USER_AGREEMENT,
bundle
)*/
}
override fun updateDrawState(ds: TextPaint) {
super.updateDrawState(ds)
ds.color = txtCol
ds.isUnderlineText = false
}
}, 2, span.length, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
binding.mSubmit.setOnClickListener { binding.mSubmit.setOnClickListener {
if (!binding.mPrivate.isSelected) { if (!binding.mPrivate.isSelected) {

@ -27,6 +27,7 @@ import com.xty.common.arouter.RouteManager
import com.xty.common.event.WxPayEvent import com.xty.common.event.WxPayEvent
import com.xty.common.getImageUrl import com.xty.common.getImageUrl
import com.xty.common.setImage import com.xty.common.setImage
import com.xty.common.util.SpannableUtils
import com.zj365.health.R import com.zj365.health.R
import com.zj365.health.adapter.AnswerAdapter import com.zj365.health.adapter.AnswerAdapter
import com.zj365.health.databinding.ActPreventCancerBinding import com.zj365.health.databinding.ActPreventCancerBinding
@ -142,13 +143,13 @@ class PreventCancertAct : BaseVmAct<PayCancerVm>() {
var bottomSheetDialog: BottomSheetDialog? = null var bottomSheetDialog: BottomSheetDialog? = null
fun initBottomDialog() { fun initBottomDialog() {
if (bottomSheetDialog == null) { if (bottomSheetDialog == null) {
bottomSheetDialog = BottomSheetDialog(this) bottomSheetDialog = BottomSheetDialog(this,R.style.Theme_ChartDialogManager)
bottomSheetDialog?.let { dialog -> bottomSheetDialog?.let { dialog ->
val view = LayoutInflater.from(this).inflate(R.layout.bottom_cancer, null) val view = LayoutInflater.from(this).inflate(R.layout.bottom_cancer, null)
dialog.setContentView(view) dialog.setContentView(view)
val tvprice = view.findViewById<TextView>(R.id.tvPrice) val tvprice = view.findViewById<TextView>(R.id.tvPrice)
tvprice.text = "${price}" tvprice.text = SpannableUtils.setSpanMoney(price)
val ivClose = view.findViewById<ImageView>(R.id.close_button) val ivClose = view.findViewById<ImageView>(R.id.close_button)
ivClose.setOnClickListener { ivClose.setOnClickListener {
dialog.dismiss() dialog.dismiss()
@ -207,7 +208,7 @@ class PreventCancertAct : BaseVmAct<PayCancerVm>() {
private val SDK_PAY_FLAG = 1 private val SDK_PAY_FLAG = 1
private val WEIXIN_PAY_FLAG = 2 private val WEIXIN_PAY_FLAG = 2
var price = "" var price:Float = 0f
var goodsId = "" var goodsId = ""
var orderNo = "" var orderNo = ""
var filePath = "" var filePath = ""
@ -326,7 +327,7 @@ class PreventCancertAct : BaseVmAct<PayCancerVm>() {
} }
data?.let { data?.let {
price = data.price.toString() price = data.price!!
// binding.tvPurchase.text = "¥${data.price} 立即购买" // binding.tvPurchase.text = "¥${data.price} 立即购买"
binding.tvPurchase.text = "立即购买" binding.tvPurchase.text = "立即购买"
goodsId = data.id.toString() goodsId = data.id.toString()

@ -1,5 +1,6 @@
package com.zj365.health.act.tonguediagnosis package com.zj365.health.act.tonguediagnosis
import android.graphics.Color
import android.os.Handler import android.os.Handler
import android.os.Looper import android.os.Looper
import android.os.Message import android.os.Message
@ -23,6 +24,7 @@ import com.xty.common.arouter.ARouterUrl
import com.xty.common.arouter.RouteManager import com.xty.common.arouter.RouteManager
import com.xty.common.event.WxPayEvent import com.xty.common.event.WxPayEvent
import com.xty.common.setImage import com.xty.common.setImage
import com.xty.common.util.SpannableUtils
import com.zj365.health.R import com.zj365.health.R
import com.zj365.health.databinding.ActivityTongueDiagnosisMainBinding import com.zj365.health.databinding.ActivityTongueDiagnosisMainBinding
import com.zj365.health.model.PayResult import com.zj365.health.model.PayResult
@ -86,13 +88,13 @@ class TongueDiagnosisMainActivity : BaseVmAct<TongueDiagnosisVm>() {
fun initBottomDialog() { fun initBottomDialog() {
if (bottomSheetDialog == null) { if (bottomSheetDialog == null) {
bottomSheetDialog = BottomSheetDialog(this) bottomSheetDialog = BottomSheetDialog(this,R.style.Theme_ChartDialogManager)
bottomSheetDialog?.let { dialog -> bottomSheetDialog?.let { dialog ->
val view = LayoutInflater.from(this).inflate(R.layout.bottom_cancer, null) val view = LayoutInflater.from(this).inflate(R.layout.bottom_cancer, null)
dialog.setContentView(view) dialog.setContentView(view)
val tvprice = view.findViewById<TextView>(R.id.tvPrice) val tvprice = view.findViewById<TextView>(R.id.tvPrice)
tvprice.text = "${payGoodsBean.price}" tvprice.text = SpannableUtils.setSpanMoney(payGoodsBean.price!!)
val ivClose = view.findViewById<ImageView>(R.id.close_button) val ivClose = view.findViewById<ImageView>(R.id.close_button)
ivClose.setOnClickListener { ivClose.setOnClickListener {
dialog.dismiss() dialog.dismiss()

@ -37,8 +37,8 @@ class TongueRecordAdapter: BaseAdapter<CancerGoodsBean>(R.layout.item_tongue_rec
holder.setGone(R.id.llUpload,true) holder.setGone(R.id.llUpload,true)
holder.setText(R.id.tvEstimateStatus,getStatusText(item.status)).setTextColor(R.id.tvEstimateStatus,getStatusColor(item.status)) holder.setText(R.id.tvEstimateStatus,getStatusText(item.status)).setTextColor(R.id.tvEstimateStatus,getStatusColor(item.status))
var helper = holder.getView<TextView>(R.id.tvEstimateStatus) var helper = holder.getView<TextView>(R.id.tvEstimateStatus)
if (item.status == 3) { if (item.status == 3 || item.status == 5) {
helper.setBackgroundResource(R.drawable.shape_stoke_25c) helper.setBackgroundResource(R.drawable.shape_r12_stroke_02c)
} else { } else {
helper.setBackgroundResource(0) helper.setBackgroundResource(0)
} }
@ -66,9 +66,9 @@ class TongueRecordAdapter: BaseAdapter<CancerGoodsBean>(R.layout.item_tongue_rec
0 -> color = context.resources.getColor(R.color.col_96D) 0 -> color = context.resources.getColor(R.color.col_96D)
1 -> color = context.resources.getColor(R.color.col_96D) 1 -> color = context.resources.getColor(R.color.col_96D)
2 -> color = context.resources.getColor(R.color.col_2628) 2 -> color = context.resources.getColor(R.color.col_2628)
3 -> color = context.resources.getColor(R.color.col_9BDd) 3 -> color = context.resources.getColor(R.color.col_02c)
4 -> color = context.resources.getColor(R.color.col_96D) 4 -> color = context.resources.getColor(R.color.col_96D)
5 -> color = context.resources.getColor(R.color.col_9BDd) 5 -> color = context.resources.getColor(R.color.col_02c)
4 -> color = context.resources.getColor(R.color.col_2628) 4 -> color = context.resources.getColor(R.color.col_2628)
} }
return color return color

@ -3,7 +3,7 @@
android:shape="rectangle"> android:shape="rectangle">
<gradient <gradient
android:startColor="@color/col_02c" android:startColor="@color/col_02c"
android:endColor="#03B1C0"/> android:endColor="@color/col_02c"/>
<corners <corners
android:radius="@dimen/dp_25"/> android:radius="@dimen/dp_25"/>
</shape> </shape>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/white" />
<stroke
android:width="@dimen/dp_1"
android:color="@color/col_02c"/>
<corners
android:radius="@dimen/dp_12"/>
</shape>

@ -6,7 +6,7 @@
<solid android:color="@color/white" /> <solid android:color="@color/white" />
<stroke <stroke
android:width="@dimen/dp_1" android:width="@dimen/dp_1"
android:color="@color/col_3c2"/> android:color="@color/col_02c"/>
<corners <corners
android:radius="@dimen/dp_12"/> android:radius="@dimen/dp_12"/>
</shape> </shape>

@ -37,16 +37,30 @@
android:paddingTop="@dimen/dp_23" android:paddingTop="@dimen/dp_23"
android:paddingLeft="@dimen/dp_16" android:paddingLeft="@dimen/dp_16"
android:paddingRight="@dimen/dp_16"> android:paddingRight="@dimen/dp_16">
<TextView
<RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:drawableLeft="@drawable/shape_head_tip_new" <TextView
android:drawablePadding="@dimen/dp_10" android:layout_width="wrap_content"
android:text="@string/sign" android:layout_height="wrap_content"
android:textColor="#313131" android:drawableLeft="@drawable/shape_head_tip_new"
android:textSize="@dimen/sp_17" android:drawablePadding="@dimen/dp_10"
android:textStyle="bold" android:text="@string/sign"
android:layout_marginBottom="@dimen/dp_10"/> android:textColor="#313131"
android:textSize="@dimen/sp_17"
android:textStyle="bold"
android:layout_marginBottom="@dimen/dp_10"/>
<TextView
android:id="@+id/tv_sign_again"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:text="重签"
android:textColor="@color/col_02c"
android:textSize="@dimen/sp_15"/>
</RelativeLayout>
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:id="@+id/mSign" android:id="@+id/mSign"

@ -24,7 +24,7 @@
android:text="兑换码开通" android:text="兑换码开通"
android:textSize="@dimen/sp_18" android:textSize="@dimen/sp_18"
android:textStyle="bold" android:textStyle="bold"
android:textColor="@color/black"/> android:textColor="@color/col_313"/>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/dp_55" android:layout_height="@dimen/dp_55"
@ -42,6 +42,8 @@
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_16" android:textSize="@dimen/dp_16"
android:hint="请输入兑换码" android:hint="请输入兑换码"
android:textColorHint="@color/col_6B6"
android:textStyle="bold"
android:paddingLeft="@dimen/dp_20" android:paddingLeft="@dimen/dp_20"
android:ems="12"/> android:ems="12"/>
@ -92,7 +94,7 @@
android:drawablePadding="@dimen/dp_6" android:drawablePadding="@dimen/dp_6"
android:textSize="@dimen/dp_15" android:textSize="@dimen/dp_15"
android:text="开通须知:此兑换码仅限本人使用,开通完成之后,无法二次兑换。" android:text="开通须知:此兑换码仅限本人使用,开通完成之后,无法二次兑换。"
android:textColor="@color/col_c2c" /> android:textColor="@color/col_7c7" />
<!-- 确定兑换 --> <!-- 确定兑换 -->
@ -106,6 +108,7 @@
android:gravity="center" android:gravity="center"
android:text="确认" android:text="确认"
android:textColor="@color/white" android:textColor="@color/white"
android:textStyle="bold"
android:textSize="@dimen/dp_18" /> android:textSize="@dimen/dp_18" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

@ -19,13 +19,14 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@mipmap/ic_pay_success" android:background="@mipmap/ic_pay_success"
android:layout_marginTop="@dimen/dp_93"/> android:layout_marginTop="@dimen/dp_70"/>
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="支付成功" android:text="支付成功"
android:textSize="@dimen/sp_18" android:textSize="@dimen/sp_18"
android:textColor="@color/black" android:textColor="@color/col_313"
android:layout_marginTop="@dimen/dp_7"
android:textStyle="bold"/> android:textStyle="bold"/>
<!-- 确定兑换 --> <!-- 确定兑换 -->
<com.ruffian.library.widget.RTextView <com.ruffian.library.widget.RTextView
@ -33,7 +34,7 @@
android:layout_width="@dimen/dp_172" android:layout_width="@dimen/dp_172"
android:layout_height="@dimen/dp_50" android:layout_height="@dimen/dp_50"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/dp_46" android:layout_marginTop="@dimen/dp_90"
android:background="@drawable/selector_login_btn" android:background="@drawable/selector_login_btn"
android:gravity="center" android:gravity="center"
android:text="下一步" android:text="下一步"

@ -199,7 +199,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/col_8D0" android:textColor="@color/col_02c"
android:background="@drawable/shape_stoke" android:background="@drawable/shape_stoke"
android:paddingTop="@dimen/dp_6" android:paddingTop="@dimen/dp_6"
android:paddingBottom="@dimen/dp_6" android:paddingBottom="@dimen/dp_6"

@ -285,7 +285,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="舌面照片" android:text="舌面照片"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_16" android:textSize="@dimen/sp_15"
android:paddingStart="@dimen/dp_4" android:paddingStart="@dimen/dp_4"
/> />
</LinearLayout> </LinearLayout>
@ -327,7 +327,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="示例图" android:text="示例图"
android:textColor="@color/col_c7c" android:textColor="@color/col_c7c"
android:textSize="@dimen/dp_16" android:textSize="@dimen/sp_15"
android:paddingStart="@dimen/dp_4" android:paddingStart="@dimen/dp_4"
/> />
@ -380,7 +380,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="舌下照片" android:text="舌下照片"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_16" android:textSize="@dimen/sp_15"
android:paddingStart="@dimen/dp_4" android:paddingStart="@dimen/dp_4"
/> />
</LinearLayout> </LinearLayout>
@ -424,7 +424,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="示例图" android:text="示例图"
android:textColor="@color/col_c7c" android:textColor="@color/col_c7c"
android:textSize="@dimen/dp_16" android:textSize="@dimen/sp_15"
android:paddingStart="@dimen/dp_4" android:paddingStart="@dimen/dp_4"
/> />
@ -481,6 +481,7 @@
android:background="@drawable/shape_button_bg" android:background="@drawable/shape_button_bg"
android:gravity="center" android:gravity="center"
android:textSize="@dimen/sp_18" android:textSize="@dimen/sp_18"
android:textStyle="bold"
android:text="提交" android:text="提交"
android:textColor="@color/white" android:textColor="@color/white"
/> />

@ -82,7 +82,7 @@
android:drawableLeft="@mipmap/ic_weixinzhif" android:drawableLeft="@mipmap/ic_weixinzhif"
android:drawablePadding="@dimen/dp_9" android:drawablePadding="@dimen/dp_9"
android:text="微信" android:text="微信"
android:textColor="@color/black" android:textColor="@color/col_313"
android:textSize="@dimen/sp_15" android:textSize="@dimen/sp_15"
android:textStyle="bold" /> android:textStyle="bold" />
@ -114,7 +114,7 @@
android:drawableLeft="@mipmap/ic_zhifubao" android:drawableLeft="@mipmap/ic_zhifubao"
android:drawablePadding="@dimen/dp_9" android:drawablePadding="@dimen/dp_9"
android:text="支付宝" android:text="支付宝"
android:textColor="@color/black" android:textColor="@color/col_313"
android:textSize="@dimen/sp_15" android:textSize="@dimen/sp_15"
android:textStyle="bold" /> android:textStyle="bold" />
@ -146,7 +146,7 @@
android:drawableStart="@mipmap/ic_duihuanma" android:drawableStart="@mipmap/ic_duihuanma"
android:drawablePadding="@dimen/dp_9" android:drawablePadding="@dimen/dp_9"
android:text="兑换码" android:text="兑换码"
android:textColor="@color/black" android:textColor="@color/col_313"
android:textSize="@dimen/sp_15" android:textSize="@dimen/sp_15"
android:textStyle="bold" android:textStyle="bold"
tools:ignore="UseCompatTextViewDrawableXml" /> tools:ignore="UseCompatTextViewDrawableXml" />

@ -48,7 +48,7 @@
android:paddingTop="@dimen/dp_10" android:paddingTop="@dimen/dp_10"
android:paddingBottom="@dimen/dp_10" android:paddingBottom="@dimen/dp_10"
android:text="@string/confirm" android:text="@string/confirm"
android:textColor="@color/col_8D0" android:textColor="@color/col_02c"
android:textSize="@dimen/sp_16" android:textSize="@dimen/sp_16"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@+id/mTvCancel" app:layout_constraintRight_toLeftOf="@+id/mTvCancel"
@ -79,7 +79,7 @@
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:padding="@dimen/dp_15" android:padding="@dimen/dp_15"
android:text="去评估!" android:text="去评估!"
android:textColor="@color/col_8D0" android:textColor="@color/col_02c"
android:textSize="@dimen/dp_15" android:textSize="@dimen/dp_15"
android:layout_gravity="center_horizontal"/> android:layout_gravity="center_horizontal"/>
</LinearLayout> </LinearLayout>

@ -26,7 +26,7 @@
android:paddingBottom="@dimen/dp_13" android:paddingBottom="@dimen/dp_13"
android:background="@drawable/shape_round_white" android:background="@drawable/shape_round_white"
android:text="重签" android:text="重签"
android:textColor="@color/col_009" android:textColor="@color/col_02c"
android:textSize="@dimen/sp_16" android:textSize="@dimen/sp_16"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@+id/mTvSub" app:layout_constraintRight_toLeftOf="@+id/mTvSub"

@ -232,7 +232,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/col_8D0" android:textColor="@color/col_02c"
android:background="@drawable/shape_stoke" android:background="@drawable/shape_stoke"
android:paddingTop="@dimen/dp_6" android:paddingTop="@dimen/dp_6"
android:paddingBottom="@dimen/dp_6" android:paddingBottom="@dimen/dp_6"
@ -276,14 +276,15 @@
android:id="@+id/mSubmit" android:id="@+id/mSubmit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_20" android:layout_marginLeft="@dimen/dp_25"
android:layout_marginRight="@dimen/dp_20" android:layout_marginRight="@dimen/dp_25"
android:background="@drawable/shape_btn_select_bg" android:background="@drawable/shape_btn_select_bg"
android:gravity="center" android:gravity="center"
android:padding="@dimen/dp_10" android:padding="@dimen/dp_16"
android:text="上传检验单" android:text="上传检验单"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="@dimen/dp_16" android:textStyle="bold"
android:textSize="@dimen/sp_18"
android:layout_marginTop="@dimen/dp_10" android:layout_marginTop="@dimen/dp_10"
android:layout_marginBottom="@dimen/dp_10" android:layout_marginBottom="@dimen/dp_10"
android:visibility="visible"/> android:visibility="visible"/>

@ -106,7 +106,7 @@
android:layout_width="@dimen/dp_4" android:layout_width="@dimen/dp_4"
android:layout_height="@dimen/dp_20" android:layout_height="@dimen/dp_20"
app:corner_radius="@dimen/dp_2" app:corner_radius="@dimen/dp_2"
app:background_normal="@color/col_25C" app:background_normal="@color/col_02c"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
android:layout_marginStart="@dimen/dp_16" android:layout_marginStart="@dimen/dp_16"

@ -73,7 +73,7 @@
app:xTabMode="scrollable" app:xTabMode="scrollable"
app:xTabSelectedTextColor="@color/col_02c" app:xTabSelectedTextColor="@color/col_02c"
app:xTabTextColor="@color/col_c7c" app:xTabTextColor="@color/col_c7c"
app:xTabTextSize="14dp" app:xTabTextSize="@dimen/sp_15"
app:xTabTextSelectedBold="true" app:xTabTextSelectedBold="true"
app:xTabDisplayNum="4" app:xTabDisplayNum="4"
app:xTabSelectedTextSize="@dimen/sp_17" app:xTabSelectedTextSize="@dimen/sp_17"

@ -31,7 +31,7 @@
android:layout_width="@dimen/dp_4" android:layout_width="@dimen/dp_4"
android:layout_height="@dimen/dp_20" android:layout_height="@dimen/dp_20"
app:corner_radius="@dimen/dp_2" app:corner_radius="@dimen/dp_2"
app:background_normal="@color/col_25C" app:background_normal="@color/col_02c"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
android:layout_marginStart="@dimen/dp_16" android:layout_marginStart="@dimen/dp_16"
@ -219,7 +219,7 @@
android:layout_width="@dimen/dp_4" android:layout_width="@dimen/dp_4"
android:layout_height="@dimen/dp_20" android:layout_height="@dimen/dp_20"
app:corner_radius="@dimen/dp_2" app:corner_radius="@dimen/dp_2"
app:background_normal="@color/col_25C" app:background_normal="@color/col_02c"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
android:layout_marginStart="@dimen/dp_16" android:layout_marginStart="@dimen/dp_16"
@ -478,7 +478,7 @@
android:layout_width="@dimen/dp_4" android:layout_width="@dimen/dp_4"
android:layout_height="@dimen/dp_20" android:layout_height="@dimen/dp_20"
app:corner_radius="@dimen/dp_2" app:corner_radius="@dimen/dp_2"
app:background_normal="@color/col_25C" app:background_normal="@color/col_02c"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
android:layout_marginStart="@dimen/dp_16" android:layout_marginStart="@dimen/dp_16"

@ -12,7 +12,7 @@
android:orientation="vertical" android:orientation="vertical"
android:background="@drawable/shape_white_8radius" android:background="@drawable/shape_white_8radius"
android:layout_marginBottom="@dimen/dp_14" android:layout_marginBottom="@dimen/dp_14"
android:paddingTop="@dimen/dp_23" android:paddingTop="@dimen/dp_16"
android:paddingLeft="@dimen/dp_16" android:paddingLeft="@dimen/dp_16"
android:paddingRight="@dimen/dp_16" android:paddingRight="@dimen/dp_16"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -65,14 +65,14 @@
android:id="@+id/rvRecyclerview" android:id="@+id/rvRecyclerview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dp_11"/> android:layout_marginBottom="@dimen/dp_5"/>
<TextView <TextView
android:id="@+id/tvHint" android:id="@+id/tvHint"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="* 评估报告周期预计3天内请耐心等待" android:text="* 评估报告周期预计3天内请耐心等待"
android:textSize="@dimen/sp_12" android:textSize="@dimen/sp_11"
android:textColor="@color/col_c7c" android:textColor="@color/col_c7c"
android:layout_marginBottom="@dimen/dp_15"/> android:layout_marginBottom="@dimen/dp_15"/>
</LinearLayout> </LinearLayout>
@ -127,7 +127,7 @@
android:layout_height="@dimen/dp_30" android:layout_height="@dimen/dp_30"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:text="去上传" android:text="去上传"
android:textColor="@color/col_3c2" android:textColor="@color/col_02c"
android:textSize="@dimen/sp_13" android:textSize="@dimen/sp_13"
android:background="@drawable/shape_stoke" android:background="@drawable/shape_stoke"
android:gravity="center" android:gravity="center"

@ -12,9 +12,7 @@
android:orientation="vertical" android:orientation="vertical"
android:background="@drawable/shape_white_8radius" android:background="@drawable/shape_white_8radius"
android:layout_marginBottom="@dimen/dp_14" android:layout_marginBottom="@dimen/dp_14"
android:paddingTop="@dimen/dp_23" android:padding="@dimen/dp_16"
android:paddingLeft="@dimen/dp_16"
android:paddingRight="@dimen/dp_16"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
@ -23,50 +21,49 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <RelativeLayout
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:orientation="horizontal"
android:layout_marginBottom="@dimen/dp_10">
<TextView <TextView
android:layout_width="match_parent" android:id="@+id/tv_time_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_10"
android:text="上传时间:" android:text="上传时间:"
android:textColor="#313131" android:textColor="#313131"
android:textSize="@dimen/sp_15" android:textSize="@dimen/sp_15"
android:layout_marginBottom="@dimen/dp_10"/> />
<TextView <TextView
android:id="@+id/tvTime" android:id="@+id/tvTime"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:text="2023-06-05" android:text="2023-06-05"
android:layout_toRightOf="@+id/tv_time_desc"
android:textColor="#313131" android:textColor="#313131"
android:textSize="@dimen/sp_15" android:textSize="@dimen/sp_15"
android:layout_marginBottom="@dimen/dp_10"/> />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"/>
<TextView <TextView
android:id="@+id/tvEstimateStatus" android:id="@+id/tvEstimateStatus"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="@dimen/dp_25"
android:text="识别中" android:text="识别中"
android:paddingHorizontal="12dp" android:layout_alignParentEnd="true"
android:paddingVertical="8dp" android:paddingLeft="@dimen/dp_10"
android:gravity="right" android:paddingRight="@dimen/dp_10"
android:gravity="center"
android:textColor="#313131" android:textColor="#313131"
android:textSize="@dimen/sp_13" android:textSize="@dimen/sp_13"
android:layout_marginBottom="@dimen/dp_10"/> />
</LinearLayout> </RelativeLayout>
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvRecyclerview" android:id="@+id/rvRecyclerview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dp_8"/> android:layout_marginBottom="@dimen/dp_5"/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

@ -24,7 +24,7 @@
android:id="@+id/view" android:id="@+id/view"
android:layout_width="@dimen/dp_4" android:layout_width="@dimen/dp_4"
android:layout_height="@dimen/dp_18" android:layout_height="@dimen/dp_18"
app:background_normal="@color/col_25C" app:background_normal="@color/col_02c"
app:corner_radius="2dp" app:corner_radius="2dp"
/> />

@ -15,7 +15,7 @@
android:id="@+id/view" android:id="@+id/view"
android:layout_width="@dimen/dp_4" android:layout_width="@dimen/dp_4"
android:layout_height="@dimen/dp_18" android:layout_height="@dimen/dp_18"
app:background_normal="@color/col_25C" app:background_normal="@color/col_02c"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
android:layout_marginStart="@dimen/dp_16" android:layout_marginStart="@dimen/dp_16"
@ -78,7 +78,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="湿热(湿热蕴脾证、膀胱湿热证)" android:text="湿热(湿热蕴脾证、膀胱湿热证)"
android:textColor="@color/col_25C" android:textColor="@color/col_02c"
android:textSize="16dp" android:textSize="16dp"
app:layout_constraintStart_toEndOf="@id/tv" app:layout_constraintStart_toEndOf="@id/tv"
app:layout_constraintTop_toTopOf="@id/tv" app:layout_constraintTop_toTopOf="@id/tv"
@ -90,7 +90,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="湿热(湿热蕴脾证、膀胱湿热证)" android:text="湿热(湿热蕴脾证、膀胱湿热证)"
android:textColor="@color/col_25C" android:textColor="@color/col_02c"
android:textSize="16dp" android:textSize="16dp"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"

@ -23,7 +23,7 @@
android:id="@+id/view" android:id="@+id/view"
android:layout_width="@dimen/dp_4" android:layout_width="@dimen/dp_4"
android:layout_height="@dimen/dp_18" android:layout_height="@dimen/dp_18"
app:background_normal="@color/col_25C" app:background_normal="@color/col_02c"
app:corner_radius="2dp" app:corner_radius="2dp"
/> />

@ -23,7 +23,7 @@
android:id="@+id/view" android:id="@+id/view"
android:layout_width="@dimen/dp_4" android:layout_width="@dimen/dp_4"
android:layout_height="@dimen/dp_18" android:layout_height="@dimen/dp_18"
app:background_normal="@color/col_25C" app:background_normal="@color/col_02c"
app:corner_radius="2dp" app:corner_radius="2dp"
/> />
@ -425,7 +425,7 @@
app:border_color_normal="@color/col_25C" app:border_color_normal="@color/col_25C"
app:border_width_normal="0.5dp" app:border_width_normal="0.5dp"
android:textSize="12dp" android:textSize="12dp"
android:textColor="@color/col_25C" android:textColor="@color/col_02c"
app:background_normal="#EAF6F6" app:background_normal="#EAF6F6"
/> />
</LinearLayout> </LinearLayout>

@ -14,7 +14,7 @@
android:id="@+id/view" android:id="@+id/view"
android:layout_width="@dimen/dp_4" android:layout_width="@dimen/dp_4"
android:layout_height="@dimen/dp_18" android:layout_height="@dimen/dp_18"
app:background_normal="@color/col_25C" app:background_normal="@color/col_02c"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
android:layout_marginStart="@dimen/dp_16" android:layout_marginStart="@dimen/dp_16"
@ -29,6 +29,7 @@
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:text="基础信息" android:text="基础信息"
android:textStyle="bold" android:textStyle="bold"
android:textSize="@dimen/dp_17"
app:layout_constraintTop_toTopOf="@id/view" app:layout_constraintTop_toTopOf="@id/view"
app:layout_constraintBottom_toBottomOf="@id/view" app:layout_constraintBottom_toBottomOf="@id/view"
app:layout_constraintStart_toEndOf="@id/view" app:layout_constraintStart_toEndOf="@id/view"
@ -58,7 +59,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="姓名:" android:text="姓名:"
android:textColor="@color/col_C7C" android:textColor="@color/col_C7C"
android:textSize="14dp" android:textSize="@dimen/sp_13"
/> />
<TextView <TextView
@ -67,7 +68,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="张项聚" android:text="张项聚"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="14dp" android:textSize="@dimen/sp_13"
/> />
</LinearLayout> </LinearLayout>
@ -83,7 +84,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="性别:" android:text="性别:"
android:textColor="@color/col_C7C" android:textColor="@color/col_C7C"
android:textSize="14dp" android:textSize="@dimen/sp_13"
/> />
<TextView <TextView
@ -92,7 +93,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="男" android:text="男"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="14dp" android:textSize="@dimen/sp_13"
/> />
</LinearLayout> </LinearLayout>
@ -108,7 +109,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="年龄:" android:text="年龄:"
android:textColor="@color/col_C7C" android:textColor="@color/col_C7C"
android:textSize="14dp" android:textSize="@dimen/sp_13"
/> />
<TextView <TextView
@ -117,7 +118,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="24岁" android:text="24岁"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="14dp" android:textSize="@dimen/sp_13"
/> />
</LinearLayout> </LinearLayout>
@ -146,7 +147,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="报告时间:" android:text="报告时间:"
android:textColor="@color/col_C7C" android:textColor="@color/col_C7C"
android:textSize="14dp" android:textSize="@dimen/sp_13"
/> />
<TextView <TextView
@ -155,7 +156,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="张项聚" android:text="张项聚"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="14dp" android:textSize="@dimen/sp_13"
/> />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

@ -35,16 +35,14 @@
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:padding="@dimen/dp_10" android:padding="@dimen/dp_10"
android:text="@string/base_info" android:text="@string/base_info"
android:textStyle="bold"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_17" /> android:textSize="@dimen/sp_17" />
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="@dimen/dp_10" android:padding="@dimen/dp_15">
android:paddingTop="@dimen/dp_10"
android:paddingRight="@dimen/dp_10"
android:paddingBottom="@dimen/dp_10">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -53,16 +51,16 @@
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:text="@string/head_portrait" android:text="@string/head_portrait"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/dp_16" /> android:textSize="@dimen/dp_16" />
<TextView <ImageView
android:id="@+id/right" android:id="@+id/right"
android:layout_width="wrap_content" android:layout_width="@dimen/dp_11"
android:layout_height="wrap_content" android:layout_height="@dimen/dp_11"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:drawableRight="@mipmap/ic_next" /> android:src="@mipmap/ic_next" />
<de.hdodenhof.circleimageview.CircleImageView <de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/mImage" android:id="@+id/mImage"
@ -77,6 +75,7 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
@ -85,7 +84,7 @@
android:id="@+id/mRelName" android:id="@+id/mRelName"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<TextView <TextView
android:id="@+id/m1" android:id="@+id/m1"
@ -94,12 +93,9 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/name" android:text="@string/name"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/dp_16" /> android:textSize="@dimen/dp_16" />
<EditText <EditText
@ -111,11 +107,9 @@
android:layout_toRightOf="@+id/m1" android:layout_toRightOf="@+id/m1"
android:background="@null" android:background="@null"
android:gravity="center|right" android:gravity="center|right"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_15" android:textSize="@dimen/sp_15"
tools:text="asdasdasda" /> tools:text="asdasdasda" />
</RelativeLayout> </RelativeLayout>
@ -123,6 +117,7 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
@ -131,7 +126,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
@ -140,12 +135,9 @@
android:layout_weight="1" android:layout_weight="1"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/sex" android:text="@string/sex"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<CheckBox <CheckBox
@ -155,47 +147,6 @@
android:background="@drawable/selector_check_sex_new" android:background="@drawable/selector_check_sex_new"
android:button="@null" android:button="@null"
android:checked="false" /> android:checked="false" />
<!-- <RadioGroup-->
<!-- android:id="@+id/mGroup"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_alignParentRight="true"-->
<!-- android:layout_centerVertical="true"-->
<!-- android:layout_gravity="center"-->
<!-- android:layout_marginTop="@dimen/dp_8"-->
<!-- android:layout_marginBottom="@dimen/dp_8"-->
<!-- android:layout_weight="1"-->
<!-- android:background="@drawable/shape_radio_group_bg"-->
<!-- android:orientation="horizontal">-->
<!-- <RadioButton-->
<!-- android:id="@+id/mMale"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_weight="1"-->
<!-- android:background="@drawable/selector_check_sex"-->
<!-- android:button="@null"-->
<!-- android:checked="true"-->
<!-- android:drawableLeft="@drawable/selector_male"-->
<!-- android:gravity="center"-->
<!-- android:paddingLeft="@dimen/dp_10"-->
<!-- android:text="@string/male"-->
<!-- android:textColor="@color/color_check_sex" />-->
<!-- <RadioButton-->
<!-- android:id="@+id/mGirl"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_weight="1"-->
<!-- android:background="@drawable/selector_check_sex"-->
<!-- android:button="@null"-->
<!-- android:drawableLeft="@drawable/selector_girl"-->
<!-- android:gravity="center"-->
<!-- android:paddingLeft="@dimen/dp_10"-->
<!-- android:text="@string/girl"-->
<!-- android:textColor="@color/color_check_sex" />-->
<!-- </RadioGroup>-->
</LinearLayout> </LinearLayout>
@ -204,25 +155,23 @@
android:layout_height="1dp" android:layout_height="1dp"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:visibility="gone"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/phone_call" android:text="@string/phone_call"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<TextView <TextView
@ -232,10 +181,8 @@
android:layout_marginStart="@dimen/dp_10" android:layout_marginStart="@dimen/dp_10"
android:background="@null" android:background="@null"
android:gravity="center|right" android:gravity="center|right"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/col_455" android:textColor="@color/col_313"
android:textSize="@dimen/dp_15" /> android:textSize="@dimen/dp_15" />
</LinearLayout> </LinearLayout>
@ -245,76 +192,25 @@
android:layout_height="1dp" android:layout_height="1dp"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:visibility="gone"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
<!-- <RelativeLayout--> <RelativeLayout
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:paddingRight="@dimen/dp_10">-->
<!-- <com.xty.common.weight.RequiredTextView-->
<!-- android:id="@+id/m3"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_centerVertical="true"-->
<!-- android:drawablePadding="@dimen/dp_10"-->
<!-- android:ellipsize="end"-->
<!-- android:paddingLeft="@dimen/dp_10"-->
<!-- android:paddingTop="@dimen/dp_15"-->
<!-- android:paddingBottom="@dimen/dp_15"-->
<!-- android:singleLine="true"-->
<!-- android:text="@string/ic_card"-->
<!-- android:textColor="@color/col_455"-->
<!-- android:textSize="@dimen/sp_14" />-->
<!-- <EditText-->
<!-- android:id="@+id/mId"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_alignParentRight="true"-->
<!-- android:layout_centerVertical="true"-->
<!-- android:layout_toRightOf="@+id/m3"-->
<!-- android:background="@null"-->
<!-- android:digits="0123456789Xx"-->
<!-- android:gravity="center|right"-->
<!-- android:hint="@string/please_input_id"-->
<!-- android:maxLength="18"-->
<!-- android:paddingTop="@dimen/dp_15"-->
<!-- android:paddingBottom="@dimen/dp_15"-->
<!-- android:singleLine="true"-->
<!-- android:textColor="@color/col_455"-->
<!-- android:textSize="@dimen/dp_16"-->
<!-- />-->
<!-- </RelativeLayout>-->
<!-- <View-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="1dp"-->
<!-- android:layout_marginLeft="@dimen/dp_10"-->
<!-- android:layout_marginRight="@dimen/dp_10"-->
<!-- android:background="@color/col_f1f" />-->
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20" android:padding="@dimen/dp_15"
android:orientation="horizontal"> android:orientation="horizontal">
<com.xty.common.weight.RequiredTextView <com.xty.common.weight.RequiredTextView
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_weight="1" android:layout_weight="1"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/birthday" android:text="@string/birthday"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<CheckBox <CheckBox
@ -323,30 +219,40 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/selector_check_birthday" android:background="@drawable/selector_check_birthday"
android:button="@null" android:button="@null"
android:visibility="gone"
android:checked="true" /> android:checked="true" />
<TextView <TextView
android:id="@+id/mBirthday" android:id="@+id/mBirthday"
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.8" android:layout_weight="0.8"
android:background="@null" android:background="@null"
android:drawableRight="@mipmap/ic_next"
android:gravity="right" android:gravity="right"
android:hint="@string/birthday" android:hint="@string/birthday"
android:paddingLeft="@dimen/dp_4"
android:paddingTop="@dimen/dp_10"
android:paddingBottom="@dimen/dp_10"
android:singleLine="true" android:singleLine="true"
android:text="2032-33-32" android:text="2032-33-32"
android:layout_marginRight="@dimen/dp_8"
android:layout_toLeftOf="@+id/birthday_right"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_14" /> android:textSize="@dimen/dp_14" />
</LinearLayout> <ImageView
android:id="@+id/birthday_right"
android:layout_width="@dimen/dp_11"
android:layout_height="@dimen/dp_11"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="@mipmap/ic_next" />
</RelativeLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
@ -355,7 +261,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<com.xty.common.weight.RequiredTextView <com.xty.common.weight.RequiredTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -363,12 +269,9 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/height" android:text="@string/height"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<EditText <EditText
@ -382,26 +285,25 @@
android:hint="@string/please_input_height" android:hint="@string/please_input_height"
android:inputType="numberDecimal" android:inputType="numberDecimal"
android:maxLength="10" android:maxLength="10"
android:paddingTop="@dimen/dp_15"
android:paddingRight="@dimen/dp_10"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_15" /> android:layout_marginRight="@dimen/dp_5"
android:textSize="@dimen/sp_15" />
<TextView <TextView
android:id="@+id/mHUnit" android:id="@+id/mHUnit"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="cm" android:text="cm"
android:textColor="@color/col_455" android:textColor="@color/col_313"
android:textSize="@dimen/dp_16" /> android:textSize="@dimen/sp_15" />
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
@ -410,19 +312,16 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<com.xty.common.weight.RequiredTextView <com.xty.common.weight.RequiredTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/weight" android:text="@string/weight"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<EditText <EditText
@ -436,12 +335,10 @@
android:hint="@string/please_input_weight" android:hint="@string/please_input_weight"
android:inputType="numberDecimal" android:inputType="numberDecimal"
android:maxLength="4" android:maxLength="4"
android:paddingTop="@dimen/dp_15"
android:paddingRight="@dimen/dp_10"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_15" /> android:layout_marginRight="@dimen/dp_5"
android:textSize="@dimen/sp_15" />
<TextView <TextView
android:id="@+id/mWUnit" android:id="@+id/mWUnit"
@ -450,35 +347,34 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:text="kg" android:text="kg"
android:textColor="@color/col_455" android:textColor="@color/col_313"
android:textSize="@dimen/dp_16" /> android:textSize="@dimen/sp_15" />
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
<LinearLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<com.xty.common.weight.RequiredTextView <com.xty.common.weight.RequiredTextView
android:id="@+id/tv_area_desc"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/area_loc" android:text="@string/area_loc"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<TextView <TextView
@ -487,21 +383,30 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_10" android:layout_marginStart="@dimen/dp_10"
android:background="@null" android:background="@null"
android:drawableEnd="@mipmap/ic_next"
android:gravity="center|right" android:gravity="center|right"
android:hint="@string/please_input_area" android:hint="@string/please_input_area"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_15" android:textSize="@dimen/dp_15"
android:layout_toLeftOf="@+id/area_right"
android:layout_toRightOf="@+id/tv_area_desc"
android:layout_marginRight="@dimen/dp_8"
tools:ignore="UseCompatTextViewDrawableXml" /> tools:ignore="UseCompatTextViewDrawableXml" />
</LinearLayout> <ImageView
android:id="@+id/area_right"
android:layout_width="@dimen/dp_11"
android:layout_height="@dimen/dp_11"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="@mipmap/ic_next" />
</RelativeLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
@ -510,19 +415,16 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<com.xty.common.weight.RequiredTextView <com.xty.common.weight.RequiredTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/address" android:text="@string/address"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<EditText <EditText
@ -533,8 +435,6 @@
android:background="@null" android:background="@null"
android:gravity="center|right" android:gravity="center|right"
android:hint="@string/please_input_address" android:hint="@string/please_input_address"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_15" /> android:textSize="@dimen/dp_15" />
@ -544,15 +444,16 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
<LinearLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<com.xty.common.weight.RequiredTextView <com.xty.common.weight.RequiredTextView
android:id="@+id/ill" android:id="@+id/ill"
@ -561,12 +462,9 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/medic_history" android:text="@string/medic_history"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<TextView <TextView
@ -575,21 +473,32 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_10" android:layout_marginStart="@dimen/dp_10"
android:background="@null" android:background="@null"
android:drawableEnd="@mipmap/ic_next"
android:gravity="center|right" android:gravity="center|right"
android:hint="@string/please_input_medic" android:hint="@string/please_input_medic"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColorHint="@color/col_c7c"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:layout_toLeftOf="@+id/right1"
android:layout_toRightOf="@+id/ill"
android:layout_marginRight="@dimen/dp_8"
android:textSize="@dimen/dp_15" android:textSize="@dimen/dp_15"
tools:text="eeeeeee"
tools:ignore="UseCompatTextViewDrawableXml" /> tools:ignore="UseCompatTextViewDrawableXml" />
</LinearLayout> <ImageView
android:id="@+id/right1"
android:layout_width="@dimen/dp_11"
android:layout_height="@dimen/dp_11"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="@mipmap/ic_next" />
</RelativeLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
@ -611,26 +520,24 @@
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:padding="@dimen/dp_10" android:padding="@dimen/dp_10"
android:text="@string/urgent_people" android:text="@string/urgent_people"
android:textStyle="bold"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_18" /> android:textSize="@dimen/sp_17" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<com.xty.common.weight.RequiredTextView <com.xty.common.weight.RequiredTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/name" android:text="@string/name"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<EditText <EditText
@ -642,8 +549,6 @@
android:gravity="center|right" android:gravity="center|right"
android:hint="@string/please_input_name" android:hint="@string/please_input_name"
android:maxLength="10" android:maxLength="10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_15" /> android:textSize="@dimen/dp_15" />
@ -654,6 +559,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:visibility="gone"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
@ -661,19 +567,16 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<com.xty.common.weight.RequiredTextView <com.xty.common.weight.RequiredTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/contact" android:text="@string/contact"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<EditText <EditText
@ -686,8 +589,6 @@
android:hint="@string/please_input_contact" android:hint="@string/please_input_contact"
android:inputType="number" android:inputType="number"
android:maxLength="11" android:maxLength="11"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_15" /> android:textSize="@dimen/dp_15" />
@ -697,6 +598,7 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
@ -705,19 +607,16 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="@dimen/dp_10"> android:padding="@dimen/dp_15">
<com.xty.common.weight.RequiredTextView <com.xty.common.weight.RequiredTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:ellipsize="end" android:ellipsize="end"
android:paddingLeft="@dimen/dp_10"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:text="@string/relat" android:text="@string/relat"
android:textColor="@color/col_455" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_14" /> android:textSize="@dimen/sp_14" />
<EditText <EditText
@ -729,17 +628,16 @@
android:gravity="center|right" android:gravity="center|right"
android:hint="@string/hint_relat" android:hint="@string/hint_relat"
android:maxLength="20" android:maxLength="20"
android:paddingTop="@dimen/dp_15"
android:paddingBottom="@dimen/dp_15"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/dp_15" /> android:textSize="@dimen/sp_15" />
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:visibility="gone"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginRight="@dimen/dp_10"
android:background="@color/col_f1f" /> android:background="@color/col_f1f" />
@ -749,13 +647,13 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_12" android:layout_marginStart="@dimen/dp_14"
android:layout_marginTop="@dimen/dp_10" android:layout_marginTop="@dimen/dp_12"
android:layout_marginEnd="@dimen/dp_12" android:layout_marginEnd="@dimen/dp_14"
android:layout_marginBottom="@dimen/dp_50" android:layout_marginBottom="@dimen/dp_8"
android:text="请完善以上信息,以便于更好的为您提供健管的服务" android:text="*请完善以上信息,以便于更好的为您提供健管的服务请扫机构用户授权码"
android:textColor="@color/col_c7c" android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_13" /> android:textSize="@dimen/sp_12" />
</LinearLayout> </LinearLayout>
@ -764,17 +662,17 @@
<TextView <TextView
android:id="@+id/mSubmit" android:id="@+id/mSubmit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="@dimen/dp_50"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/dp_20" android:layout_marginLeft="@dimen/dp_25"
android:layout_marginTop="@dimen/dp_20" android:layout_marginTop="@dimen/dp_20"
android:layout_marginRight="@dimen/dp_20" android:layout_marginRight="@dimen/dp_25"
android:layout_marginBottom="@dimen/dp_10" android:layout_marginBottom="@dimen/dp_10"
android:background="@drawable/shape_btn_select_bg" android:background="@drawable/shape_btn_select_bg"
android:gravity="center" android:gravity="center"
android:padding="@dimen/dp_10"
android:text="@string/confirm_1" android:text="@string/confirm_1"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="@dimen/dp_16" /> android:textStyle="bold"
android:textSize="@dimen/sp_18" />
</RelativeLayout> </RelativeLayout>

@ -3,76 +3,87 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:background="@color/white"> android:background="@color/col_6F7">
<include <include
android:id="@+id/title" android:id="@+id/title"
layout="@layout/title_white_bar" /> layout="@layout/title_white_bar" />
<LinearLayout
<TextView
android:id="@+id/mTvModifyPwd"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawableRight="@mipmap/ic_next" android:background="@color/white"
android:drawablePadding="@dimen/dp_10"
android:ellipsize="end"
android:paddingLeft="@dimen/dp_21"
android:paddingTop="@dimen/dp_20"
android:paddingRight="@dimen/dp_21"
android:paddingBottom="@dimen/dp_20"
android:layout_below="@+id/title" android:layout_below="@+id/title"
android:singleLine="true" android:layout_marginTop="@dimen/dp_3"
android:text="@string/change_pwd" android:orientation="vertical">
android:textColor="@color/col_313"
android:textSize="@dimen/sp_15" /> <TextView
<TextView android:id="@+id/mTvModifyPwd"
android:id="@+id/mTvUserAgree" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:drawableRight="@mipmap/ic_next"
android:drawableRight="@mipmap/ic_next" android:drawablePadding="@dimen/dp_10"
android:drawablePadding="@dimen/dp_10" android:ellipsize="end"
android:ellipsize="end" android:paddingLeft="@dimen/dp_21"
android:paddingLeft="@dimen/dp_21" android:paddingTop="@dimen/dp_20"
android:layout_below="@+id/mTvModifyPwd" android:paddingRight="@dimen/dp_21"
android:paddingTop="@dimen/dp_20" android:paddingBottom="@dimen/dp_20"
android:paddingRight="@dimen/dp_21"
android:paddingBottom="@dimen/dp_20" android:singleLine="true"
android:singleLine="true" android:text="@string/change_pwd"
android:text="用户协议" android:textColor="@color/col_313"
android:textColor="@color/col_313" android:textSize="@dimen/sp_15" />
android:textSize="@dimen/sp_15" /> <TextView
<TextView android:id="@+id/mTvUserAgree"
android:id="@+id/mTvPrivacy" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:drawableRight="@mipmap/ic_next"
android:drawableRight="@mipmap/ic_next" android:drawablePadding="@dimen/dp_10"
android:drawablePadding="@dimen/dp_10" android:ellipsize="end"
android:ellipsize="end" android:paddingLeft="@dimen/dp_21"
android:paddingLeft="@dimen/dp_21" android:layout_below="@+id/mTvModifyPwd"
android:paddingTop="@dimen/dp_20" android:paddingTop="@dimen/dp_20"
android:layout_below="@+id/mTvUserAgree" android:paddingRight="@dimen/dp_21"
android:paddingRight="@dimen/dp_21" android:paddingBottom="@dimen/dp_20"
android:paddingBottom="@dimen/dp_20" android:singleLine="true"
android:singleLine="true" android:text="用户协议"
android:text="隐私协议" android:textColor="@color/col_313"
android:textColor="@color/col_313" android:textSize="@dimen/sp_15" />
android:textSize="@dimen/sp_15" /> <TextView
<TextView android:id="@+id/mTvPrivacy"
android:id="@+id/mTvSignOut" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:drawableRight="@mipmap/ic_next"
android:drawableRight="@mipmap/ic_next" android:drawablePadding="@dimen/dp_10"
android:drawablePadding="@dimen/dp_10" android:ellipsize="end"
android:ellipsize="end" android:paddingLeft="@dimen/dp_21"
android:paddingLeft="@dimen/dp_21" android:paddingTop="@dimen/dp_20"
android:paddingTop="@dimen/dp_20" android:layout_below="@+id/mTvUserAgree"
android:paddingRight="@dimen/dp_21" android:paddingRight="@dimen/dp_21"
android:layout_below="@+id/mTvPrivacy" android:paddingBottom="@dimen/dp_20"
android:paddingBottom="@dimen/dp_20" android:singleLine="true"
android:singleLine="true" android:text="隐私协议"
android:text="@string/account_dest" android:textColor="@color/col_313"
android:textColor="@color/col_313" android:textSize="@dimen/sp_15" />
android:textSize="@dimen/sp_15" /> <TextView
android:id="@+id/mTvSignOut"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableRight="@mipmap/ic_next"
android:drawablePadding="@dimen/dp_10"
android:ellipsize="end"
android:paddingLeft="@dimen/dp_21"
android:paddingTop="@dimen/dp_20"
android:paddingRight="@dimen/dp_21"
android:layout_below="@+id/mTvPrivacy"
android:paddingBottom="@dimen/dp_20"
android:singleLine="true"
android:text="@string/account_dest"
android:textColor="@color/col_313"
android:textSize="@dimen/sp_15" />
</LinearLayout>
<TextView <TextView
android:id="@+id/tv_logout" android:id="@+id/tv_logout"

Loading…
Cancel
Save