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
9691b71b
Commit
9691b71b
authored
Nov 03, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:我的埋点修改
parent
5195088e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
48 deletions
+43
-48
config.gradle
config.gradle
+8
-8
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+7
-10
YdlHomeFragment.kt
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+7
-10
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+17
-10
MineFragment.java
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
+4
-10
No files found.
config.gradle
View file @
9691b71b
...
...
@@ -6,11 +6,11 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.49.13"
,
"m-consultant"
:
"0.0.59.9
6
"
,
"m-consultant"
:
"0.0.59.9
8
"
,
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.7
7
"
,
"m-home"
:
"0.0.22.7
7
"
,
"m-im"
:
"0.0.19.9
2
"
,
"m-user"
:
"0.0.61.7
8
"
,
"m-home"
:
"0.0.22.7
9
"
,
"m-im"
:
"0.0.19.9
3
"
,
"m-dynamic"
:
"0.0.7.31"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -89,11 +89,11 @@ ext {
//第三步 若干
"m-confide"
:
"0.0.49.13"
,
"m-consultant"
:
"0.0.59.9
6
"
,
"m-consultant"
:
"0.0.59.9
8
"
,
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.7
7
"
,
"m-home"
:
"0.0.22.7
7
"
,
"m-im"
:
"0.0.19.9
2
"
,
"m-user"
:
"0.0.61.7
8
"
,
"m-home"
:
"0.0.22.7
9
"
,
"m-im"
:
"0.0.19.9
3
"
,
"m-dynamic"
:
"0.0.7.31"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
9691b71b
...
...
@@ -72,8 +72,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
SwipeRefreshLayout
.
OnRefreshListener
{
private
lateinit
var
mContext
:
Context
private
lateinit
var
mActivity
:
FragmentActivity
var
startTime
by
Delegates
.
notNull
<
Long
>()
var
endTime
by
Delegates
.
notNull
<
Long
>()
var
startTime
=
0L
var
endTime
=
0L
override
fun
layoutResId
():
Int
{
return
R
.
layout
.
consultant_activity_expert_search_list
...
...
@@ -328,9 +328,13 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override
fun
setUserVisibleHint
(
isVisibleToUser
:
Boolean
)
{
super
.
setUserVisibleHint
(
isVisibleToUser
)
if
(
isVisibleToUser
&&
isResumed
)
{
startTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
APP_CONSULT_LIST_PAGE_VISIT
)
showConsultAssistantDialog
()
}
else
{
hideConsultAssistantDialog
()
endTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
YDL_USER_CONSULT_PAGE_STAY_VISIT
,(
endTime
-
startTime
).
toString
())
}
if
(
isVisibleToUser
&&
isResumed
)
{
onResume
()
...
...
@@ -1527,16 +1531,9 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override
fun
onResume
()
{
super
.
onResume
()
startTime
=
System
.
currentTimeMillis
()
refresh
(
false
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
APP_CONSULT_LIST_PAGE_VISIT
)
}
override
fun
onStop
()
{
super
.
onStop
()
endTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
YDL_USER_CONSULT_PAGE_STAY_VISIT
,(
endTime
-
startTime
).
toString
())
}
override
fun
onDestroy
()
{
super
.
onDestroy
()
ConsultAssistantDialogUtils
.
INSTANCE
.
resetStatus
()
...
...
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
9691b71b
...
...
@@ -93,8 +93,8 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
open
var
searchText
:
String
=
""
open
var
doctorName
:
String
=
""
var
startTime
by
Delegates
.
notNull
<
Long
>()
var
endTime
by
Delegates
.
notNull
<
Long
>()
var
startTime
=
0L
var
endTime
=
0L
/**
* 如果是第一次加载,则调用所有接口进行刷新,否则,只调用咨询和倾诉接口
...
...
@@ -494,9 +494,13 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
override
fun
setUserVisibleHint
(
isVisibleToUser
:
Boolean
)
{
super
.
setUserVisibleHint
(
isVisibleToUser
)
if
(
isVisibleToUser
&&
isResumed
)
{
startTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
showConsultAssistantDialog
()
}
else
{
hideConsultAssistantDialog
()
endTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_HOME_DWELL_TIME
,(
endTime
-
startTime
).
toString
())
}
if
(
isVisibleToUser
&&
isResumed
)
{
onResume
()
...
...
@@ -512,17 +516,10 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
ModularServiceManager
.
provide
(
IConsultantService
::
class
.
java
).
hideConsultAssistantDialog
()
}
override
fun
onStop
()
{
super
.
onStop
()
endTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_HOME_DWELL_TIME
,(
endTime
-
startTime
).
toString
())
}
override
fun
onResume
()
{
super
.
onResume
()
startTime
=
System
.
currentTimeMillis
()
if
(
userVisibleHint
)
{
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
if
(
isFromCreate
)
{
isFromCreate
=
false
mPresenter
?.
loadHomeData
()
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
9691b71b
...
...
@@ -226,8 +226,8 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
private
boolean
isOthers
;
private
MultipleAnswerBean
multipleAnswerBean
;
private
ArrayList
<
String
>
answersItemsMap
=
new
ArrayList
<>();
private
long
startTime
;
private
long
endTime
;
private
long
startTime
=
0
;
private
long
endTime
=
0
;
@SuppressLint
(
"HandlerLeak"
)
private
Handler
mHandler
=
new
Handler
()
{
@Override
...
...
@@ -1020,8 +1020,6 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
@Override
public
void
onResume
()
{
super
.
onResume
();
ActionCountUtils
.
Companion
.
count
(
"ydl_user_message_page|ydl_user_message_page_visit"
);
startTime
=
System
.
currentTimeMillis
();
messageListPanel
.
onResume
();
NIMClient
.
getService
(
MsgService
.
class
).
setChattingAccount
(
sessionId
,
sessionType
);
getActivity
().
setVolumeControlStream
(
AudioManager
.
STREAM_VOICE_CALL
);
// 默认使用听筒播放
...
...
@@ -1031,6 +1029,21 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
}
@Override
public
void
setUserVisibleHint
(
boolean
isVisibleToUser
)
{
super
.
setUserVisibleHint
(
isVisibleToUser
);
if
(
isVisibleToUser
&&
isResumed
())
{
ActionCountUtils
.
Companion
.
count
(
"ydl_user_message_page|ydl_user_message_page_visit"
);
startTime
=
System
.
currentTimeMillis
();
}
else
{
endTime
=
System
.
currentTimeMillis
();
ActionCountUtils
.
Companion
.
count
(
"ydl_user_message_page|ydl_user_message_page_stay_visit"
,
String
.
valueOf
(
endTime
-
startTime
));
}
if
(
isVisibleToUser
&&
isResumed
())
{
onResume
();
}
}
@Override
public
void
onDestroy
()
{
comment_banner_view
.
onDestory
();
EventBus
.
getDefault
().
unregister
(
this
);
...
...
@@ -1045,12 +1058,6 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
}
}
@Override
public
void
onStop
()
{
super
.
onStop
();
endTime
=
System
.
currentTimeMillis
();
ActionCountUtils
.
Companion
.
count
(
"ydl_user_message_page|ydl_user_message_page_stay_visit"
,
String
.
valueOf
(
endTime
-
startTime
));
}
ArrayList
<
AnswersItem
>
answersItems
=
new
ArrayList
<>();
public
void
onEvent
(
MultipleSelectedEvent
event
){
...
...
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
View file @
9691b71b
...
...
@@ -103,8 +103,8 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
*/
private
JumpTextView
jtv_test
;
private
SwipeRefreshLayout
swipeRefreshLayout
;
private
long
startTime
;
private
long
endTime
;
private
long
startTime
=
0
;
private
long
endTime
=
0
;
@Override
public
int
layoutResId
()
{
...
...
@@ -201,14 +201,6 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
}
@Override
public
void
onStop
()
{
super
.
onStop
();
endTime
=
System
.
currentTimeMillis
();
ActionCountUtils
.
Companion
.
count
(
YDL_USER_MY_PAGE_STAY_VISIT
,
String
.
valueOf
(
endTime
-
startTime
));
}
@Override
public
void
setUserVisibleHint
(
boolean
isVisibleToUser
)
{
super
.
setUserVisibleHint
(
isVisibleToUser
);
if
(
isVisibleToUser
&&
isResumed
())
{
...
...
@@ -216,6 +208,8 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
ActionCountUtils
.
Companion
.
count
(
YDL_USER_MY_PAGE_VISIT
);
showConsultAssistantDialog
();
}
else
{
endTime
=
System
.
currentTimeMillis
();
ActionCountUtils
.
Companion
.
count
(
YDL_USER_MY_PAGE_STAY_VISIT
,
String
.
valueOf
(
endTime
-
startTime
));
hideConsultAssistantDialog
();
}
if
(
isVisibleToUser
&&
isResumed
())
{
...
...
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