Commit 8817ed2c by 徐健

升级咨询模块

parent 84f65e74
ext {
kotlin_version = "1.3.21"
dev_mode = false
dev_mode = true
ydl_app = [
appName : "心理咨询壹点灵",
......@@ -43,7 +43,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide" : "0.0.18",
"m-consultant" : "0.0.33",
"m-consultant" : "0.0.34",
"m-course" : "0.0.17",
"m-fm" : "0.0.15",
"m-muse" : "0.0.11",
......
......@@ -71,8 +71,8 @@ class ConsultAssistantDialogUtils private constructor() {
* 首页页展示
*/
fun showFromYdlHome(activity: Activity) {
consultAssistantDialogFromHomePage?.dismiss()
consultAssistantDialogFromHomePage = null
if (!activity.isFinishing) {
if (consultAssistantDialogFromHomePage == null) {
consultAssistantDialogFromHomePage = ConsultAssistantDialog(
activity,
object : ConsultAssistantDialog.OnConsultAssistantClickListener {
......@@ -82,14 +82,16 @@ class ConsultAssistantDialogUtils private constructor() {
}
})
}
consultAssistantDialogFromHomePage?.show()
}
}
/**
* 首页隐藏
*/
fun hideFromHomePage() {
consultAssistantDialogFromHomePage?.dismiss()
consultAssistantDialogFromHomePage?.hide()
}
////////////////////////////////////// 首页的展示隐藏逻辑 代码块end ///////////////////////////////////////////////////
......@@ -120,8 +122,8 @@ class ConsultAssistantDialogUtils private constructor() {
* 咨询师列表页展示浮层
*/
fun showDialog(activity: Activity) {
consultAssistantDialog?.dismiss()
consultAssistantDialog = null
if (!activity.isFinishing) {
if (consultAssistantDialog == null) {
consultAssistantDialog = ConsultAssistantDialog(
activity,
object : ConsultAssistantDialog.OnConsultAssistantClickListener {
......@@ -136,15 +138,17 @@ class ConsultAssistantDialogUtils private constructor() {
}
})
}
consultAssistantDialog?.show()
}
}
/**
* 咨询师列表页隐藏
*/
fun hide() {
consultAssistantDialog?.dismiss()
consultAssistantDialog?.hide()
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment