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
80267bda
Commit
80267bda
authored
Jul 12, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改BUG
parent
3a05587f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
config.gradle
config.gradle
+1
-1
HotSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/HotSearchActivity.kt
+8
-4
No files found.
config.gradle
View file @
80267bda
ext
{
dev_mode
=
false
//组件发布的时候需要设置为false
ydl2PublishVersion
=
"0.2.0.1
0
-SNAPSHOT"
ydl2PublishVersion
=
"0.2.0.1
1
-SNAPSHOT"
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
...
...
m-consultant/src/main/java/com/yidianling/consultant/HotSearchActivity.kt
View file @
80267bda
...
...
@@ -86,7 +86,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
private
fun
getDataFromIntent
()
{
val
doctorName
=
intent
.
getStringExtra
(
HOT_SEARCH_DOCTOR_NAME
)
if
(!
TextUtils
.
isEmpty
(
doctorName
))
{
etSearch
.
setText
(
doctorName
)
etSearch
.
hint
=
doctorName
iv_delete_icon
.
visibility
=
View
.
VISIBLE
}
}
...
...
@@ -117,12 +117,16 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
if
(
searchSuggestList
?.
get
(
0
)
?.
suggest_types
?.
contains
(
"jump_word"
))
{
NewH5Activity
.
start
(
this
,
H5Params
(
searchSuggestList
[
0
].
jump_url
!!
,
null
))
}
else
{
doSearch
(
etSearch
.
text
.
toString
(),
relatedWords
,
isRecommendWords
)
if
(
etSearch
.
text
.
toString
().
isNullOrEmpty
())
{
doSearch
(
etSearch
.
hint
.
toString
(),
relatedWords
,
isRecommendWords
)
}
else
{
doSearch
(
etSearch
.
text
.
toString
(),
relatedWords
,
isRecommendWords
)
}
}
}
else
{
val
searchWords
=
etSearch
.
text
.
toString
()
if
(
TextUtils
.
isEmpty
(
searchWords
))
{
doSearch
(
searchWords
,
""
,
isRecommendWords
)
doSearch
(
etSearch
.
hint
.
toString
()
,
""
,
isRecommendWords
)
}
else
{
getSearchWords
(
etSearch
.
text
.
toString
(),
true
)
}
...
...
@@ -362,7 +366,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
}
}
view
.
setOnClickListener
{
ActionCountUtils
.
count
(
SEARCH_BANNERWORD_CLICK
,
etSearch
.
text
.
toString
(),
"热门专家"
)
ActionCountUtils
.
count
(
SEARCH_BANNERWORD_CLICK
,
etSearch
.
text
.
toString
(),
"
本周
热门专家"
)
getSearchWords
(
etSearch
.
text
.
toString
(),
true
)
}
flHotExpert
.
addView
(
view
)
...
...
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