一 项目说明
最近在假期没事,开发一款医疗健康APP,这款医疗健康APP东西还是挺多的,有前台 有后台管理系统,
前台可以进行 展示各个科室的医生,医生的详情,患者案例,案例详情,健康知识,知识详情,患者可以对自己喜欢的喜欢医生,进行在线预约。可以查看个人的预约记录,后台管理系统可以进行维护app的数据,可以维护 患者信息,
医生信息,案例信息,健康知识信息,预约信息等操作。东西很多。
二 项目技术
项目用的技术,使用android studio进行开发,gradle作为构建工具,jdk1.8版本的 ,mysql作为数据库的存储信息。
三 项目工具结构图

四 项目开发
在线预约功能设计:
项目的效果图:
首页:

预约信息填报:

核心代码:
//首先页面布局
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:background="#009a74"
android:scrollbars="vertical"
android:theme="@android:style/Theme.Light.NoTitleBar">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_45"
android:background="@color/frag_bg"
android:id="@+id/detail_top_bar">
<ImageButton
android:id="@+id/yy_top_back"
android:layout_width="@dimen/dp_50"
android:layout_height="match_parent"
android:src="@mipmap/back_icon"
android:background="@null"
android:tint="@color/blue_edit"
tools:ignore="MissingConstraints" />
<TextView
android:id="@+id/top_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="预定填报"
android:textSize="@dimen/sp_18"
android:textColor="@color/blue_edit"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
tools:ignore="MissingConstraints" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:showDividers="end"
android:dividerPadding="20dp"
android:scrollbars="vertical"
android:layout_marginTop="20dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="预 约 人:"
android:textColor="@color/white"
android:textSize="20dp"
android:layout_marginLeft="20dp"
>
</TextView>
<TextView
android:id="@+id/usernameTv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="zs"
android:textColor="@color/white"
android:textSize="20dp"
android:layout_marginLeft="20dp"
>
</TextView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:showDividers="end"
android:dividerPadding="20dp"
android:scrollbars="vertical"
android:layout_marginTop="20dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="联系电话:"
android:textColor="@color/white"
android:textSize="20dp"
android:layout_marginLeft="20dp"
>
</TextView>
<TextView
android:id="@+id/telTv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="18890019002"
android:textColor="@color/white"
android:textSize="20dp"
android:layout_marginLeft="20dp"
>
</TextView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:showDividers="end"
android:dividerPadding="20dp"
android:scrollbars="vertical"
android:layout_marginTop="20dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="主治医生:"
android:textColor="@color/white"
android:textSize="20dp"
android:layout_marginLeft="20dp"
>
</TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="张医生"
android:textColor="@color/white"
android:textSize="20dp"
android:layout_marginLeft="20dp"
android:id="@+id/doctornameTv"
>
</TextView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:showDividers="end"
android:dividerPadding="20dp"
android:scrollbars="vertical"
android:layout_marginTop="20dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="预约时间:"
android:textColor="@color/white"
android:textSize="20dp"
android:layout_marginLeft="20dp"
>
</TextView>
<EditText
android:id="@+id/yytime"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_weight="1"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:textColor="#dbdbdb"
android:textColorHint="#dbdbdb"
android:theme="@style/loginEditText"
android:drawablePadding="10dp"
android:layout_marginBottom="20dp"
android:textSize="20sp"
android:hint="输入预约时间">
</EditText>
</LinearLayout>
<Button
android:id="@+id/yySaveBtn"
android:layout_width="match_parent"
android:layout_height="50dp"
android:textSize="20sp"
android:text="立刻预约"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:textColor="@color/white"
android:background="@drawable/shape"
>
</Button>
</LinearLayout>
预约功能实现:
@OnClick(R.id.yySaveBtn)
public void saveYy(View view){
YyEntity yyEntity = new YyEntity();
yyEntity.setUsername(usernameTv.getText().toString());
yyEntity.setYytime(yytimeTv.getText().toString());
yyEntity.setDoctorname(doctornameTv.getText().toString());
createPresenter().saveYyInfo(yyEntity);
}
五 项目获取
https://github.com/soulCoder1998/itfxq_healthyapp
本文介绍了医疗健康APP的开发过程,包括项目技术、工具结构图和在线预约功能的设计。开发采用android studio,使用gradle构建,依赖jdk1.8和mysql数据库。核心功能为预约信息填报,实现了用户预约服务。
944





