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
532811f2
Commit
532811f2
authored
Nov 20, 2019
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询师列表页的导医弹框渠道号由接口控制
parent
b5135122
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
config.gradle
config.gradle
+1
-1
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+9
-5
ConsultantIn.kt
m-consultant/src/main/java/com/yidianling/consultant/router/ConsultantIn.kt
+5
-0
No files found.
config.gradle
View file @
532811f2
...
@@ -43,7 +43,7 @@ ext {
...
@@ -43,7 +43,7 @@ ext {
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.16"
,
"m-confide"
:
"0.0.16"
,
"m-consultant"
:
"0.0.2
3
"
,
"m-consultant"
:
"0.0.2
4
"
,
"m-course"
:
"0.0.9"
,
"m-course"
:
"0.0.9"
,
"m-fm"
:
"0.0.12"
,
"m-fm"
:
"0.0.12"
,
"m-muse"
:
"0.0.8"
,
"m-muse"
:
"0.0.8"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
532811f2
...
@@ -6,6 +6,7 @@ import com.yidianling.common.tools.ToastUtil
...
@@ -6,6 +6,7 @@ import com.yidianling.common.tools.ToastUtil
import
com.yidianling.consultant.dialog.ConsultAssistantDialog
import
com.yidianling.consultant.dialog.ConsultAssistantDialog
import
com.yidianling.consultant.model.SearchApi
import
com.yidianling.consultant.model.SearchApi
import
com.yidianling.consultant.router.ConsultantIn
import
com.yidianling.consultant.router.ConsultantIn
import
com.yidianling.consultant.router.ConsultantRouterImp
import
io.reactivex.Observable
import
io.reactivex.Observable
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.schedulers.Schedulers
import
io.reactivex.schedulers.Schedulers
...
@@ -35,14 +36,12 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -35,14 +36,12 @@ class ConsultAssistantDialogUtils private constructor() {
"home_index"
->
{
"home_index"
->
{
if
(
ConsultantIn
.
isLogin
()
&&
if
(
ConsultantIn
.
isLogin
()
&&
ConsultantIn
.
getUserImpl
().
getUserInfo
()
?.
user_type
==
1
ConsultantIn
.
getUserImpl
().
getUserInfo
()
?.
user_type
==
1
/** WalleChannelReader.getChannel(BaseApp.Companion.getApp()) == "android_huawei" */
)
{
)
{
shouldShowDialog
(
activity
,
origin
)
shouldShowDialog
(
activity
,
origin
)
}
}
}
}
"doctor_list"
->
{
"doctor_list"
->
{
if
(
ConsultantIn
.
getUserImpl
().
getUserInfo
()
?.
user_type
==
1
if
(
ConsultantIn
.
getUserImpl
().
getUserInfo
()
?.
user_type
==
1
/** WalleChannelReader.getChannel(BaseApp.Companion.getApp()) == "android_huawei" */
)
{
)
{
shouldShowDialog
(
activity
,
origin
)
shouldShowDialog
(
activity
,
origin
)
}
}
...
@@ -109,8 +108,8 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -109,8 +108,8 @@ class ConsultAssistantDialogUtils private constructor() {
override
fun
run
()
{
override
fun
run
()
{
Observable
.
just
(
1
).
observeOn
(
AndroidSchedulers
.
mainThread
())
Observable
.
just
(
1
).
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
{
.
subscribe
{
showDialog
(
activity
)
expertSearchPageHasShown
=
true
expertSearchPageHasShown
=
true
showDialog
(
activity
)
}
}
}
}
},
5000
)
},
5000
)
...
@@ -127,8 +126,13 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -127,8 +126,13 @@ class ConsultAssistantDialogUtils private constructor() {
consultAssistantDialog
=
null
consultAssistantDialog
=
null
consultAssistantDialog
=
ConsultAssistantDialog
(
activity
,
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
consultAssistantDialog
=
ConsultAssistantDialog
(
activity
,
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
override
fun
onClickAction
()
{
override
fun
onClickAction
()
{
//获取用户uid
// 咨询师列表页面且未登录情况下,跳转登录页面
getConsultAssistantUid
(
activity
)
if
(
expertSearchPageHasShown
&&
!
ConsultantIn
.
isLogin
())
{
ConsultantIn
.
toLogin
(
activity
)
}
else
{
//获取用户uid
getConsultAssistantUid
(
activity
)
}
}
}
})
})
...
...
m-consultant/src/main/java/com/yidianling/consultant/router/ConsultantIn.kt
View file @
532811f2
...
@@ -36,4 +36,8 @@ object ConsultantIn {
...
@@ -36,4 +36,8 @@ object ConsultantIn {
return
ModularServiceManager
.
provide
(
IUserService
::
class
.
java
)
return
ModularServiceManager
.
provide
(
IUserService
::
class
.
java
)
}
}
fun
toLogin
(
activity
:
Activity
)
{
ModularServiceManager
.
provide
(
IUserService
::
class
.
java
).
loginWayIntent
(
activity
)
}
}
}
\ 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