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
d90e1ad4
Commit
d90e1ad4
authored
Jan 27, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:consult组件
parent
e87f8adc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
config.gradle
config.gradle
+1
-1
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+8
-0
ConsultAssistantEntryUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/utils/ConsultAssistantEntryUtils.kt
+9
-0
No files found.
config.gradle
View file @
d90e1ad4
...
@@ -6,7 +6,7 @@ ext {
...
@@ -6,7 +6,7 @@ ext {
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.48.91"
,
"m-confide"
:
"0.0.48.91"
,
"m-consultant"
:
"0.0.59.
5
1"
,
"m-consultant"
:
"0.0.59.
6
1"
,
"m-fm"
:
"0.0.30.00"
,
"m-fm"
:
"0.0.30.00"
,
"m-user"
:
"0.0.60.84"
,
"m-user"
:
"0.0.60.84"
,
"m-home"
:
"0.0.22.51"
,
"m-home"
:
"0.0.22.51"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
d90e1ad4
...
@@ -3,7 +3,9 @@ package com.yidianling.consultant.modular.singlton
...
@@ -3,7 +3,9 @@ package com.yidianling.consultant.modular.singlton
import
android.annotation.SuppressLint
import
android.annotation.SuppressLint
import
android.app.Activity
import
android.app.Activity
import
android.support.v7.app.AppCompatActivity
import
android.support.v7.app.AppCompatActivity
import
com.alibaba.android.arouter.launcher.ARouter
import
com.ydl.ydlcommon.data.http.ThrowableConsumer
import
com.ydl.ydlcommon.data.http.ThrowableConsumer
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.YdlBuryPointUtil
import
com.ydl.ydlcommon.utils.YdlBuryPointUtil
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.LogUtil
...
@@ -323,9 +325,15 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -323,9 +325,15 @@ class ConsultAssistantDialogUtils private constructor() {
}
}
EventBus
.
getDefault
().
post
(
HomeModuleTabEvent
(
2
))
EventBus
.
getDefault
().
post
(
HomeModuleTabEvent
(
2
))
}
else
{
}
else
{
if
(
activity
.
componentName
.
toString
().
contains
(
"CourseListContainerActivity"
)
){
ActivityManager
.
getInstance
()
.
getSecondTaskActivity
()
?.
finish
()
activity
.
finish
()
}
else
{
if
(
null
!=
activity
&&!
activity
.
isFinishing
){
if
(
null
!=
activity
&&!
activity
.
isFinishing
){
activity
.
finish
()
activity
.
finish
()
}
}
}
EventBus
.
getDefault
().
post
(
HomeModuleTabEvent
(
2
))
EventBus
.
getDefault
().
post
(
HomeModuleTabEvent
(
2
))
}
}
}
else
{
}
else
{
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/utils/ConsultAssistantEntryUtils.kt
View file @
d90e1ad4
...
@@ -7,6 +7,8 @@ import com.ydl.ydl_router.manager.YDLRouterManager
...
@@ -7,6 +7,8 @@ import com.ydl.ydl_router.manager.YDLRouterManager
import
com.ydl.ydl_router.manager.YDLRouterParams
import
com.ydl.ydl_router.manager.YDLRouterParams
import
com.ydl.ydlcommon.data.http.ThrowableConsumer
import
com.ydl.ydlcommon.data.http.ThrowableConsumer
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.ActivityManager.Companion.getInstance
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.common.tools.ToastUtil
...
@@ -50,11 +52,18 @@ class ConsultAssistantEntryUtils {
...
@@ -50,11 +52,18 @@ class ConsultAssistantEntryUtils {
if
(
activity
is
ExpertSearchActivity
&&!
activity
.
isFinishing
){
if
(
activity
is
ExpertSearchActivity
&&!
activity
.
isFinishing
){
activity
.
finish
()
activity
.
finish
()
}
}
EventBus
.
getDefault
().
post
(
HomeModuleTabEvent
(
2
))
EventBus
.
getDefault
().
post
(
HomeModuleTabEvent
(
2
))
}
else
{
}
else
{
if
(
activity
.
componentName
.
toString
().
contains
(
"CourseListContainerActivity"
)
){
getInstance
()
.
getSecondTaskActivity
()
?.
finish
()
activity
.
finish
()
}
else
{
if
(
null
!=
activity
&&!
activity
.
isFinishing
){
if
(
null
!=
activity
&&!
activity
.
isFinishing
){
activity
.
finish
()
activity
.
finish
()
}
}
}
EventBus
.
getDefault
().
post
(
HomeModuleTabEvent
(
2
))
EventBus
.
getDefault
().
post
(
HomeModuleTabEvent
(
2
))
}
}
}
else
{
}
else
{
...
...
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