Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
6b87ce77
Commit
6b87ce77
authored
Sep 07, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改UI
parent
143ffbf3
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
58 additions
and
28 deletions
+58
-28
config.gradle
config.gradle
+4
-4
build.gradle
m-im/build.gradle
+3
-3
MsgViewHolderPatientMedicineApply.kt
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderPatientMedicineApply.kt
+18
-8
AdapterMedicineApply.kt
m-im/src/main/java/com/yidianling/im/session/viewholder/adapter/AdapterMedicineApply.kt
+5
-6
shape_solid_white_stroke_e7ecf0_top.xml
m-im/src/main/res/drawable/shape_solid_white_stroke_e7ecf0_top.xml
+10
-0
shape_solid_white_stroke_e7ecf0_top2.xml
m-im/src/main/res/drawable/shape_solid_white_stroke_e7ecf0_top2.xml
+10
-0
im_message_item_medicine_apply.xml
m-im/src/main/res/layout/im_message_item_medicine_apply.xml
+1
-1
im_nim_patient_medicine_apply_layout.xml
m-im/src/main/res/layout/im_nim_patient_medicine_apply_layout.xml
+6
-5
ActionCountUtils.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/actionutil/ActionCountUtils.kt
+1
-1
No files found.
config.gradle
View file @
6b87ce77
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.03"
,
"m-user-medical"
:
"0.0.62.14"
,
"m-home"
:
"0.0.22.70"
,
"m-im-medical"
:
"0.0.21.
47
"
,
"m-im-medical"
:
"0.0.21.
51
"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -33,7 +33,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform"
:
"0.0.41.6
1
"
,
"ydl-platform"
:
"0.0.41.6
3
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.57"
,
...
...
@@ -94,7 +94,7 @@ ext {
"m-fm"
:
"0.0.30.01"
,
"m-user-medical"
:
"0.0.62.14"
,
"m-home"
:
"0.0.22.70"
,
"m-im-medical"
:
"0.0.21.
47
"
,
"m-im-medical"
:
"0.0.21.
51
"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-article"
:
"0.0.0.8"
,
...
...
@@ -116,7 +116,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform"
:
"0.0.41.6
1
"
,
"ydl-platform"
:
"0.0.41.6
3
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.57"
,
...
...
m-im/build.gradle
View file @
6b87ce77
...
...
@@ -54,9 +54,9 @@ android {
//Flavor 信息
publishNonDefault
true
productFlavors
{
medical
{}
}
//
productFlavors {
//
medical{}
//
}
sourceSets
{
main
{
...
...
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderPatientMedicineApply.kt
View file @
6b87ce77
...
...
@@ -4,6 +4,8 @@ import android.widget.TextView
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydlcommon.base.config.HttpConfig.Companion.MEDICAL_H5URL
import
com.ydl.ydlcommon.base.config.HttpConfig.Companion.MH5_URL
import
com.yidianling.im.R
import
com.yidianling.im.session.extension.CustomAttachmentPatientMedicineApply
...
...
@@ -27,24 +29,31 @@ class MsgViewHolderPatientMedicineApply(adapter: BaseMultiItemFetchLoadAdapter<*
override
fun
inflateContentView
()
{
medicine_title
=
findViewById
(
R
.
id
.
medicine_title
)
medicine_list
=
findViewById
(
R
.
id
.
medicine_list
)
medicine_title
.
text
=
itemBean
.
title
adapterMedicine
=
AdapterMedicineApply
()
medicine_list
.
layoutManager
=
LinearLayoutManager
(
context
)
medicine_list
.
adapter
=
adapterMedicine
itemBean
.
medicinelist
?.
let
{
adapterMedicine
.
setTagData
(
it
)
}
}
override
fun
bindContentView
()
{
itemBean
=
message
.
attachment
as
CustomAttachmentPatientMedicineApply
hideItemBg
()
medicine_title
.
text
=
"itemBean.title"
adapterMedicine
=
AdapterMedicineApply
()
medicine_list
.
layoutManager
=
LinearLayoutManager
(
context
)
medicine_list
.
adapter
=
adapterMedicine
if
(
itemBean
.
medicinelist
.
size
>
2
)
{
itemBean
.
medicinelist
?.
let
{
val
subList
=
it
.
subList
(
0
,
1
)
adapterMedicine
.
setTagData
(
subList
)
}
}
else
{
itemBean
.
medicinelist
?.
let
{
adapterMedicine
.
setTagData
(
it
)
}
}
}
override
fun
onItemClick
()
{
//跳转开药详情页面
val
h5Params3
=
H5Params
(
M
H5_
URL
+
"\n"
+
M
EDICAL_H5
URL
+
"\n"
+
"ct/drug/apply/details?visitApplyNo=${itemBean.visitApplyNo}&hideNavBar=1"
,
null
)
NewH5Activity
.
start
(
getActivity
()
,
h5Params3
)
NewH5Activity
.
start
(
context
,
h5Params3
)
}
}
\ No newline at end of file
m-im/src/main/java/com/yidianling/im/session/viewholder/adapter/AdapterMedicineApply.kt
View file @
6b87ce77
...
...
@@ -5,9 +5,8 @@ import android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
import
android.widget.TextView
import
com.ydl.ydl_image.module.GlideApp
import
com.yidianling.im.R
import
com.yidianling.im.bean.MedicineBean
import
com.yidianling.im.bean.Medicine
Item
Bean
/**
* @author huozhiliang
...
...
@@ -17,7 +16,7 @@ import com.yidianling.im.bean.MedicineBean
* @date 2020/9/7
*/
class
AdapterMedicineApply
:
RecyclerView
.
Adapter
<
AdapterMedicineApply
.
ViewHolder
>()
{
private
var
medicineList
:
MutableList
<
MedicineBean
>?
=
mutableListOf
()
private
var
medicineList
:
MutableList
<
Medicine
Item
Bean
>?
=
mutableListOf
()
class
ViewHolder
(
itemView
:
View
)
:
RecyclerView
.
ViewHolder
(
itemView
)
{
...
...
@@ -42,11 +41,11 @@ class AdapterMedicineApply : RecyclerView.Adapter<AdapterMedicineApply.ViewHolde
override
fun
onBindViewHolder
(
holder
:
ViewHolder
,
position
:
Int
)
{
holder
.
medicine_name
.
text
=
medicineList
?.
get
(
position
)
?.
medicineName
holder
.
medicine_spec
.
text
=
medicineList
?.
get
(
position
)
?.
medicineSpec
holder
.
medicine_count
.
text
=
"
X
"
+
medicineList
?.
get
(
position
)
?.
medicineApplyNumber
holder
.
medicine_spec
.
text
=
"规格:"
+
medicineList
?.
get
(
position
)
?.
medicineSpec
holder
.
medicine_count
.
text
=
"
x
"
+
medicineList
?.
get
(
position
)
?.
medicineApplyNumber
}
fun
setTagData
(
data
:
MutableList
<
MedicineBean
>)
{
fun
setTagData
(
data
:
MutableList
<
Medicine
Item
Bean
>)
{
medicineList
=
data
notifyDataSetChanged
()
}
...
...
m-im/src/main/res/drawable/shape_solid_white_stroke_e7ecf0_top.xml
0 → 100644
View file @
6b87ce77
<?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=
"0.5dp"
android:color=
"#e7ecf0"
/>
<corners
android:topLeftRadius=
"8dp"
/>
</shape>
\ No newline at end of file
m-im/src/main/res/drawable/shape_solid_white_stroke_e7ecf0_top2.xml
0 → 100644
View file @
6b87ce77
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#ecf5ff"
/>
<stroke
android:width=
"0.5dp"
android:color=
"#e7ecf0"
/>
<corners
android:topLeftRadius=
"8dp"
/>
</shape>
\ No newline at end of file
m-im/src/main/res/layout/im_message_item_medicine_apply.xml
View file @
6b87ce77
...
...
@@ -3,7 +3,7 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:layout_marginBottom=
"@dimen/platform_dp_12"
>
<TextView
...
...
m-im/src/main/res/layout/im_nim_patient_medicine_apply_layout.xml
View file @
6b87ce77
...
...
@@ -3,13 +3,14 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"255dp"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_solid_white_stroke_e7ecf0_top"
>
<View
android:id=
"@+id/back_top"
android:layout_width=
"match_parent"
android:layout_height=
"45dp"
android:background=
"
#ecf5ff
"
android:background=
"
@drawable/shape_solid_white_stroke_e7ecf0_top2
"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
@@ -24,7 +25,7 @@
app:layout_constraintBottom_toBottomOf=
"@id/back_top"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"开
药申请"
/>
android:text=
"开wwwww
药申请"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/medicine_list"
...
...
@@ -33,9 +34,9 @@
android:paddingStart=
"@dimen/platform_dp_16"
android:layout_marginTop=
"@dimen/platform_dp_16"
android:paddingEnd=
"@dimen/platform_dp_16"
app:layout_constraintTop_toBottomOf=
"@id/back_top"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/back_top"
tools:itemCount=
"2"
/>
<View
...
...
@@ -56,7 +57,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"14dp"
android:layout_marginBottom=
"
2
dp"
android:layout_marginBottom=
"
14
dp"
android:background=
"@drawable/medical_bg_3464ec_14dp"
android:text=
"申请详情"
android:textColor=
"@color/medical_color_007aef"
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/actionutil/ActionCountUtils.kt
View file @
6b87ce77
...
...
@@ -50,7 +50,7 @@ class ActionCountUtils {
appName
=
name
// 获取oaid
UMConfigure
.
getOaid
(
BaseApp
.
instance
)
{
oaId
=
it
it
?.
let
{
oaId
=
it
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment