中建365-二期开发

develop
wlh 1 year ago
parent 6ecfd7a475
commit ce4d2d84b2

@ -274,10 +274,10 @@ class DynamicManagementFrag : BaseVmFrag<DynamicManagementVm>(){
//健康档案 //健康档案
R.id.mHealthRecords -> { R.id.mHealthRecords -> {
// RouteManager.goAct(ARouterUrl.FAMILY_RECORD_ACT) RouteManager.goAct(ARouterUrl.FAMILY_RECORD_ACT)
CommonToastUtils.showToast("敬请期待") /*CommonToastUtils.showToast("敬请期待")
return@OnClickListener return@OnClickListener
*/
} }
//评估 //评估
R.id.mCard -> { R.id.mCard -> {

@ -251,8 +251,8 @@ HealthHomeFrag : BaseVmFrag<HomeVm>() {
when(contentData.jumpUrl){ when(contentData.jumpUrl){
"health_data" ->{ "health_data" ->{
// RouteManager.goAct(ARouterUrl.FAMILY_RECORD_ACT) RouteManager.goAct(ARouterUrl.FAMILY_RECORD_ACT)
CommonToastUtils.showToast("敬请期待") // CommonToastUtils.showToast("敬请期待")
} }
"health_dic" ->{ "health_dic" ->{
CommonToastUtils.showToast("敬请期待") CommonToastUtils.showToast("敬请期待")
@ -358,8 +358,8 @@ HealthHomeFrag : BaseVmFrag<HomeVm>() {
} }
"PSYCHOLOGY" ->{ "PSYCHOLOGY" ->{
// RouteManager.goAct(ARouterUrl.PSYCHOLOGICAL_TEST_LIST_ACT) RouteManager.goAct(ARouterUrl.PSYCHOLOGICAL_TEST_LIST_ACT)
CommonToastUtils.showToast("敬请期待") // CommonToastUtils.showToast("敬请期待")
} }
else ->{ else ->{

@ -132,6 +132,8 @@ class ARouterUrl {
//健康档案 //健康档案
const val FAMILY_RECORD_ACT = "/health/com/zj365/health/act/healthrecord/HealthRecordMainAct" const val FAMILY_RECORD_ACT = "/health/com/zj365/health/act/healthrecord/HealthRecordMainAct"
const val FAMILY_REPORT_UPLOAD_ACT = "/health/com/zj365/health/act/healthrecord/UploadHealthRecordAct"
const val FAMILY_REPORT_LIST_ACT = "/health/com/zj365/health/act/healthrecord/HealthRecordsListAct"
//心理测试 //心理测试
const val PSYCHOLOGICAL_TEST_LIST_ACT = "/health/com/zj365/health/act/psychological/PsychologicalTestMainAct" const val PSYCHOLOGICAL_TEST_LIST_ACT = "/health/com/zj365/health/act/psychological/PsychologicalTestMainAct"

@ -312,6 +312,9 @@
<activity android:name=".act.psychological.PsychologicalTestMainAct" <activity android:name=".act.psychological.PsychologicalTestMainAct"
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity android:name=".act.healthrecord.UploadHealthRecordAct"
android:launchMode="singleTop"
android:screenOrientation="portrait" />
</application> </application>

@ -22,6 +22,7 @@ import com.xty.common.weight.HealthBodyView
import com.zj365.health.adapter.familyhealth.HealthFamilyTargetAdapter import com.zj365.health.adapter.familyhealth.HealthFamilyTargetAdapter
import com.zj365.health.databinding.ActHealthRecordMainBinding import com.zj365.health.databinding.ActHealthRecordMainBinding
import com.zj365.health.model.MyReportBean import com.zj365.health.model.MyReportBean
import com.zj365.health.vm.HealthRecordMainVm
import com.zj365.health.vm.ReportVm import com.zj365.health.vm.ReportVm
import com.zj365.health.weight.HealthSurveyView import com.zj365.health.weight.HealthSurveyView
import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.GlobalScope
@ -30,7 +31,7 @@ import kotlinx.coroutines.delay
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
@Route(path = ARouterUrl.FAMILY_RECORD_ACT) @Route(path = ARouterUrl.FAMILY_RECORD_ACT)
class HealthRecordMainAct : BaseVmAct<BaseVm>() { class HealthRecordMainAct : BaseVmAct<HealthRecordMainVm>() {
val binding by lazy { ActHealthRecordMainBinding.inflate(layoutInflater) } val binding by lazy { ActHealthRecordMainBinding.inflate(layoutInflater) }
@ -46,6 +47,13 @@ class HealthRecordMainAct : BaseVmAct<BaseVm>() {
override fun liveObserver() { override fun liveObserver() {
mViewModel.balanceDietBeanLiveData.observe(this){
binding.tvDietCalorie.text = "${it.data.heat_val}"
binding.proCho.progress = it.data.cho_percent.toInt()
binding.proFat.progress = it.data.fat_percent
binding.proProtein.progress = it.data.protein_percent
}
} }
override fun initView() { override fun initView() {
@ -56,6 +64,8 @@ class HealthRecordMainAct : BaseVmAct<BaseVm>() {
finish() finish()
} }
mViewModel.getBalanceDiet()
initTab() initTab()
initSurvey() initSurvey()
initAdapter() initAdapter()
@ -101,7 +111,7 @@ class HealthRecordMainAct : BaseVmAct<BaseVm>() {
} }
binding.llReportRecord.setOnClickListener { binding.llReportRecord.setOnClickListener {
RouteManager.goAct(ARouterUrl.FAMILY_REPORT_LIST_ACT)
} }
binding.tvCompleteInfo.setOnClickListener { binding.tvCompleteInfo.setOnClickListener {

@ -1,15 +1,26 @@
package com.zj365.health.act.healthrecord package com.zj365.health.act.healthrecord
import android.view.View import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.alibaba.android.arouter.facade.annotation.Route
import com.xty.base.act.BaseListAct import com.xty.base.act.BaseListAct
import com.xty.base.vm.BaseVm import com.xty.base.vm.BaseVm
import com.xty.common.arouter.ARouterUrl
import com.xty.common.arouter.RouteManager
import com.zj365.health.adapter.healthrecord.HealthRecordsAdapter
import com.zj365.health.databinding.ActHealthRecordBinding import com.zj365.health.databinding.ActHealthRecordBinding
import com.zj365.health.databinding.ActHealthRecordsListBinding import com.zj365.health.databinding.ActHealthRecordsListBinding
@Route(path = ARouterUrl.FAMILY_REPORT_LIST_ACT)
class HealthRecordsListAct : BaseListAct<BaseVm>() { class HealthRecordsListAct : BaseListAct<BaseVm>() {
val binding by lazy { ActHealthRecordsListBinding.inflate(layoutInflater) } val binding by lazy { ActHealthRecordsListBinding.inflate(layoutInflater) }
val mAdapter by lazy { HealthRecordsAdapter()}
override fun initAdapter() { override fun initAdapter() {
binding.recyclerView.adapter = mAdapter
binding.recyclerView.layoutManager = LinearLayoutManager(this,LinearLayoutManager.VERTICAL,false)
} }
override fun loadData() { override fun loadData() {
@ -22,6 +33,9 @@ class HealthRecordsListAct : BaseListAct<BaseVm>() {
binding.title.mIvBack.setOnClickListener { binding.title.mIvBack.setOnClickListener {
finish() finish()
} }
binding.tvUploadReport.setOnClickListener {
RouteManager.goAct(ARouterUrl.FAMILY_REPORT_UPLOAD_ACT)
}
} }
override fun liveObserver() { override fun liveObserver() {

@ -1,18 +1,53 @@
package com.zj365.health.act.healthrecord package com.zj365.health.act.healthrecord
import android.content.Intent
import android.text.TextUtils
import android.view.View import android.view.View
import androidx.recyclerview.widget.GridLayoutManager
import com.alibaba.android.arouter.facade.annotation.Route
import com.luck.picture.lib.PictureSelector
import com.luck.picture.lib.config.PictureConfig
import com.luck.picture.lib.config.PictureMimeType
import com.tamsiree.rxkit.RxKeyboardTool
import com.xty.base.act.BaseListAct import com.xty.base.act.BaseListAct
import com.xty.base.act.BaseVmAct import com.xty.base.act.BaseVmAct
import com.xty.base.vm.BaseVm import com.xty.base.vm.BaseVm
import com.xty.common.TimeSelect
import com.xty.common.arouter.ARouterUrl
import com.xty.common.picture.PictureUtils
import com.xty.common.util.CommonToastUtils
import com.zj365.health.R
import com.zj365.health.adapter.PictureAdapter
import com.zj365.health.databinding.ActUploadHealthRecordBinding import com.zj365.health.databinding.ActUploadHealthRecordBinding
@Route(path = ARouterUrl.FAMILY_REPORT_UPLOAD_ACT)
class UploadHealthRecordAct : BaseVmAct<BaseVm>() { class UploadHealthRecordAct : BaseVmAct<BaseVm>() {
val binding by lazy { ActUploadHealthRecordBinding.inflate(layoutInflater) } val binding by lazy { ActUploadHealthRecordBinding.inflate(layoutInflater) }
private val mAdapter by lazy { PictureAdapter() }
private var isCheck = false
private var delete = arrayListOf<String>()
private val timSelect by lazy {
TimeSelect(this) {
}.apply {
chooseMany = false
showYear = true
showMonth = true
showDay = true
showHour = true
showMin = true
showSec = false
}
}
override fun liveObserver() { override fun liveObserver() {
} }
override fun initView() { override fun initView() {
super.initView() super.initView()
statusBar(binding.title.mView) statusBar(binding.title.mView)
@ -20,7 +55,68 @@ class UploadHealthRecordAct : BaseVmAct<BaseVm>() {
binding.title.mIvBack.setOnClickListener { binding.title.mIvBack.setOnClickListener {
finish() finish()
} }
binding.tvUploadTime.setOnClickListener {
RxKeyboardTool.hideSoftInput(this)
timSelect.selectTime(it, "yyyy-MM-dd HH:mm")
}
binding.recycler.layoutManager = GridLayoutManager(this, 4)
binding.recycler.adapter = mAdapter
mAdapter.addChildClickViewIds(R.id.ivImage, R.id.ivDelete)
mAdapter.setOnItemChildClickListener { adapter, view, position ->
when (view.id) {
R.id.ivImage -> {
if (adapter.data.size < 5) {
isCheck = true
val item = adapter.getItem(position) as String
if (TextUtils.isEmpty(item)) {
val value = 5 - (mAdapter.data.size - 1)
PictureUtils.openCamera(this, PictureMimeType.ofImage(), value)
}
} else {
CommonToastUtils.showToast("最多上传5张图片")
}
}
R.id.ivDelete -> {
val path = adapter.data[position] as String
if (path.contains("http")) {
delete.add(adapter.data[position] as String)
}
adapter.removeAt(position)
adapter.notifyDataSetChanged()
}
}
}
mAdapter.addData("")
} }
override fun setLayout() = binding.root 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) {
PictureConfig.CHOOSE_REQUEST -> {
val result = PictureSelector.obtainMultipleResult(data)
if (result.size > 0) {
if (result.isNotEmpty()) {
for (item in result) {
val path = item.compressPath.ifEmpty {
item.androidQToPath
}
if (isCheck) {
mAdapter.addData(0, path)
mAdapter.notifyDataSetChanged()
}
}
}
}
isCheck = false
}
}
}
}
} }

@ -0,0 +1,18 @@
package com.zj365.health.adapter.healthrecord
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xty.base.adapter.BaseAdapter
import com.zj365.health.R
class HealthRecordsAdapter : BaseAdapter<Any>(R.layout.item_health_report_record) {
override fun convert(holder: BaseViewHolder, item: Any) {
var imgAdapter = HealthRecordsChildAdapter()
var recycler = holder.getView<RecyclerView>(R.id.recycler)
recycler.adapter = imgAdapter
recycler.layoutManager = LinearLayoutManager(context,LinearLayoutManager.HORIZONTAL,false)
}
}

@ -0,0 +1,10 @@
package com.zj365.health.adapter.healthrecord
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xty.base.adapter.BaseAdapter
import com.zj365.health.R
class HealthRecordsChildAdapter : BaseAdapter<Any>(R.layout.item_health_report_record_child) {
override fun convert(holder: BaseViewHolder, item: Any) {
}
}

@ -0,0 +1,17 @@
package com.zj365.health.vm
import androidx.lifecycle.MutableLiveData
import com.xty.base.vm.BaseVm
import com.xty.network.model.BalanceDietBean
import com.xty.network.model.RespBody
class HealthRecordMainVm : BaseVm() {
val balanceDietBeanLiveData by lazy { MutableLiveData<RespBody<BalanceDietBean>>() }
fun getBalanceDiet(){
startHttp {
var response = apiInterface().getBalanceDiet()
response.getCodeStatus(balanceDietBeanLiveData, nowData)
}
}
}

@ -336,6 +336,7 @@
android:textColor="@color/col_313"/> android:textColor="@color/col_313"/>
<ProgressBar <ProgressBar
android:id="@+id/pro_cho"
style="@style/Widget.AppCompat.ProgressBar.Horizontal" style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/dp_7" android:layout_height="@dimen/dp_7"
@ -368,6 +369,7 @@
android:textColor="@color/col_313"/> android:textColor="@color/col_313"/>
<ProgressBar <ProgressBar
android:id="@+id/pro_protein"
style="@style/Widget.AppCompat.ProgressBar.Horizontal" style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/dp_7" android:layout_height="@dimen/dp_7"
@ -400,6 +402,7 @@
android:textColor="@color/col_313"/> android:textColor="@color/col_313"/>
<ProgressBar <ProgressBar
android:id="@+id/pro_fat"
style="@style/Widget.AppCompat.ProgressBar.Horizontal" style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/dp_7" android:layout_height="@dimen/dp_7"

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:ignore="MissingDefaultResource"> tools:ignore="MissingDefaultResource">
@ -8,11 +9,42 @@
<include layout="@layout/title_white_bar" <include layout="@layout/title_white_bar"
android:id="@+id/title"/> android:id="@+id/title"/>
<com.ruffian.library.widget.RRelativeLayout
android:id="@+id/rx_search"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_36"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_marginTop="@dimen/dp_3"
app:corner_radius="@dimen/dp_18"
android:layout_below="@+id/title"
app:background_normal="@color/col_2F2">
<ImageView
android:id="@+id/img_search"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/ic_search"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_21"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="搜索报告记录"
android:layout_toRightOf="@+id/img_search"
android:layout_centerVertical="true"
android:textColor="@color/col_c7c"
android:textSize="@dimen/sp_13"
android:layout_marginLeft="@dimen/dp_7"/>
</com.ruffian.library.widget.RRelativeLayout>
<com.scwang.smart.refresh.layout.SmartRefreshLayout <com.scwang.smart.refresh.layout.SmartRefreshLayout
android:id="@+id/mRefresh" android:id="@+id/mRefresh"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/title" android:layout_below="@+id/rx_search"
android:background="@color/col_f4f"> android:background="@color/col_f4f">
<com.scwang.smart.refresh.header.ClassicsHeader <com.scwang.smart.refresh.header.ClassicsHeader

@ -10,6 +10,17 @@
<include layout="@layout/title_white_bar" <include layout="@layout/title_white_bar"
android:id="@+id/title"/> android:id="@+id/title"/>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/title"
android:layout_above="@+id/tv_save">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout <LinearLayout
android:id="@+id/ll_img" android:id="@+id/ll_img"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -21,7 +32,6 @@
android:layout_marginRight="@dimen/dp_14" android:layout_marginRight="@dimen/dp_14"
android:paddingLeft="@dimen/dp_16" android:paddingLeft="@dimen/dp_16"
android:paddingRight="@dimen/dp_16" android:paddingRight="@dimen/dp_16"
android:paddingBottom="25dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@ -49,6 +59,7 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
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_16"
android:id="@+id/recycler"/> android:id="@+id/recycler"/>
<TextView <TextView
@ -63,8 +74,107 @@
android:layout_width="@dimen/dp_70" android:layout_width="@dimen/dp_70"
android:layout_height="@dimen/dp_70" android:layout_height="@dimen/dp_70"
app:corner_radius="@dimen/dp_5" app:corner_radius="@dimen/dp_5"
android:layout_marginTop="11dp"
app:is_circle="false"/> app:is_circle="false"/>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/dp_0_5"
android:background="@color/col_0f2"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="报告标题"
android:textColor="@color/col_313"
android:textSize="@dimen/sp_15"
android:layout_centerVertical="true"
/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_15"
android:textColor="@color/col_313"
android:background="@null"
android:textColorHint="@color/col_6B6"
android:hint="例:血常规报告"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/dp_0_5"
android:background="@color/col_0f2"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="报告类型"
android:textColor="@color/col_313"
android:textSize="@dimen/sp_15"
android:layout_centerVertical="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_15"
android:textColor="@color/col_313"
android:background="@null"
android:textColorHint="@color/col_6B6"
android:hint="请选择报告类型"
android:drawablePadding="@dimen/dp_5"
android:drawableRight="@mipmap/icon_arrow_right"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/dp_0_5"
android:background="@color/col_0f2"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="报告时间"
android:textColor="@color/col_313"
android:textSize="@dimen/sp_15"
android:layout_centerVertical="true"
/>
<TextView
android:id="@+id/tv_upload_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_15"
android:textColor="@color/col_313"
android:background="@null"
android:textColorHint="@color/col_6B6"
android:hint="请选择报告时间"
android:drawableRight="@mipmap/icon_arrow_right"
android:drawablePadding="@dimen/dp_5"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"/>
</RelativeLayout>
</LinearLayout> </LinearLayout>
@ -74,15 +184,18 @@
android:layout_marginTop="@dimen/dp_14" android:layout_marginTop="@dimen/dp_14"
android:layout_marginLeft="@dimen/dp_14" android:layout_marginLeft="@dimen/dp_14"
android:layout_marginRight="@dimen/dp_14" android:layout_marginRight="@dimen/dp_14"
android:layout_marginBottom="@dimen/dp_35"
android:orientation="vertical" android:orientation="vertical"
android:background="@drawable/shape_round_white"
android:layout_below="@+id/ll_img"> android:layout_below="@+id/ll_img">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_22" android:layout_marginTop="@dimen/dp_22"
android:layout_marginLeft="@dimen/dp_16"
android:drawableStart="@drawable/shape_head_tip_new" android:drawableStart="@drawable/shape_head_tip_new"
android:drawablePadding="@dimen/dp_10" android:drawablePadding="@dimen/dp_10"
android:text="备注" android:text="备注(可选)"
android:textColor="@color/col_313" android:textColor="@color/col_313"
android:textSize="@dimen/sp_17" android:textSize="@dimen/sp_17"
android:textStyle="bold" android:textStyle="bold"
@ -95,10 +208,11 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/shape_round_gray" android:background="@drawable/shape_round_gray"
android:layout_margin="16dp"
android:layout_marginTop="22dp" android:layout_marginTop="22dp"
android:gravity="top" android:gravity="top"
android:minHeight="@dimen/dp_100" android:minHeight="@dimen/dp_100"
android:hint="请输入备注" android:hint="请输入本次体检相关问题或医生建议"
android:maxLength="500" android:maxLength="500"
android:padding="@dimen/dp_10" android:padding="@dimen/dp_10"
android:text="" android:text=""
@ -108,6 +222,12 @@
</LinearLayout> </LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<TextView <TextView
android:id="@+id/tv_save" android:id="@+id/tv_save"
android:layout_width="match_parent" android:layout_width="match_parent"

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/dp_16"
android:paddingRight="@dimen/dp_16"
android:paddingTop="@dimen/dp_16"
android:paddingBottom="@dimen/dp_22"
android:background="@drawable/shape_round_white">
<TextView
android:id="@+id/tv_report_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_17"
android:textColor="@color/col_313"
android:maxLines="1"
android:ellipsize="end"
android:textStyle="bold"
tools:text="2024年湘雅医院血常规报告"/>
<TextView
android:id="@+id/tv_report_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_15"
android:textColor="@color/col_c7c"
tools:text="报告时间2024-01-13"
android:layout_marginTop="@dimen/dp_12"/>
<TextView
android:id="@+id/tv_report_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_15"
android:textColor="@color/col_c7c"
tools:text="报告类型CT或其他影像"
android:layout_marginTop="@dimen/dp_12"/>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/recycler"
android:layout_marginTop="@dimen/dp_16"/>
</LinearLayout>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.ruffian.library.widget.RImageView
android:layout_width="@dimen/dp_70"
android:layout_height="@dimen/dp_70"
app:corner_radius="@dimen/dp_5"
app:is_circle="false"/>
</LinearLayout>

@ -0,0 +1,24 @@
package com.zj365.mime.act.electronicfence
import android.view.View
import com.xty.base.act.BaseVmAct
import com.xty.base.vm.BaseVm
import com.zj365.mime.databinding.ActivityElectronicFenceSettingBinding
class ElectronicFenceSettingAct : BaseVmAct<BaseVm>() {
val binding by lazy { ActivityElectronicFenceSettingBinding.inflate(layoutInflater) }
override fun liveObserver() {
}
override fun initView() {
super.initView()
statusBar(binding.title.mView)
binding.title.mTvTitle.text = "电子围栏设置"
binding.title.mIvBack.setOnClickListener {
finish()
}
}
override fun setLayout() = binding.root
}

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/title_white_bar"
android:id="@+id/title"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.amap.api.maps.MapView
android:layout_width="match_parent"
android:layout_height="@dimen/dp_355"
android:id="@+id/map"/>
<com.ruffian.library.widget.RRelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_338"
app:corner_radius_top_left="@dimen/dp_12"
app:corner_radius_top_right="@dimen/dp_12"
app:background_normal="@color/white"
android:layout_gravity="bottom"
>
<include layout="@layout/layout_empyt_no_data"
android:id="@+id/in_empty"
android:layout_above="@+id/ll_btn"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<androidx.recyclerview.widget.RecyclerView
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/recycler"/>
<LinearLayout
android:id="@+id/ll_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginLeft="@dimen/dp_12"
android:layout_marginRight="@dimen/dp_12"
android:layout_marginBottom="@dimen/dp_20"
android:layout_above="@+id/recycler"
android:layout_alignParentBottom="true">
<com.ruffian.library.widget.RTextView
android:layout_width="0dp"
android:layout_height="@dimen/dp_42"
android:layout_weight="1"
app:corner_radius="@dimen/dp_12"
app:background_normal="@color/col_eee"
android:text="点击设置"
android:textSize="@dimen/sp_16"
android:layout_marginRight="@dimen/dp_11"
android:gravity="center"
android:textColor="@color/col_333"/>
<com.ruffian.library.widget.RTextView
android:layout_width="0dp"
android:layout_height="@dimen/dp_42"
android:layout_weight="1"
app:corner_radius="@dimen/dp_12"
app:background_normal="@color/col_02c"
android:text="点击设置"
android:textSize="@dimen/sp_16"
android:gravity="center"
android:textColor="@color/white"/>
</LinearLayout>
</com.ruffian.library.widget.RRelativeLayout>
</FrameLayout>
</LinearLayout>

@ -0,0 +1,49 @@
<?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="wrap_content"
android:padding="@dimen/dp_16">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="位置"
android:textColor="@color/col_333"
android:textSize="@dimen/sp_16"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sp_14"
android:textColor="@color/col_333"
android:layout_marginTop="@dimen/dp_22"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="范围半径"
android:textColor="@color/col_333"
android:layout_marginTop="@dimen/dp_12"
android:textSize="@dimen/sp_16"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="预警类型"
android:textColor="@color/col_333"
android:layout_marginTop="@dimen/dp_12"
android:textSize="@dimen/sp_16"
android:textStyle="bold"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
</RelativeLayout>
</LinearLayout>

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/bg_empty"
android:layout_gravity="center"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/col_333"
android:textSize="@dimen/sp_17"
android:text="暂无设置电子围栏~"
android:layout_marginTop="12dp"
android:layout_gravity="center"/>
</LinearLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

@ -1461,6 +1461,9 @@ interface ApiInterface {
@POST("pay/toPay") @POST("pay/toPay")
suspend fun toPay(@Body rb: RequestBody):RespBody<PayBean> suspend fun toPay(@Body rb: RequestBody):RespBody<PayBean>
@POST("customer/meals/balanceDiet")
suspend fun getBalanceDiet():RespBody<BalanceDietBean>
/** /**
* 商品信息接口 * 商品信息接口
*/ */

@ -0,0 +1,4 @@
package com.xty.network.model
data class BalanceDietBean(var fat_percent:Int,var protein_percent:Int,var heat_val:String,var cho_percent:Int) {
}
Loading…
Cancel
Save