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
27a8bddb
Commit
27a8bddb
authored
Jul 13, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改代码
parent
b276c2f0
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
30 additions
and
41 deletions
+30
-41
OnBottomWordListener.kt
api/consultant/src/main/java/com/yidianling/consultant/OnBottomWordListener.kt
+2
-1
ExpertSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
+2
-2
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+2
-2
HotSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/HotSearchActivity.kt
+5
-4
IExpertSearchView.kt
m-consultant/src/main/java/com/yidianling/consultant/IExpertSearchView.kt
+1
-1
IHotSearchContract.kt
m-consultant/src/main/java/com/yidianling/consultant/contract/IHotSearchContract.kt
+3
-2
HotSearchHttpImpl.kt
m-consultant/src/main/java/com/yidianling/consultant/http/hotsearch/HotSearchHttpImpl.kt
+1
-1
IHotSearchHttp.kt
m-consultant/src/main/java/com/yidianling/consultant/http/hotsearch/IHotSearchHttp.kt
+1
-1
HotSearchModelImpl.kt
m-consultant/src/main/java/com/yidianling/consultant/model/HotSearchModelImpl.kt
+2
-1
SearchApi.kt
m-consultant/src/main/java/com/yidianling/consultant/model/SearchApi.kt
+2
-2
ConsultantServiceImp.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/ConsultantServiceImp.kt
+1
-2
YdlHomeFragment.kt
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+3
-3
YdlHomeFragment.kt
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+5
-19
No files found.
api/consultant/src/main/java/com/yidianling/consultant/OnBottomWordListener.kt
View file @
27a8bddb
...
...
@@ -4,5 +4,5 @@ import com.yidianling.consultant.bean.FunctionWordConsultBean
interface
OnBottomWordListener
{
fun
onBottomWord
(
wordList
:
List
<
FunctionWordConsultBean
>)
fun
onBottomWord
(
wordList
:
Mutable
List
<
FunctionWordConsultBean
>)
}
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
View file @
27a8bddb
...
...
@@ -520,9 +520,9 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
}
}
override
fun
onFunctionWordFetched
(
wordBean
:
List
<
FunctionWordBean
>?
)
{
override
fun
onFunctionWordFetched
(
wordBean
:
MutableList
<
FunctionWordBean
>
)
{
//获取底纹词
bottomWordlist
=
wordBean
!!
bottomWordlist
=
wordBean
if
(
bottomWordlist
.
isNullOrEmpty
())
return
if
(!
searchWord
.
isNullOrEmpty
())
{
tv_search_content
.
text
=
searchWord
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
27a8bddb
...
...
@@ -430,9 +430,9 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
}
@SuppressLint
(
"CheckResult"
)
override
fun
onFunctionWordFetched
(
wordBean
:
List
<
FunctionWordBean
>?
)
{
override
fun
onFunctionWordFetched
(
wordBean
:
MutableList
<
FunctionWordBean
>
)
{
//获取底纹词
bottomWordlist
=
wordBean
!!
bottomWordlist
=
wordBean
if
(
bottomWordlist
.
isNullOrEmpty
())
return
if
(
bottomWordlist
.
size
==
1
)
{
tv_search_content
.
text
=
bottomWordlist
[
0
].
word
...
...
m-consultant/src/main/java/com/yidianling/consultant/HotSearchActivity.kt
View file @
27a8bddb
...
...
@@ -49,6 +49,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
private
var
mSearchContent
:
String
=
""
private
val
CACHE_CONSULT_SEARCH_HISTORY_DATA
=
"cache_consult_search_history_data"
private
val
HOT_SEARCH_DOCTOR_NAME
=
"hot_search_doctor_name"
private
val
JUMP_WORD
=
"jump_word"
private
var
historyList
:
FixSizeLinkedList
<
String
>
=
FixSizeLinkedList
(
15
)
private
val
bannerList
=
ArrayList
<
String
>()
...
...
@@ -114,7 +115,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
relatedWords
=
searchSuggestList
[
0
].
suggest_content
}
if
(
searchSuggestList
?.
get
(
0
)
?.
suggest_types
?.
contains
(
"jump_word"
))
{
if
(
searchSuggestList
?.
get
(
0
)
?.
suggest_types
?.
contains
(
JUMP_WORD
))
{
NewH5Activity
.
start
(
this
,
H5Params
(
searchSuggestList
[
0
].
jump_url
!!
,
null
))
}
else
{
if
(
etSearch
.
text
.
toString
().
isNullOrEmpty
())
{
...
...
@@ -177,7 +178,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
relatedWords
=
searchSuggestList
[
position
].
suggest_content
}
}
if
(
searchSuggestList
[
position
].
suggest_types
?.
contains
(
"jump_word"
))
{
if
(
searchSuggestList
[
position
].
suggest_types
.
contains
(
JUMP_WORD
))
{
NewH5Activity
.
start
(
this
,
H5Params
(
searchSuggestList
[
position
].
jump_url
!!
,
null
))
}
else
{
doSearch
(
...
...
@@ -255,7 +256,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
}
if
(!
searchWordsBean
.
search_suggests
.
isNullOrEmpty
()
&&
searchWordsBean
.
search_suggests
?.
get
(
0
)
?.
suggest_types
?.
contains
(
"jump_word"
)
)
?.
suggest_types
?.
contains
(
JUMP_WORD
)
)
{
//将数据增加到历史搜索中
if
(!
TextUtils
.
isEmpty
(
searchContent
))
{
...
...
@@ -320,7 +321,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
refreshBanner
(
hotSearchBean
.
focusList
)
}
override
fun
searchHotWordData
(
wordList
:
List
<
FunctionWordBean
>)
{
override
fun
searchHotWordData
(
wordList
:
Mutable
List
<
FunctionWordBean
>)
{
//热门词搜索结果
if
(
null
==
wordList
||
wordList
.
isEmpty
())
{
llHotSearch
.
visibility
=
View
.
GONE
...
...
m-consultant/src/main/java/com/yidianling/consultant/IExpertSearchView.kt
View file @
27a8bddb
...
...
@@ -18,7 +18,7 @@ interface IExpertSearchView : IView {
fun
localData
()
fun
onHeadFetched
(
headData
:
HeadData
?)
fun
onFunctionWordFetched
(
wordBean
:
List
<
FunctionWordBean
>?
)
fun
onFunctionWordFetched
(
wordBean
:
MutableList
<
FunctionWordBean
>
)
fun
onDoctorListFetched
(
data
:
MutableList
<
ExpertServiceItem
>,
extras
:
Extras
?,
curPage
:
Int
)
fun
fetchFailed
(
msg
:
String
?)
fun
fetchListFailed
(
msg
:
String
?)
...
...
m-consultant/src/main/java/com/yidianling/consultant/contract/IHotSearchContract.kt
View file @
27a8bddb
...
...
@@ -28,7 +28,7 @@ class IHotSearchContract {
/**
* 搜索页请求热门词
*/
fun
searchHotWordData
(
wordList
:
List
<
FunctionWordBean
>)
fun
searchHotWordData
(
wordList
:
Mutable
List
<
FunctionWordBean
>)
/**
* 请求失败
...
...
@@ -81,6 +81,6 @@ class IHotSearchContract {
/**
* 搜索页请求热门词
*/
fun
searchHotWordData
(
map
:
HashMap
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
List
<
FunctionWordBean
>>>
fun
searchHotWordData
(
map
:
HashMap
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
Mutable
List
<
FunctionWordBean
>>>
}
}
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/http/hotsearch/HotSearchHttpImpl.kt
View file @
27a8bddb
...
...
@@ -51,7 +51,7 @@ class HotSearchHttpImpl : IHotSearchHttp {
}
}
override
fun
searchHotWordData
(
map
:
HashMap
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
List
<
FunctionWordBean
>>>
{
override
fun
searchHotWordData
(
map
:
HashMap
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
Mutable
List
<
FunctionWordBean
>>>
{
return
getSearchApi
().
searchFunctionWord
(
map
)
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/http/hotsearch/IHotSearchHttp.kt
View file @
27a8bddb
...
...
@@ -22,7 +22,7 @@ interface IHotSearchHttp {
/**
* 搜索页请求热门词
*/
fun
searchHotWordData
(
map
:
HashMap
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
List
<
FunctionWordBean
>>>
fun
searchHotWordData
(
map
:
HashMap
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
Mutable
List
<
FunctionWordBean
>>>
/**
* 搜索联想词请求
...
...
m-consultant/src/main/java/com/yidianling/consultant/model/HotSearchModelImpl.kt
View file @
27a8bddb
...
...
@@ -25,7 +25,7 @@ class HotSearchModelImpl : IHotSearchContract.Model {
return
HotSearchDataManager
.
getHttp
().
getSearchWords
(
map
).
compose
(
RxUtils
.
resultJavaData
())
}
override
fun
searchHotWordData
(
map
:
HashMap
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
List
<
FunctionWordBean
>>>
{
override
fun
searchHotWordData
(
map
:
HashMap
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
Mutable
List
<
FunctionWordBean
>>>
{
return
HotSearchDataManager
.
getHttp
().
searchHotWordData
(
map
)
}
}
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/model/SearchApi.kt
View file @
27a8bddb
...
...
@@ -45,13 +45,13 @@ interface SearchApi {
//(1热门词,2底纹词,3跳转词)
@POST
(
"function/word/queryList"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
)
fun
searchFunctionWord
(
@Body
map
:
Map
<
String
,
@JvmSuppressWildcards
Any
>):
Observable
<
BaseAPIResponse
<
List
<
FunctionWordBean
>>>
fun
searchFunctionWord
(
@Body
map
:
Map
<
String
,
@JvmSuppressWildcards
Any
>):
Observable
<
BaseAPIResponse
<
Mutable
List
<
FunctionWordBean
>>>
//查询功能词、底纹词
//(1热门词,2底纹词,3跳转词)
@POST
(
"function/word/queryList"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
)
fun
searchFunctionWordApi
(
@Body
map
:
Map
<
String
,
@JvmSuppressWildcards
Any
>):
Observable
<
BaseAPIResponse
<
List
<
FunctionWordConsultBean
>>>
fun
searchFunctionWordApi
(
@Body
map
:
Map
<
String
,
@JvmSuppressWildcards
Any
>):
Observable
<
BaseAPIResponse
<
Mutable
List
<
FunctionWordConsultBean
>>>
/**
* 新咨询师列表接口(包含搜索、筛选咨询师)
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/ConsultantServiceImp.kt
View file @
27a8bddb
...
...
@@ -136,8 +136,7 @@ class ConsultantServiceImp : IConsultantService {
@SuppressLint
(
"CheckResult"
)
override
fun
getbottomWord
(
type
:
Int
,
listener
:
OnBottomWordListener
)
{
val
map
=
HashMap
<
String
,
Any
>()
map
[
"type"
]
=
type
val
map
=
hashMapOf
(
"type"
to
type
)
SearchApi
.
getSearchApi
()
.
searchFunctionWordApi
(
map
)
.
compose
(
RxUtils
.
resultJavaData
())
...
...
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
27a8bddb
...
...
@@ -93,7 +93,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
private
var
isFromCreate
:
Boolean
=
true
var
startTime
=
System
.
currentTimeMillis
()
var
endTime
by
Delegates
.
notNull
<
Long
>()
private
lateinit
var
bottomWordlist
:
List
<
FunctionWordConsultBean
>
private
lateinit
var
bottomWordlist
:
Mutable
List
<
FunctionWordConsultBean
>
var
bottomWordDisposable
:
Disposable
?
=
null
override
fun
layoutResId
():
Int
{
return
R
.
layout
.
home_fragment_home_module
...
...
@@ -391,8 +391,8 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
private
fun
getBottomWord
()
{
ModularServiceManager
.
provide
(
IConsultantService
::
class
.
java
)
.
getbottomWord
(
2
,
object
:
OnBottomWordListener
{
override
fun
onBottomWord
(
wordList
:
List
<
FunctionWordConsultBean
>)
{
bottomWordlist
=
wordList
!!
override
fun
onBottomWord
(
wordList
:
Mutable
List
<
FunctionWordConsultBean
>)
{
bottomWordlist
=
wordList
if
(
bottomWordlist
.
isNullOrEmpty
())
return
if
(
bottomWordlist
.
size
==
1
)
{
etSearch
.
hint
=
bottomWordlist
[
0
].
word
...
...
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
27a8bddb
...
...
@@ -113,7 +113,7 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
* 如果是第一次加载,则调用所有接口进行刷新,否则,只调用咨询和倾诉接口
*/
private
var
isFromCreate
:
Boolean
=
true
private
lateinit
var
bottomWordlist
:
List
<
FunctionWordConsultBean
>
private
lateinit
var
bottomWordlist
:
Mutable
List
<
FunctionWordConsultBean
>
var
bottomWordDisposable
:
Disposable
?
=
null
override
fun
layoutResId
():
Int
{
...
...
@@ -238,25 +238,11 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
}
override
fun
startAnim
()
{
// HomeAnimUtils.startAnim(mContext, rl_top, rl_search, home_service_call, home_tv)
// HomeAnimUtils.startSearchShow(
// ll_top_function,
// view_search_input_bg,
// home_tv,
// iv_search_icon,
// img_ad
// )
}
override
fun
endAnim
()
{
// HomeAnimUtils.endAnim(mContext, rl_top, rl_search, home_tv, home_service_call, this)
// HomeAnimUtils.startSearchHide(
// ll_top_function,
// view_search_input_bg,
// home_tv,
// iv_search_icon,
// img_ad
// )
}
override
fun
getSearchContent
():
String
{
...
...
@@ -528,8 +514,8 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
private
fun
getBottomWord
()
{
ModularServiceManager
.
provide
(
IConsultantService
::
class
.
java
)
.
getbottomWord
(
2
,
object
:
OnBottomWordListener
{
override
fun
onBottomWord
(
wordList
:
List
<
FunctionWordConsultBean
>)
{
bottomWordlist
=
wordList
!!
override
fun
onBottomWord
(
wordList
:
Mutable
List
<
FunctionWordConsultBean
>)
{
bottomWordlist
=
wordList
if
(
bottomWordlist
.
isNullOrEmpty
())
return
if
(
bottomWordlist
.
size
==
1
)
{
home_tv
.
text
=
bottomWordlist
[
0
].
word
...
...
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