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
d5e9314c
Commit
d5e9314c
authored
Jul 20, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:无服务状态提示
parent
7b520537
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
ExpertConsultServiceListDialog2.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog2.kt
+3
-0
im_expert_consult_service_list_fragment_layout.xml
m-im/src/main/res/layout/im_expert_consult_service_list_fragment_layout.xml
+32
-0
No files found.
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog2.kt
View file @
d5e9314c
...
...
@@ -82,6 +82,7 @@ class ExpertConsultServiceListDialog2(
if
(
mList
!=
null
)
{
dialog_ll_empty
.
visibility
=
View
.
GONE
mList
.
forEach
{
item
->
typeList
.
add
(
item
.
cateName
)
}
...
...
@@ -92,6 +93,7 @@ class ExpertConsultServiceListDialog2(
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
Consumer
<
BaseAPIResponse
<
List
<
ServiceItemBean
>>>
{
res
:
BaseAPIResponse
<
List
<
ServiceItemBean
>>
->
if
(
res
.
data
!=
null
&&
res
.
data
.
size
>
0
)
{
dialog_ll_empty
.
visibility
=
View
.
GONE
var
serviceItemBeanList
=
res
.
data
serviceItemBeanList
.
forEach
{
item
->
...
...
@@ -112,6 +114,7 @@ class ExpertConsultServiceListDialog2(
}
else
{
dialog_ll_empty
.
visibility
=
View
.
VISIBLE
ToastUtil
.
toastShort
(
"咨询师暂未发布服务"
)
}
},
Consumer
{
throwable
:
Throwable
?
->
})
...
...
m-im/src/main/res/layout/im_expert_consult_service_list_fragment_layout.xml
View file @
d5e9314c
...
...
@@ -22,10 +22,41 @@
android:layout_gravity=
"center"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/dialog_ll_empty"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/platform_dp_5"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
android:visibility=
"gone"
>
<TextView
android:id=
"@+id/empty_tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:text=
"选择服务主题"
android:textStyle=
"bold"
android:textColor=
"#1C1F28"
android:textSize=
"18sp"
/>
<TextView
android:id=
"@+id/dialog_empty"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tv_title"
android:gravity=
"center_horizontal"
android:paddingTop=
"20dp"
android:text=
"暂未开通咨询服务"
android:textColor=
"@color/color_666666"
/>
</LinearLayout>
<com.ydl.ydlcommon.view.NoScrollViewPager
android:id=
"@+id/dialog_bottom_scroll_view"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#ffffff"
></com.ydl.ydlcommon.view.NoScrollViewPager>
</LinearLayout>
\ No newline at end of file
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