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
b534c7aa
Commit
b534c7aa
authored
Nov 04, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:埋点
parent
c3c305ea
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
44 deletions
+39
-44
config.gradle
config.gradle
+6
-6
BigShotOneView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotOneView.kt
+0
-2
BigShotTwoView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotTwoView.kt
+4
-0
TrendsHomeFragment.java
m-dynamic/src/main/java/com/yidianling/dynamic/trendsHome/TrendsHomeFragment.java
+10
-13
NewMultiMessageFragment.kt
m-im/src/main/java/com/yidianling/im/ui/page/NewMultiMessageFragment.kt
+17
-6
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+2
-17
No files found.
config.gradle
View file @
b534c7aa
...
@@ -6,12 +6,12 @@ ext {
...
@@ -6,12 +6,12 @@ ext {
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.49.13"
,
"m-confide"
:
"0.0.49.13"
,
"m-consultant"
:
"0.0.59.9
8
"
,
"m-consultant"
:
"0.0.59.9
9
"
,
"m-fm"
:
"0.0.30.04"
,
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.78"
,
"m-user"
:
"0.0.61.78"
,
"m-home"
:
"0.0.22.80"
,
"m-home"
:
"0.0.22.80"
,
"m-im"
:
"0.0.19.9
3
"
,
"m-im"
:
"0.0.19.9
9
"
,
"m-dynamic"
:
"0.0.7.3
1
"
,
"m-dynamic"
:
"0.0.7.3
2
"
,
"m-article"
:
"0.0.0.10"
,
"m-article"
:
"0.0.0.10"
,
"m-muse"
:
"0.0.28.24"
,
"m-muse"
:
"0.0.28.24"
,
...
@@ -89,12 +89,12 @@ ext {
...
@@ -89,12 +89,12 @@ ext {
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.49.13"
,
"m-confide"
:
"0.0.49.13"
,
"m-consultant"
:
"0.0.59.9
8
"
,
"m-consultant"
:
"0.0.59.9
9
"
,
"m-fm"
:
"0.0.30.04"
,
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.78"
,
"m-user"
:
"0.0.61.78"
,
"m-home"
:
"0.0.22.80"
,
"m-home"
:
"0.0.22.80"
,
"m-im"
:
"0.0.19.9
3
"
,
"m-im"
:
"0.0.19.9
9
"
,
"m-dynamic"
:
"0.0.7.3
1
"
,
"m-dynamic"
:
"0.0.7.3
2
"
,
"m-article"
:
"0.0.0.8"
,
"m-article"
:
"0.0.0.8"
,
"m-muse"
:
"0.0.28.24"
,
"m-muse"
:
"0.0.28.24"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotOneView.kt
View file @
b534c7aa
...
@@ -52,8 +52,6 @@ class BigShotOneView : LinearLayout {
...
@@ -52,8 +52,6 @@ class BigShotOneView : LinearLayout {
fun
setUrl
(
bean
:
ExpertSearchBigShotBean
)
{
fun
setUrl
(
bean
:
ExpertSearchBigShotBean
)
{
mContext
?.
let
{
GlideApp
.
with
(
it
).
load
(
bean
.
topicImages
[
0
].
imageUrl
).
into
(
consultant_one_img_1
)
}
mContext
?.
let
{
GlideApp
.
with
(
it
).
load
(
bean
.
topicImages
[
0
].
imageUrl
).
into
(
consultant_one_img_1
)
}
consultant_one_img_1
.
setOnClickListener
{
consultant_one_img_1
.
setOnClickListener
{
ActionCountUtils
.
count
(
YDL_USER_CONSULT_TYPE_CLICK
,
bean
.
specialTopicTitle
)
bean
.
specialTopicTitle
val
h5Params
=
H5Params
(
bean
.
specialTopicUrl
,
null
)
val
h5Params
=
H5Params
(
bean
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
NewH5Activity
.
start
(
context
,
h5Params
)
}
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotTwoView.kt
View file @
b534c7aa
...
@@ -8,8 +8,10 @@ import android.widget.LinearLayout
...
@@ -8,8 +8,10 @@ import android.widget.LinearLayout
import
com.ydl.webview.H5Params
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydl_image.module.GlideApp
import
com.ydl.ydl_image.module.GlideApp
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.consultant.R
import
com.yidianling.consultant.R
import
com.yidianling.consultant.bean.ExpertSearchBigShotBean
import
com.yidianling.consultant.bean.ExpertSearchBigShotBean
import
com.yidianling.consultant.constants.ConsultBIConstants
import
kotlinx.android.synthetic.main.consultant_expert_search_big_shot_two.view.*
import
kotlinx.android.synthetic.main.consultant_expert_search_big_shot_two.view.*
class
BigShotTwoView
:
LinearLayout
{
class
BigShotTwoView
:
LinearLayout
{
...
@@ -50,11 +52,13 @@ class BigShotTwoView : LinearLayout {
...
@@ -50,11 +52,13 @@ class BigShotTwoView : LinearLayout {
fun
setUrl
(
bean1
:
ExpertSearchBigShotBean
,
bean2
:
ExpertSearchBigShotBean
)
{
fun
setUrl
(
bean1
:
ExpertSearchBigShotBean
,
bean2
:
ExpertSearchBigShotBean
)
{
mContext
?.
let
{
GlideApp
.
with
(
it
).
load
(
bean1
.
topicImages
[
1
].
imageUrl
).
into
(
consultant_two_img_1
)
}
mContext
?.
let
{
GlideApp
.
with
(
it
).
load
(
bean1
.
topicImages
[
1
].
imageUrl
).
into
(
consultant_two_img_1
)
}
consultant_two_img_1
.
setOnClickListener
{
consultant_two_img_1
.
setOnClickListener
{
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
YDL_USER_CONSULT_TYPE_CLICK
,
bean1
.
specialTopicTitle
)
val
h5Params
=
H5Params
(
bean1
.
specialTopicUrl
,
null
)
val
h5Params
=
H5Params
(
bean1
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
NewH5Activity
.
start
(
context
,
h5Params
)
}
}
mContext
?.
let
{
GlideApp
.
with
(
it
).
load
(
bean2
.
topicImages
[
1
].
imageUrl
).
into
(
consultant_two_img_2
)
}
mContext
?.
let
{
GlideApp
.
with
(
it
).
load
(
bean2
.
topicImages
[
1
].
imageUrl
).
into
(
consultant_two_img_2
)
}
consultant_two_img_2
.
setOnClickListener
{
consultant_two_img_2
.
setOnClickListener
{
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
YDL_USER_CONSULT_TYPE_CLICK
,
bean2
.
specialTopicTitle
)
val
h5Params
=
H5Params
(
bean2
.
specialTopicUrl
,
null
)
val
h5Params
=
H5Params
(
bean2
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
NewH5Activity
.
start
(
context
,
h5Params
)
}
}
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/trendsHome/TrendsHomeFragment.java
View file @
b534c7aa
...
@@ -225,6 +225,16 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
...
@@ -225,6 +225,16 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
@Override
@Override
public
void
setUserVisibleHint
(
boolean
isVisibleToUser
)
{
public
void
setUserVisibleHint
(
boolean
isVisibleToUser
)
{
super
.
setUserVisibleHint
(
isVisibleToUser
);
super
.
setUserVisibleHint
(
isVisibleToUser
);
if
(
isVisibleToUser
&&
isResumed
())
{
startTime
=
System
.
currentTimeMillis
();
ActionCountUtils
.
Companion
.
count
(
YDL_USER_ASK_PAGE_VISIT
);
}
else
{
endTime
=
System
.
currentTimeMillis
();
ActionCountUtils
.
Companion
.
count
(
YDL_USER_ASK_PAGE_STAY_VISIT
,
String
.
valueOf
(
endTime
-
startTime
));
}
if
(
isVisibleToUser
&&
isResumed
())
{
onResume
();
}
}
}
private
void
initViewPager
()
{
private
void
initViewPager
()
{
...
@@ -381,19 +391,6 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
...
@@ -381,19 +391,6 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
}
}
@Override
public
void
onStop
()
{
super
.
onStop
();
endTime
=
System
.
currentTimeMillis
();
ActionCountUtils
.
Companion
.
count
(
YDL_USER_ASK_PAGE_STAY_VISIT
,
String
.
valueOf
(
endTime
-
startTime
));
}
@Override
public
void
onResume
()
{
super
.
onResume
();
startTime
=
System
.
currentTimeMillis
();
ActionCountUtils
.
Companion
.
count
(
YDL_USER_ASK_PAGE_VISIT
);
}
@Override
@Override
public
void
onRefresh
()
{
public
void
onRefresh
()
{
...
...
m-im/src/main/java/com/yidianling/im/ui/page/NewMultiMessageFragment.kt
View file @
b534c7aa
...
@@ -17,6 +17,8 @@ import com.ydl.ydlcommon.base.BaseFragment
...
@@ -17,6 +17,8 @@ import com.ydl.ydlcommon.base.BaseFragment
import
com.ydl.ydlcommon.bean.StatusBarOptions
import
com.ydl.ydlcommon.bean.StatusBarOptions
import
com.ydl.ydlcommon.data.http.RxUtils
import
com.ydl.ydlcommon.data.http.RxUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils.Companion.count
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.im.R
import
com.yidianling.im.R
import
com.yidianling.im.api.event.ImLogoutEvent
import
com.yidianling.im.api.event.ImLogoutEvent
...
@@ -44,7 +46,7 @@ import io.reactivex.Observable
...
@@ -44,7 +46,7 @@ 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
import
kotlinx.android.synthetic.main.im_new_multi_message_fragment.*
import
kotlinx.android.synthetic.main.im_new_multi_message_fragment.*
import
kotlinx.android.synthetic.main.im_nim_contact_text_item.view.*
import
java.lang.String
import
java.util.concurrent.TimeUnit
import
java.util.concurrent.TimeUnit
/**
/**
...
@@ -62,7 +64,8 @@ class NewMultiMessageFragment : BaseFragment() {
...
@@ -62,7 +64,8 @@ class NewMultiMessageFragment : BaseFragment() {
private
var
chatListUnreadNum
:
Int
=
0
// 私聊列表未读数
private
var
chatListUnreadNum
:
Int
=
0
// 私聊列表未读数
private
var
interactListUnreadNum
:
Int
=
0
//互动列表未读数
private
var
interactListUnreadNum
:
Int
=
0
//互动列表未读数
private
var
noticeListUnreadNum
:
Int
=
0
//通知列表未读数
private
var
noticeListUnreadNum
:
Int
=
0
//通知列表未读数
private
var
startTime
:
Long
=
0L
private
var
endTime
:
Long
=
0L
override
fun
initDataAndEventLazy
()
{
override
fun
initDataAndEventLazy
()
{
}
}
...
@@ -82,7 +85,8 @@ class NewMultiMessageFragment : BaseFragment() {
...
@@ -82,7 +85,8 @@ class NewMultiMessageFragment : BaseFragment() {
override
fun
onResume
()
{
override
fun
onResume
()
{
super
.
onResume
()
super
.
onResume
()
count
(
"ydl_user_message_page|ydl_user_message_page_visit"
)
startTime
=
System
.
currentTimeMillis
()
getMsgData
()
getMsgData
()
NIMClient
.
getService
(
MsgService
::
class
.
java
).
setChattingAccount
(
NIMClient
.
getService
(
MsgService
::
class
.
java
).
setChattingAccount
(
...
@@ -108,6 +112,13 @@ class NewMultiMessageFragment : BaseFragment() {
...
@@ -108,6 +112,13 @@ class NewMultiMessageFragment : BaseFragment() {
super
.
setUserVisibleHint
(
isVisibleToUser
)
super
.
setUserVisibleHint
(
isVisibleToUser
)
if
(
isVisibleToUser
&&
getIsViewCreated
())
{
if
(
isVisibleToUser
&&
getIsViewCreated
())
{
getMsgData
()
getMsgData
()
}
else
{
endTime
=
System
.
currentTimeMillis
()
count
(
"ydl_user_message_page|ydl_user_message_page_stay_visit"
,
String
.
valueOf
(
endTime
-
startTime
)
)
}
}
}
}
...
@@ -370,13 +381,13 @@ class NewMultiMessageFragment : BaseFragment() {
...
@@ -370,13 +381,13 @@ class NewMultiMessageFragment : BaseFragment() {
override
fun
onPageSelected
(
index
:
Int
)
{
override
fun
onPageSelected
(
index
:
Int
)
{
when
(
index
)
{
when
(
index
)
{
0
->
{
0
->
{
ActionCountUtils
.
count
(
"ydl_user_message_page|ydl_user_message_type_click"
,
chat_btn
.
text
.
toString
()
)
ActionCountUtils
.
count
(
"ydl_user_message_page|ydl_user_message_type_click"
,
"私聊"
)
}
}
1
->
{
1
->
{
ActionCountUtils
.
count
(
"ydl_user_message_page|ydl_user_message_type_click"
,
communite_btn
.
text
.
toString
()
)
ActionCountUtils
.
count
(
"ydl_user_message_page|ydl_user_message_type_click"
,
"互动"
)
}
}
else
->
{
else
->
{
ActionCountUtils
.
count
(
"ydl_user_message_page|ydl_user_message_type_click"
,
notification_btn
.
text
.
toString
()
)
ActionCountUtils
.
count
(
"ydl_user_message_page|ydl_user_message_type_click"
,
"通知"
)
}
}
}
}
setSelectTab
(
index
)
setSelectTab
(
index
)
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
b534c7aa
...
@@ -226,8 +226,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
...
@@ -226,8 +226,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
private
boolean
isOthers
;
private
boolean
isOthers
;
private
MultipleAnswerBean
multipleAnswerBean
;
private
MultipleAnswerBean
multipleAnswerBean
;
private
ArrayList
<
String
>
answersItemsMap
=
new
ArrayList
<>();
private
ArrayList
<
String
>
answersItemsMap
=
new
ArrayList
<>();
private
long
startTime
=
0
;
private
long
endTime
=
0
;
@SuppressLint
(
"HandlerLeak"
)
@SuppressLint
(
"HandlerLeak"
)
private
Handler
mHandler
=
new
Handler
()
{
private
Handler
mHandler
=
new
Handler
()
{
@Override
@Override
...
@@ -1014,7 +1013,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
...
@@ -1014,7 +1013,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
NIMClient
.
getService
(
MsgService
.
class
).
setChattingAccount
(
MsgService
.
MSG_CHATTING_ACCOUNT_NONE
,
SessionTypeEnum
.
None
);
NIMClient
.
getService
(
MsgService
.
class
).
setChattingAccount
(
MsgService
.
MSG_CHATTING_ACCOUNT_NONE
,
SessionTypeEnum
.
None
);
inputPanel
.
onPause
();
inputPanel
.
onPause
();
messageListPanel
.
onPause
();
messageListPanel
.
onPause
();
}
}
@SuppressLint
(
"SetTextI18n"
)
@SuppressLint
(
"SetTextI18n"
)
@Override
@Override
...
@@ -1028,20 +1027,6 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
...
@@ -1028,20 +1027,6 @@ 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
@Override
public
void
onDestroy
()
{
public
void
onDestroy
()
{
...
...
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