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
21dfe291
Commit
21dfe291
authored
Apr 20, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:倾诉列表增加导医入口、增加导医点击埋点、倾诉浏览页埋点
parent
191699b7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
8 deletions
+53
-8
config.gradle
config.gradle
+6
-6
build.gradle
m-confide/build.gradle
+1
-0
ConfideHomeActivity.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
+7
-2
ConsultBIConstants.kt
m-consultant/src/main/java/com/yidianling/consultant/constants/ConsultBIConstants.kt
+1
-0
ConsultantServiceImp.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/ConsultantServiceImp.kt
+4
-0
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+30
-0
IConsultantService.kt
m-consultant/src/main/modular_api/com/yidianling/consultant/api/IConsultantService.kt
+4
-0
No files found.
config.gradle
View file @
21dfe291
...
@@ -5,8 +5,8 @@ ext {
...
@@ -5,8 +5,8 @@ ext {
ydlPublishVersion
=
[
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.49.0
7
"
,
"m-confide"
:
"0.0.49.0
8
"
,
"m-consultant"
:
"0.0.59.7
0
"
,
"m-consultant"
:
"0.0.59.7
1
"
,
"m-fm"
:
"0.0.30.03"
,
"m-fm"
:
"0.0.30.03"
,
"m-user"
:
"0.0.61.30"
,
"m-user"
:
"0.0.61.30"
,
"m-home"
:
"0.0.22.60"
,
"m-home"
:
"0.0.22.60"
,
...
@@ -21,7 +21,7 @@ ext {
...
@@ -21,7 +21,7 @@ ext {
//-------------- 业务模块 API 层 --------------
//-------------- 业务模块 API 层 --------------
"m-audioim-api"
:
"0.0.6"
,
"m-audioim-api"
:
"0.0.6"
,
"m-confide-api"
:
"0.0.2.11"
,
"m-confide-api"
:
"0.0.2.11"
,
"m-consultant-api"
:
"0.0.5.6
1
"
,
"m-consultant-api"
:
"0.0.5.6
2
"
,
"m-course-api"
:
"0.0.3.6"
,
"m-course-api"
:
"0.0.3.6"
,
"m-fm-api"
:
"0.0.3"
,
"m-fm-api"
:
"0.0.3"
,
"m-muse-api"
:
"0.0.1"
,
"m-muse-api"
:
"0.0.1"
,
...
@@ -88,8 +88,8 @@ ext {
...
@@ -88,8 +88,8 @@ ext {
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.49.0
2
"
,
"m-confide"
:
"0.0.49.0
8
"
,
"m-consultant"
:
"0.0.59.
65
"
,
"m-consultant"
:
"0.0.59.
71
"
,
"m-fm"
:
"0.0.30.01"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.18"
,
"m-user"
:
"0.0.61.18"
,
"m-home"
:
"0.0.22.54"
,
"m-home"
:
"0.0.22.54"
,
...
@@ -103,7 +103,7 @@ ext {
...
@@ -103,7 +103,7 @@ ext {
//-------------- 业务模块 API 层 --------------
//-------------- 业务模块 API 层 --------------
"m-audioim-api"
:
"0.0.6"
,
"m-audioim-api"
:
"0.0.6"
,
"m-confide-api"
:
"0.0.2.1"
,
"m-confide-api"
:
"0.0.2.1"
,
"m-consultant-api"
:
"0.0.5.6"
,
"m-consultant-api"
:
"0.0.5.6
2
"
,
"m-course-api"
:
"0.0.3.6"
,
"m-course-api"
:
"0.0.3.6"
,
"m-fm-api"
:
"0.0.3"
,
"m-fm-api"
:
"0.0.3"
,
"m-muse-api"
:
"0.0.1"
,
"m-muse-api"
:
"0.0.1"
,
...
...
m-confide/build.gradle
View file @
21dfe291
...
@@ -80,6 +80,7 @@ dependencies {
...
@@ -80,6 +80,7 @@ dependencies {
implementation
'com.alibaba:fastjson:1.2.38'
implementation
'com.alibaba:fastjson:1.2.38'
api
rootProject
.
ext
.
dependencies
[
"ydl-user-router"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-user-router"
]
implementation
modularPublication
(
'com.ydl:m-consultant-api'
)
if
(
rootProject
.
ext
.
dev_mode
){
if
(
rootProject
.
ext
.
dev_mode
){
//开发时使用
//开发时使用
api
project
(
':ydl-media'
)
api
project
(
':ydl-media'
)
...
...
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
View file @
21dfe291
...
@@ -2,11 +2,11 @@ package com.ydl.confide.home
...
@@ -2,11 +2,11 @@ package com.ydl.confide.home
import
android.content.Context
import
android.content.Context
import
android.os.Build
import
android.os.Build
import
android.view.View
import
android.widget.LinearLayout
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.SimpleItemAnimator
import
androidx.recyclerview.widget.SimpleItemAnimator
import
android.view.View
import
android.widget.LinearLayout
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.jcodecraeer.xrecyclerview.ProgressStyle
import
com.jcodecraeer.xrecyclerview.ProgressStyle
import
com.jcodecraeer.xrecyclerview.XRecyclerView
import
com.jcodecraeer.xrecyclerview.XRecyclerView
...
@@ -26,12 +26,15 @@ import com.ydl.confide.home.presenter.ConfideHomePresenterImpl
...
@@ -26,12 +26,15 @@ import com.ydl.confide.home.presenter.ConfideHomePresenterImpl
import
com.ydl.confide.home.util.ConfideHomeUtils
import
com.ydl.confide.home.util.ConfideHomeUtils
import
com.ydl.confide.router.PhoneCallIn
import
com.ydl.confide.router.PhoneCallIn
import
com.ydl.ydl_image.listener.YDLImageRecyclerOnScrollListener
import
com.ydl.ydl_image.listener.YDLImageRecyclerOnScrollListener
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.mvp.lce.BaseLceActivity
import
com.ydl.ydlcommon.mvp.lce.BaseLceActivity
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.ydl.ydlcommon.view.DrawableRightTextView
import
com.ydl.ydlcommon.view.DrawableRightTextView
import
com.ydl.ydlcommon.view.WrapContentLinearLayoutManager
import
com.ydl.ydlcommon.view.WrapContentLinearLayoutManager
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.consultant.api.IConsultantService
import
kotlinx.android.synthetic.main.confide_home_activity.*
import
kotlinx.android.synthetic.main.confide_home_activity.*
import
kotlinx.android.synthetic.main.confide_title_bar.*
import
kotlinx.android.synthetic.main.confide_title_bar.*
...
@@ -178,6 +181,8 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
...
@@ -178,6 +181,8 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
initClick
()
initClick
()
initQuickConsultDialog
()
initQuickConsultDialog
()
initStatus
();
initStatus
();
ModularServiceManager
.
provide
(
IConsultantService
::
class
.
java
).
showConfideListDialog
(
this
)
ActionCountUtils
.
count
(
"daoyi_advertisement_page|daoyi_advertisement_visit"
,
"17"
)
}
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/constants/ConsultBIConstants.kt
View file @
21dfe291
...
@@ -17,6 +17,7 @@ class ConsultBIConstants {
...
@@ -17,6 +17,7 @@ class ConsultBIConstants {
const
val
POSITION_CONSULT_FILTER_RESET_CLICK
=
"consult_filter_reset_click"
//重置
const
val
POSITION_CONSULT_FILTER_RESET_CLICK
=
"consult_filter_reset_click"
//重置
const
val
POSITION_CONSULT_FILTER_CHECKOUT_CLICK
=
"consult_filter_checkoutallconsultants_click"
//查看XXX位咨询师
const
val
POSITION_CONSULT_FILTER_CHECKOUT_CLICK
=
"consult_filter_checkoutallconsultants_click"
//查看XXX位咨询师
const
val
POSITION_DAOYI_ADVERTISEMENT_CLICK
=
"daoyi_advertisement_page|daoyi_advertisement_click"
const
val
POSITION_DAOYI_ADVERTISEMENT_CLICK
=
"daoyi_advertisement_page|daoyi_advertisement_click"
const
val
POSITION_DAOYI_ADVERTISEMENT_VISIT
=
"daoyi_advertisement_page|daoyi_advertisement_visit"
}
}
//====================APP咨询列表页(app_consult_list_page)====================
//====================APP咨询列表页(app_consult_list_page)====================
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/ConsultantServiceImp.kt
View file @
21dfe291
...
@@ -122,6 +122,10 @@ class ConsultantServiceImp : IConsultantService {
...
@@ -122,6 +122,10 @@ class ConsultantServiceImp : IConsultantService {
ConsultAssistantEntryUtils
.
getTypeJump
(
activity
,
location
,
doctorId
,
url
)
ConsultAssistantEntryUtils
.
getTypeJump
(
activity
,
location
,
doctorId
,
url
)
}
}
override
fun
showConfideListDialog
(
activity
:
Activity
)
{
ConsultAssistantDialogUtils
.
INSTANCE
.
showFromConfideListHome
(
activity
)
}
override
fun
resetConsultAssistantDialogStatus
()
{
override
fun
resetConsultAssistantDialogStatus
()
{
ConsultAssistantDialogUtils
.
INSTANCE
.
resetStatus
()
ConsultAssistantDialogUtils
.
INSTANCE
.
resetStatus
()
}
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
21dfe291
...
@@ -38,6 +38,7 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -38,6 +38,7 @@ class ConsultAssistantDialogUtils private constructor() {
var
consultAssistantFragmentDialog
:
ConsultAssistantDialog
?
=
null
//咨询师列表fragment页面展示的dialog
var
consultAssistantFragmentDialog
:
ConsultAssistantDialog
?
=
null
//咨询师列表fragment页面展示的dialog
var
expertSearchPageHasShown
:
Boolean
=
false
// 专家咨询列表fragment页面是否已经展示
var
expertSearchPageHasShown
:
Boolean
=
false
// 专家咨询列表fragment页面是否已经展示
var
consultAssistantActivityDialog
:
ConsultAssistantDialog
?
=
null
//咨询师列表activity页面展示的dialog
var
consultAssistantActivityDialog
:
ConsultAssistantDialog
?
=
null
//咨询师列表activity页面展示的dialog
var
confideListDialog
:
ConsultAssistantDialog
?
=
null
//倾诉列表activity页面展示的dialog
var
expertSearchActivityPageHasShown
:
Boolean
=
false
// 专家咨询列表activity页面是否已经展示
var
expertSearchActivityPageHasShown
:
Boolean
=
false
// 专家咨询列表activity页面是否已经展示
// var ASSISTANT_DIALOG_SP_TAG = "assistant_dialog_sp_tag" // 是否展示左侧文本的缓存key
// var ASSISTANT_DIALOG_SP_TAG = "assistant_dialog_sp_tag" // 是否展示左侧文本的缓存key
var
minWidth
=
0
// 最小宽度
var
minWidth
=
0
// 最小宽度
...
@@ -135,6 +136,35 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -135,6 +136,35 @@ class ConsultAssistantDialogUtils private constructor() {
////////////////////////////////////// 首页的展示隐藏逻辑 代码块end ///////////////////////////////////////////////////
////////////////////////////////////// 首页的展示隐藏逻辑 代码块end ///////////////////////////////////////////////////
////////////////////////////////////// 倾诉列表页展示隐藏逻辑 代码块start ///////////////////////////////////////////////////
/**
* 倾诉列表页展示
*/
fun
showFromConfideListHome
(
activity
:
Activity
)
{
if
(!
activity
.
isFinishing
)
{
if
(
confideListDialog
==
null
)
{
confideListDialog
=
ConsultAssistantDialog
(
activity
,
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
override
fun
onClickAction
()
{
ActionCountUtils
.
count
(
ConsultBIConstants
.
POSITION_DAOYI_ADVERTISEMENT_CLICK
,
"17"
)
getConsultAssistantUid
(
""
,
activity
,
17
)
}
})
}
confideListDialog
?.
show
()
}
}
/**
* 倾诉列表页隐藏
*/
fun
hideFromConfideListPage
()
{
confideListDialog
?.
hide
()
}
////////////////////////////////////// 倾诉列表页展示隐藏逻辑 代码块end ///////////////////////////////////////////////////
////////////////////////////////////// 我的展示隐藏逻辑 代码块start ///////////////////////////////////////////////////
////////////////////////////////////// 我的展示隐藏逻辑 代码块start ///////////////////////////////////////////////////
...
...
m-consultant/src/main/modular_api/com/yidianling/consultant/api/IConsultantService.kt
View file @
21dfe291
...
@@ -43,4 +43,7 @@ interface IConsultantService: IProvider {
...
@@ -43,4 +43,7 @@ interface IConsultantService: IProvider {
//根据返回Type跳转自主或者导医
//根据返回Type跳转自主或者导医
fun
dueToTypeJumpAutoOrGuide
(
activity
:
Activity
,
location
:
Int
,
doctorId
:
Int
,
url
:
String
)
fun
dueToTypeJumpAutoOrGuide
(
activity
:
Activity
,
location
:
Int
,
doctorId
:
Int
,
url
:
String
)
// 咨询列表页显示咨询助理弹框
fun
showConfideListDialog
(
activity
:
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