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
5a3c5379
Commit
5a3c5379
authored
Nov 18, 2019
by
洪国微
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增咨询首页fragment
parent
5b521932
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+0
-0
ExpertSearchPresenter.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
+7
-3
No files found.
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
0 → 100644
View file @
5a3c5379
This diff is collapsed.
Click to expand it.
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
View file @
5a3c5379
...
...
@@ -4,6 +4,7 @@ import android.annotation.SuppressLint
import
android.text.TextUtils
import
com.google.gson.Gson
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.base.lifecycle.IActivityLifecycleable
import
com.ydl.ydlcommon.data.http.RxUtils
import
com.ydl.ydlcommon.data.http.ThrowableConsumer
import
com.ydl.ydlcommon.mvp.base.SimplePresenter
...
...
@@ -22,7 +23,6 @@ import io.reactivex.schedulers.Schedulers
/**
* 专家搜索页Presenter
* Created by zqk on 17-9-19.
*/
class
ExpertSearchPresenter
:
SimplePresenter
<
IExpertSearchView
>()
{
...
...
@@ -43,10 +43,12 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
}
@SuppressLint
(
"CheckResult"
)
fun
fetchBannerList
()
{
ExpertSearchDataManager
.
getHttp
().
getBannerList
()
.
subscribeOn
(
Schedulers
.
io
())
.
compose
(
RxLifecycleUtils
.
bindToLifecycle
(
mView
!!
)).
compose
(
RxUtils
.
resultJavaData
())
.
compose
(
RxLifecycleUtils
.
bindToLifecycle
(
mView
!!
))
.
compose
(
RxUtils
.
resultJavaData
())
.
map
{
it
}
.
filter
{
it
!=
null
}
.
observeOn
(
AndroidSchedulers
.
mainThread
())
...
...
@@ -121,6 +123,7 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
}
}
@SuppressLint
(
"CheckResult"
)
fun
fetchListData
(
allFilter
:
AllFilter
,
page
:
Int
)
{
var
showType
=
0
...
...
@@ -164,7 +167,8 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
}
sb
.
append
(
"&page="
).
append
(
page
)
ExpertSearchDataManager
.
getHttp
().
searchDoctor
(
sb
.
toString
())
.
compose
(
RxLifecycleUtils
.
bindToLifecycle
(
mView
!!
)).
compose
(
RxUtils
.
resultJavaData
())
.
compose
(
RxLifecycleUtils
.
bindToLifecycle
(
mView
!!
))
.
compose
(
RxUtils
.
resultJavaData
())
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
Consumer
{
...
...
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