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
e128a432
Commit
e128a432
authored
Jul 19, 2022
by
fengquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 咨询师列表页地区
parent
b63f63c0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
ExpertSearchPresenter.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
+2
-0
ExpertSearchAdapter.kt
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
+3
-3
ExpertServiceItem.kt
m-consultant/src/main/java/com/yidianling/consultant/model/bean/ExpertServiceItem.kt
+13
-2
No files found.
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
View file @
e128a432
...
@@ -240,6 +240,8 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
...
@@ -240,6 +240,8 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
fieldsMap
[
"open_chat_agency"
]
=
true
fieldsMap
[
"open_chat_agency"
]
=
true
fieldsMap
[
"service_status"
]
=
true
fieldsMap
[
"service_status"
]
=
true
fieldsMap
[
"is_free_today"
]
=
true
fieldsMap
[
"is_free_today"
]
=
true
fieldsMap
[
"display_region"
]
=
true
fieldsMap
[
"has_servicefree_experience"
]
=
true
map
[
"fields"
]
=
fieldsMap
map
[
"fields"
]
=
fieldsMap
val
optionsMap
=
HashMap
<
String
,
Any
?>()
val
optionsMap
=
HashMap
<
String
,
Any
?>()
...
...
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
View file @
e128a432
...
@@ -177,14 +177,14 @@ class ExpertSearchAdapter(
...
@@ -177,14 +177,14 @@ class ExpertSearchAdapter(
//省市
//省市
if
(!
TextUtils
.
isEmpty
(
itemBean
.
province
))
{
if
(!
TextUtils
.
isEmpty
(
itemBean
.
display_region
))
{
holder
.
tvCity
.
text
=
itemBean
.
province
+
"·"
+
itemBean
.
city
holder
.
tvCity
.
text
=
itemBean
.
display_region
}
else
{
}
else
{
holder
.
tvCity
.
text
=
""
holder
.
tvCity
.
text
=
""
}
}
//公益图标,不与其他图标冲突
//公益图标,不与其他图标冲突
if
(
1
==
itemBean
.
has_servicefree_
consult
)
{
if
(
1
==
itemBean
.
has_servicefree_
experience
)
{
if
(
null
!=
itemBean
.
icons
&&
!
TextUtils
.
isEmpty
(
itemBean
.
icons
.
service_free_icon
))
{
if
(
null
!=
itemBean
.
icons
&&
!
TextUtils
.
isEmpty
(
itemBean
.
icons
.
service_free_icon
))
{
expertSearchView
.
showImage
(
expertSearchView
.
showImage
(
itemBean
.
icons
.
service_free_icon
,
itemBean
.
icons
.
service_free_icon
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/model/bean/ExpertServiceItem.kt
View file @
e128a432
...
@@ -151,13 +151,24 @@ data class ExpertServiceItem(
...
@@ -151,13 +151,24 @@ data class ExpertServiceItem(
/**
/**
* 联想词
* 联想词
*/
*/
val
related_word
:
String
val
related_word
:
String
,
/**
* 地区
*/
val
display_region
:
String
,
/**
* 是否展示公益图标
*/
val
has_servicefree_experience
:
Int
?
)
{
)
{
constructor
(
is_head_view
:
Boolean
,
search_content
:
String
,
related_word
:
String
)
:
this
(
""
,
""
,
""
,
""
,
""
,
constructor
(
is_head_view
:
Boolean
,
search_content
:
String
,
related_word
:
String
)
:
this
(
""
,
""
,
""
,
""
,
""
,
1
,
1
,
1
,
""
,
false
,
true
,
1
,
1
,
1
,
""
,
false
,
true
,
1f
,
false
,
0
,
""
,
""
,
""
,
1f
,
1f
,
1f
,
false
,
0
,
""
,
""
,
""
,
1f
,
1f
,
null
,
null
,
1
,
1
,
1
,
1
,
null
,
null
,
1
,
1
,
1
,
1
,
""
,
""
,
""
,
""
,
null
,
is_head_view
,
search_content
,
related_word
)
""
,
""
,
""
,
""
,
null
,
is_head_view
,
search_content
,
related_word
,
""
,
1
)
}
}
data class
FeatureTag
(
data class
FeatureTag
(
...
...
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