[feature]删去云学院
This commit is contained in:
parent
025af3c4da
commit
339e44fe17
|
@ -0,0 +1,94 @@
|
|||
package com.eningqu.aipen.logic.model.chat;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* Package:com.eningqu.aipen.logic.model.chat
|
||||
* Author:starr
|
||||
* Time:12/13/2023 11:27 AM
|
||||
* Description:
|
||||
*/
|
||||
public class Test {
|
||||
|
||||
public class Student {
|
||||
private String studentId;
|
||||
private String name;
|
||||
private int age;
|
||||
private String gender;
|
||||
private String major;
|
||||
|
||||
public Student(String studentId, String name, int age, String gender, String major) {
|
||||
this.studentId = studentId;
|
||||
this.name = name;
|
||||
this.age = age;
|
||||
this.gender = gender;
|
||||
this.major = major;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Student{" +
|
||||
"studentId='" + studentId + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", age=" + age +
|
||||
", gender='" + gender + '\'' +
|
||||
", major='" + major + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
Student student = (Student) o;
|
||||
return age == student.age && Objects.equals(studentId, student.studentId) && Objects.equals(name, student.name) && Objects.equals(gender, student.gender) && Objects.equals(major, student.major);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(studentId, name, age, gender, major);
|
||||
}
|
||||
|
||||
public String getStudentId() {
|
||||
return studentId;
|
||||
}
|
||||
|
||||
public void setStudentId(String studentId) {
|
||||
this.studentId = studentId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getAge() {
|
||||
return age;
|
||||
}
|
||||
|
||||
public void setAge(int age) {
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public String getGender() {
|
||||
return gender;
|
||||
}
|
||||
|
||||
public void setGender(String gender) {
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
public String getMajor() {
|
||||
return major;
|
||||
}
|
||||
|
||||
public void setMajor(String major) {
|
||||
this.major = major;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -54,8 +54,8 @@ public class MainActivity extends BaseActivity<ActivityMainBinding> {
|
|||
switch (menuItem.getItemId()){
|
||||
case R.id.home:mViewPager.setCurrentItem(0);break;
|
||||
case R.id.medical:mViewPager.setCurrentItem(1);break;
|
||||
case R.id.video:mViewPager.setCurrentItem(2);break;
|
||||
case R.id.mine:mViewPager.setCurrentItem(3);break;
|
||||
// case R.id.video:mViewPager.setCurrentItem(2);break;
|
||||
case R.id.mine:mViewPager.setCurrentItem(2);break;
|
||||
default:break;
|
||||
}
|
||||
return true;
|
||||
|
@ -67,8 +67,8 @@ public class MainActivity extends BaseActivity<ActivityMainBinding> {
|
|||
switch (position){
|
||||
case 0:mBtnNvgView.setSelectedItemId(R.id.home);break;
|
||||
case 1:mBtnNvgView.setSelectedItemId(R.id.medical);break;
|
||||
case 2:mBtnNvgView.setSelectedItemId(R.id.video);break;
|
||||
case 3:mBtnNvgView.setSelectedItemId(R.id.mine);break;
|
||||
// case 2:mBtnNvgView.setSelectedItemId(R.id.video);break;
|
||||
case 2:mBtnNvgView.setSelectedItemId(R.id.mine);break;
|
||||
default:break;
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ public class MainActivity extends BaseActivity<ActivityMainBinding> {
|
|||
protected void initData() {
|
||||
list.add(HomeFragment.newInstance());
|
||||
list.add(MedicalFragment.newInstance());
|
||||
list.add(VideoFragment.newInstance());
|
||||
// list.add(VideoFragment.newInstance());
|
||||
list.add(MineFragment.newInstance());
|
||||
mAdapter=new FragmentStateVPAdapter(this,list);
|
||||
mViewPager.setAdapter(mAdapter);
|
||||
|
|
|
@ -16,7 +16,7 @@ import java.util.List;
|
|||
* Package:com.eningqu.aipen.ui.adapter
|
||||
* Author:starr
|
||||
* Time:2023/11/7 11:00
|
||||
* Description:
|
||||
* Description: MainActivity上承载ViewPager2的Fragment适配器
|
||||
*/
|
||||
public class FragmentStateVPAdapter extends FragmentStateAdapter {
|
||||
private List<Fragment> list;
|
||||
|
|
|
@ -20,7 +20,7 @@ import java.util.ArrayList;
|
|||
* Package:com.eningqu.aipen.ui.adapter
|
||||
* Author:starr
|
||||
* Time:11/23/2023 1:45 PM
|
||||
* Description:
|
||||
* Description: 九宫格图片适配器
|
||||
*/
|
||||
public class GridNineAdapter extends RecyclerView.Adapter<GridNineAdapter.NineViewHolder> {
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package com.eningqu.aipen.ui.adapter;/**
|
|||
* Package:com.eningqu.aipen.ui.adapter
|
||||
* Author:starr
|
||||
* Time:2023/11/7 19:34
|
||||
* Description:
|
||||
* Description: 文心一言对话列表适配器
|
||||
*/
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.util.List;
|
|||
* Package:com.eningqu.aipen.ui.adapter
|
||||
* Author:starr
|
||||
* Time:2023/11/19 18:52
|
||||
* Description:
|
||||
* Description: 主页病历本适配器
|
||||
*/
|
||||
public class WorkAdapter extends RecyclerView.Adapter<WorkAdapter.WorkViewHolder> {
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ public abstract class BaseActivity<VB extends ViewDataBinding> extends AppCompat
|
|||
/**
|
||||
* 初始化布局
|
||||
*/
|
||||
protected void initLayout(){
|
||||
private void initLayout(){
|
||||
mBinding= DataBindingUtil.inflate(
|
||||
LayoutInflater.from(this),
|
||||
getLayoutId(),
|
||||
|
|
|
@ -208,8 +208,10 @@ public class HomeFragment extends BaseFragment<FragmentHomeBinding> {
|
|||
if (list.size() == 0) {
|
||||
PopTip.tip("暂无数据");
|
||||
mBinding.ivEmpty.setVisibility(View.VISIBLE);
|
||||
mBinding.tvEmpty.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
mBinding.ivEmpty.setVisibility(View.GONE);
|
||||
mBinding.tvEmpty.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -211,8 +211,6 @@ public class LoginActivity extends BaseActivity<ActivityLoginBinding> {
|
|||
PopTip.tip("注册失败," + throwable.getMessage());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -116,9 +116,8 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:drawableEnd="@drawable/ic_arrow_down"
|
||||
android:onClick="@{click::chooseType}"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:clickable="false"
|
||||
android:text="首诊"
|
||||
android:textSize="@dimen/dp_16" />
|
||||
</LinearLayout>
|
||||
|
@ -142,10 +141,9 @@
|
|||
android:id="@+id/tv_ks"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableEnd="@drawable/ic_arrow_down"
|
||||
android:onClick="@{click::chooseKs}"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:text="外科"
|
||||
android:clickable="false"
|
||||
android:textSize="@dimen/dp_16" />
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -185,7 +183,6 @@
|
|||
android:id="@+id/tv_tem"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableEnd="@drawable/ic_arrow_down"
|
||||
android:drawablePadding="@dimen/dp_8"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:text="37.4'C"
|
||||
|
@ -201,7 +198,6 @@
|
|||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableEnd="@drawable/ic_arrow_down"
|
||||
android:drawablePadding="@dimen/dp_8"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:text="120分/次"
|
||||
|
@ -217,7 +213,6 @@
|
|||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableEnd="@drawable/ic_arrow_down"
|
||||
android:drawablePadding="@dimen/dp_8"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:text="40 分/次"
|
||||
|
@ -238,6 +233,8 @@
|
|||
android:id="@+id/et_diagnosis"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
|
||||
android:background="@color/white"
|
||||
android:hint="诊断" />
|
||||
|
@ -256,6 +253,8 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
|
||||
android:hint="主诉" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
@ -271,6 +270,8 @@
|
|||
android:id="@+id/et_now"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
|
||||
android:background="@color/white"
|
||||
android:hint="现病史" />
|
||||
|
@ -288,6 +289,8 @@
|
|||
android:id="@+id/et_history"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
|
||||
android:background="@color/white"
|
||||
android:hint="既往史" />
|
||||
|
@ -305,6 +308,8 @@
|
|||
android:id="@+id/et_data"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_60"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
|
||||
android:background="@color/white"
|
||||
android:hint="检查资料" />
|
||||
|
@ -321,6 +326,8 @@
|
|||
android:id="@+id/et_result"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
|
||||
android:background="@color/white"
|
||||
android:hint="初步诊断" />
|
||||
|
@ -338,7 +345,8 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
|
||||
android:focusable="false"
|
||||
android:clickable="false"
|
||||
android:hint="处理和建议" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
|
@ -354,6 +362,7 @@
|
|||
android:id="@+id/rv_nine"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/dp_16"
|
||||
android:layout_marginBottom="@dimen/dp_20"
|
||||
tools:itemCount="3"
|
||||
tools:listitem="@layout/gv_filter_image"
|
||||
|
|
|
@ -142,11 +142,21 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/pic_empty"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_my_list" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvEmpty"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="今日没有挂号患者"
|
||||
android:textColor="@color/gray"
|
||||
app:layout_constraintStart_toStartOf="@id/iv_empty"
|
||||
app:layout_constraintEnd_toEndOf="@id/iv_empty"
|
||||
app:layout_constraintTop_toBottomOf="@+id/iv_empty" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
android:icon="@drawable/ic_medical"
|
||||
android:title="病历"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/video"
|
||||
android:icon="@drawable/ic_medical"
|
||||
android:title="云学院"/>
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/video"-->
|
||||
<!-- android:icon="@drawable/ic_medical"-->
|
||||
<!-- android:title="云学院"/>-->
|
||||
<item
|
||||
android:id="@+id/mine"
|
||||
android:icon="@drawable/ic_mine"
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
<color name="color_AED6DB">#AED6DB</color>
|
||||
<color name="color_BEC0C1">#BEC0C1</color>
|
||||
|
||||
|
||||
<color name="unconnectcolor">#7A8889</color>
|
||||
<color name="connectcolor">#FE645C</color>
|
||||
<color name="white">#FFFFFF</color>
|
||||
|
|
Loading…
Reference in New Issue