Commit f89108ee by YKai

feat: 埋点提交

parent f62e8d62
......@@ -11,7 +11,7 @@ ext {
"m-user" : "0.0.61.90",
"m-user-medical" : "0.0.61.99",
"m-home" : "0.0.22.70",
"m-im-medical" : "0.0.21.37",
"m-im-medical" : "0.0.21.38",
"m-dynamic" : "0.0.7.28",
"m-article" : "0.0.0.10",
......@@ -34,13 +34,13 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform" : "0.0.41.55",
"ydl-platform" : "0.0.41.56",
//第二步 若干
"ydl-webview" : "0.0.38.57",
"ydl-media" : "0.0.21.10",
"ydl-pay" : "0.0.18.19",
"ydl-medical-pay" : "0.0.01.31",
"ydl-medical-pay" : "0.0.01.32",
"m-audioim" : "0.0.49.29.37",
"ydl-flutter-base": "0.0.14.26",
......@@ -96,7 +96,7 @@ ext {
"m-user" : "0.0.61.90",
"m-user-medical" : "0.0.61.99",
"m-home" : "0.0.22.70",
"m-im-medical" : "0.0.21.37",
"m-im-medical" : "0.0.21.38",
"m-dynamic" : "0.0.7.28",
"m-article" : "0.0.0.8",
......@@ -118,13 +118,13 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform" : "0.0.41.55",
"ydl-platform" : "0.0.41.56",
//第二步 若干
"ydl-webview" : "0.0.38.57",
"ydl-media" : "0.0.21.10",
"ydl-pay" : "0.0.18.19",
"ydl-medical-pay" : "0.0.01.31",
"ydl-medical-pay" : "0.0.01.32",
"m-audioim" : "0.0.49.29.37",
"ydl-flutter-base": "0.0.14.26",
......
......@@ -36,6 +36,7 @@ import com.ydl.ydlcommon.utils.BuryPointUtils;
import com.ydl.ydlcommon.utils.NetworkParamsUtils;
import com.ydl.ydlcommon.utils.StringUtils;
import com.ydl.ydlcommon.utils.YDLCacheUtils;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.ydl.ydlcommon.utils.log.LogHelper;
import com.ydl.ydlcommon.utils.remind.HttpErrorUtils;
import com.ydl.ydlcommon.view.dialog.CommonDialog;
......@@ -64,6 +65,7 @@ import com.yidianling.im.session.extension.CustomRecommendExpertListMsg;
import com.yidianling.im.session.extension.CustomSystemTips;
import com.yidianling.im.ui.page.fragment.bean.ChatItemBean;
import com.yidianling.im.ui.widget.ChatTeamHisDialog;
import com.yidianling.medical.extension.ImActionCountConstantsKt;
import com.yidianling.uikit.business.session.helper.MessageListPanelHelper;
import com.yidianling.uikit.custom.bridge.IP2PCustomActionHandler;
import com.yidianling.uikit.custom.http.response.RecommendExpertBean;
......@@ -592,6 +594,8 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
if (mActivity == null || mActivity.isFinishing()) {
return;
}
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"hamburger_button_click","");
List<String> list = new ArrayList<>();
if (ImConstants.KEFUXIAOYI.equals(toChatUsername) || "4108805".equals(toChatUsername)) {
// list.add("历史聊天记录");
......@@ -624,6 +628,8 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
switch (list.get(position)) {
case "投诉反馈":
startFeedback(mActivity);
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"hamburger_button_feedback_click","");
break;
case "返回首页":
ImIn.INSTANCE.mainIntent(mActivity, 0);
......@@ -645,6 +651,8 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
break;
case "删除聊天记录":
deleteChatHistory();
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"hamburger_button_delete_click","");
break;
case "ta的主页":
showUserHome();
......@@ -744,6 +752,9 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
.build("/app/doctorDetail")
.withInt("doctorId", Integer.valueOf(docInfo.doctorId))
.navigation();
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"avatar_button_click","");
}
}
......
package com.yidianling.im.session.viewholder
import android.widget.TextView
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.im.R
import com.yidianling.im.session.extension.CustomAttachmentInquiryEnd
import com.yidianling.medical.extension.YDL_MEDICAL_MESSAGE_DETAIL_PAGE
import com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter
import com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase
......@@ -31,4 +33,9 @@ class MsgViewHolderInquiryEnd(adapter: BaseMultiItemFetchLoadAdapter<*, *>?) :
setAvatarLeftInVisibity()
}
override fun onItemClick() {
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MESSAGE_DETAIL_PAGE, "re_consultation_button_click", "")
}
}
\ No newline at end of file
package com.yidianling.im.session.viewholder
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.im.R
import com.yidianling.im.session.extension.CustomAttachmentPatientFullInfo
import com.yidianling.medical.archives.MedicalUpdateArchivesActivity
import com.yidianling.medical.extension.YDL_MEDICAL_MESSAGE_DETAIL_PAGE
import com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter
import com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase
......@@ -32,5 +33,7 @@ class MsgViewHolderPatientFullInfo(adapter: BaseMultiItemFetchLoadAdapter<*, *>?
override fun onItemClick() {
MedicalUpdateArchivesActivity.start(context,itemBean.fromPatientId,message.sessionId)
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MESSAGE_DETAIL_PAGE, "complete_info_message_click", "")
}
}
\ No newline at end of file
......@@ -5,9 +5,10 @@ import androidx.constraintlayout.widget.ConstraintLayout
import com.ydl.webview.H5Params
import com.ydl.webview.NewH5Activity
import com.ydl.ydlcommon.base.config.HttpConfig
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils.Companion.baiDuCountSign1
import com.yidianling.im.R
import com.yidianling.im.session.extension.CustomAttachmentInquiryEnd
import com.yidianling.im.session.extension.CustomAttachmentRecipel
import com.yidianling.medical.extension.YDL_MEDICAL_MESSAGE_DETAIL_PAGE
import com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter
import com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase
......@@ -44,6 +45,8 @@ class MsgViewHolderRecipel(adapter: BaseMultiItemFetchLoadAdapter<*, *>?) :
"处方详情"
)
)
// 埋点
baiDuCountSign1(YDL_MEDICAL_MESSAGE_DETAIL_PAGE, "recipe_message_click", "")
}
}
}
\ No newline at end of file
......@@ -22,10 +22,13 @@ import com.ydl.ydlcommon.router.YdlCommonOut.Companion.showToast
import com.ydl.ydlcommon.ui.ParcelableImage
import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.Utils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.ydl.ydlcommon.view.dialog.NormalDialog
import com.yidianling.common.tools.LogUtil
import com.yidianling.common.tools.ToastUtil
import com.yidianling.im.R
import com.yidianling.medical.extension.YDL_MEDICAL_GET_CONSULTATION_PAGE
import com.yidianling.medical.extension.YDL_MEDICAL_MESSAGE_LIST_PAGE
import com.yidianling.medical.pic.MedicalBrowsePicturesActivity
import com.yidianling.medical.pic.MedicalDynamicConstants
import com.yidianling.uikit.custom.http.ServiceImpl
......@@ -78,6 +81,7 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
}
override fun initDataAndEvent() {
ToastUtil.toastShort("进入界面")
initStatus()
mDoctorId = intent.getStringExtra("doctorId")
mDoctorUid = intent.getStringExtra("doctorUid")
......@@ -92,6 +96,9 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
camera_bg.setOnClickListener {
//选择图片
showSelector()
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_GET_CONSULTATION_PAGE,"pic_upload_click","")
}
how_to_dec.setOnClickListener {
......@@ -101,6 +108,8 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
} else {
dec.visibility = View.GONE
}
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_GET_CONSULTATION_PAGE,"description_example_click","")
}
text_service.setOnClickListener {
if (Utils.isFastClick()) {
......@@ -136,6 +145,8 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
}
}
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_GET_CONSULTATION_PAGE,"next_button_click","")
}
edit_input.addTextChangedListener(object : TextWatcher {
......@@ -144,16 +155,28 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
setEditHint()
}
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {}
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
}
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
}
})
edit_input.setOnFocusChangeListener { v, hasFocus ->
if (hasFocus){
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_GET_CONSULTATION_PAGE,"input_box_click","")
}
}
iv_back.setOnClickListener {
backCheck()
}
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_GET_CONSULTATION_PAGE,"condition_description_page_visit","")
setEditHint()
}
......
......@@ -10,12 +10,14 @@ import com.medical.ydl.medical.pay.MedicalPayActivity
import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.Utils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.common.tools.ToastUtil
import com.yidianling.im.R
import com.yidianling.medical.archives.MedicalAddNewArchivesActivity
import com.yidianling.medical.archives.MedicalUpdateArchivesActivity
import com.yidianling.medical.archives.adapter.MedicalUserArchivesFlow2Adapter
import com.yidianling.medical.archives.bean.MedicalArchivesListBean
import com.yidianling.medical.extension.YDL_MEDICAL_GET_CONSULTATION_PAGE
import com.yidianling.medical.popwindow.InformedConsentPopupWindow
import com.yidianling.uikit.custom.http.ServiceImpl
import io.reactivex.android.schedulers.AndroidSchedulers
......@@ -96,7 +98,7 @@ class GraphicConsulttionFlow2Activity : BaseActivity() {
}
else -> {
//item 点击
for ((index, bean) in mAdapter.data.withIndex()) {
for ((index, _) in mAdapter.data.withIndex()) {
if (mAdapter.data[index]?.isCheck == true) {
mAdapter.data[index]?.isCheck = false
} else {
......@@ -104,6 +106,8 @@ class GraphicConsulttionFlow2Activity : BaseActivity() {
}
}
baseQuickAdapter.notifyDataSetChanged()
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_GET_CONSULTATION_PAGE,"patient_click","")
}
}
}
......@@ -111,6 +115,9 @@ class GraphicConsulttionFlow2Activity : BaseActivity() {
//空数据页面
isFirstLoadData = false
MedicalAddNewArchivesActivity.start(this@GraphicConsulttionFlow2Activity)
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_GET_CONSULTATION_PAGE,"add_patient_click","")
}
radio_first_mit.setOnCheckedChangeListener { group, checkedId ->
......@@ -139,7 +146,8 @@ class GraphicConsulttionFlow2Activity : BaseActivity() {
}
//保存
toSave()
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_GET_CONSULTATION_PAGE,"start_description_button_click","")
}
iv_back_flow2.setOnClickListener {
backCheck()
......@@ -148,14 +156,14 @@ class GraphicConsulttionFlow2Activity : BaseActivity() {
informed_consent_text.setOnClickListener {
//协议内容
var collectOutPop = InformedConsentPopupWindow(this,
val collectOutPop = InformedConsentPopupWindow(this,
object : InformedConsentPopupWindow.OnChatSettingClickListener {
override fun onDismissAction() {
setWindowBg(1f)
}
})
collectOutPop?.contentView!!.measure(
collectOutPop.contentView!!.measure(
View.MeasureSpec.UNSPECIFIED,
View.MeasureSpec.UNSPECIFIED
); //这句代码必须要才能获得正确的popupwindow的宽度
......@@ -169,6 +177,10 @@ class GraphicConsulttionFlow2Activity : BaseActivity() {
)
}
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_GET_CONSULTATION_PAGE,"patient_select_page_click","")
getList()
}
......
......@@ -12,8 +12,10 @@ import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import com.chad.library.adapter.base.BaseQuickAdapter
import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.im.R
import com.yidianling.medical.archives.adapter.MedicalUserArchivesAdapter
import com.yidianling.medical.extension.YDL_MEDICAL_MY_FAMILY_FILE_PAGE
import com.yidianling.medical.widgets.LoadMoreView
import com.yidianling.uikit.custom.http.ServiceImpl.Companion.instance
import io.reactivex.android.schedulers.AndroidSchedulers
......@@ -88,6 +90,9 @@ class MedicalArchivesListActivity : BaseActivity(), SwipeRefreshLayout.OnRefresh
finish()
}
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MY_FAMILY_FILE_PAGE,"page_visit","")
currPage = 1
getPageList()
}
......
package com.yidianling.medical.extension
/**
* Created by Ykai on 2021/10/29.
* 埋点常量类
*/
// 消息列表part_id
const val YDL_MEDICAL_MESSAGE_LIST_PAGE = "ydl_medical_message_list_page"
// 提交咨询流程part_id
const val YDL_MEDICAL_GET_CONSULTATION_PAGE = "ydl_medical_get_consultation_page"
// 对话详情part_id
const val YDL_MEDICAL_MESSAGE_DETAIL_PAGE = "ydl_medical_message_detail_page"
// 用户档案part_id
const val YDL_MEDICAL_MY_FAMILY_FILE_PAGE = "ydl_medical_my_family_file_page"
......@@ -16,7 +16,9 @@ import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.base.config.HttpConfig
import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.Utils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.im.R
import com.yidianling.medical.extension.YDL_MEDICAL_MESSAGE_LIST_PAGE
import com.yidianling.medical.im.adapter.MedicalSystemListAdapter
import com.yidianling.medical.widgets.LoadMoreView
import com.yidianling.uikit.custom.http.ServiceImpl
......@@ -108,6 +110,10 @@ class MedicalSystemListActivity : BaseActivity(), SwipeRefreshLayout.OnRefreshLi
ContextCompat.getColor(this@MedicalSystemListActivity, R.color.platform_main_theme)
)
system_swipe_refresh_layout?.setProgressViewOffset(false, 0, 200)
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MESSAGE_LIST_PAGE,"system_message_page_visit","")
currPage = 1
getSystemList()
......
......@@ -11,6 +11,7 @@ import com.jcodecraeer.xrecyclerview.CustomFooterViewCallBack
import com.jcodecraeer.xrecyclerview.XRecyclerView
import com.ydl.ydlcommon.base.BaseFragment
import com.ydl.ydlcommon.data.http.RxUtils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.common.tools.ToastUtil
import com.yidianling.im.R
import com.yidianling.im.api.event.ImLogoutEvent
......@@ -29,6 +30,7 @@ import com.yidianling.im.ui.page.widget.ChatUnusualView
import com.yidianling.im.ui.param.ChatParam
import com.yidianling.im.ui.param.ClearMessageParam
import com.yidianling.im.ui.param.UnreadParam
import com.yidianling.medical.extension.YDL_MEDICAL_MESSAGE_LIST_PAGE
import com.yidianling.medical.im.adapter.MedicalChatAdapter
import com.yidianling.medical.popwindow.MedicalChatSettingPopupWindow
import de.greenrobot.event.EventBus
......@@ -93,10 +95,14 @@ class MeidicalChatFragment : BaseFragment(), XRecyclerView.LoadingListener {
}
})
messageChatSettingtDialog?.show()
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MESSAGE_LIST_PAGE,"hamburger_button_read_all_click","")
}
override fun onChatSettingClick() {
ARouter.getInstance().build("/user/notifysetting").navigation()
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MESSAGE_LIST_PAGE,"hamburger_button_setting_click","")
}
override fun onDismissAction() {
......@@ -118,8 +124,13 @@ class MeidicalChatFragment : BaseFragment(), XRecyclerView.LoadingListener {
-(popupWindowWidth - ll_more.measuredWidth + 20),
0
)
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MESSAGE_LIST_PAGE,"hamburger_button_click","")
}
}
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MESSAGE_LIST_PAGE,"page_visit","")
}
override fun onDestroy() {
......
......@@ -13,6 +13,7 @@ import com.netease.nimlib.sdk.msg.MsgService
import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum
import com.ydl.ydlcommon.base.lifecycle.ILifecycleable
import com.ydl.ydlcommon.data.http.RxUtils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.ydl.ydlcommon.utils.log.LogHelper
import com.ydl.ydlcommon.utils.remind.ToastHelper
import com.ydl.ydlcommon.view.ListNoCancelDialog
......@@ -27,6 +28,7 @@ import com.yidianling.im.http.ImHttpImpl
import com.yidianling.im.session.SessionHelper
import com.yidianling.im.ui.page.fragment.bean.ChatItemBean
import com.yidianling.im.ui.page.fragment.view.ChatTimeItemView
import com.yidianling.medical.extension.YDL_MEDICAL_MESSAGE_LIST_PAGE
import com.yidianling.medical.im.MedicalSystemListActivity
import com.yidianling.medical.im.view.MedicalChatItemView
import com.yidianling.medical.im.view.MedicalSystemItemView
......@@ -72,6 +74,8 @@ class MedicalChatAdapter(
holder.view.initData(itemBean)
holder.view.setOnClickListener {
MedicalSystemListActivity.start(context)
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MESSAGE_LIST_PAGE,"system_message_click","")
}
}
......@@ -90,6 +94,8 @@ class MedicalChatAdapter(
IMChatUtil.startChat(context as AppCompatActivity, itemBean)
}
}
// 埋点
ActionCountUtils.baiDuCountSign1(YDL_MEDICAL_MESSAGE_LIST_PAGE,"message_click","")
}
holder.view.setOnLongClickListener {
......
package com.yidianling.uikit.business.session.actions;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.yidianling.im.R;
import com.netease.nimlib.sdk.chatroom.ChatRoomMessageBuilder;
import com.netease.nimlib.sdk.msg.MessageBuilder;
import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum;
import com.netease.nimlib.sdk.msg.model.IMMessage;
import com.yidianling.medical.extension.ImActionCountConstantsKt;
import java.io.File;
......@@ -19,6 +21,8 @@ public class ImageAction extends PickImageAction {
@Override
protected void onPicked(File file) {
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"photo_album_button_click","");
IMMessage message;
if (getContainer() != null && getContainer().sessionType == SessionTypeEnum.ChatRoom) {
message = ChatRoomMessageBuilder.createChatRoomImageMessage(getAccount(), file, file.getName());
......
......@@ -2,6 +2,8 @@ package com.yidianling.uikit.business.session.actions;
import android.Manifest;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.util.Log;
import com.luck.picture.lib.entity.LocalMedia;
......@@ -9,7 +11,9 @@ import com.luck.picture.lib.listener.OnResultCallbackListener;
import com.miracle.view.imageeditor.utils.FileUtils;
import com.tbruyelle.rxpermissions2.RxPermissions;
import com.ydl.ydlcommon.actions.imagepicker.YDLImagePicker;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.yidianling.common.tools.ToastUtil;
import com.yidianling.medical.extension.ImActionCountConstantsKt;
import com.yidianling.nimbase.business.session.actions.BaseAction;
import java.io.File;
......@@ -37,8 +41,11 @@ public abstract class PickImageAction extends BaseAction {
}
@SuppressLint("CheckResult")
@Override
public void onClick() {
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"shoot_button_click","");
new RxPermissions(getActivity()).requestEach(Manifest.permission.CAMERA)
.subscribe(permission -> {
if (permission.granted) {
......
......@@ -14,6 +14,7 @@ import com.netease.nimlib.sdk.msg.MsgServiceObserve;
import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum;
import com.netease.nimlib.sdk.msg.model.CustomNotification;
import com.netease.nimlib.sdk.msg.model.IMMessage;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.ydl.ydlcommon.utils.log.AliYunLogConfig;
import com.ydl.ydlcommon.utils.log.AliYunRichLogsHelper;
import com.yidianling.im.R;
......@@ -23,6 +24,7 @@ import com.yidianling.im.bridge.P2PCustomActionHandlerImpl;
import com.yidianling.im.config.constants.ImConstants;
import com.yidianling.im.helper.ImObserversHelper;
import com.yidianling.im.session.SessionHelper;
import com.yidianling.medical.extension.ImActionCountConstantsKt;
import com.yidianling.medical.im.Type91Bean;
import com.yidianling.nimbase.api.model.session.SessionCustomization;
import com.yidianling.nimbase.api.model.user.UserInfoObserver;
......@@ -38,6 +40,8 @@ import org.jetbrains.annotations.NotNull;
import java.util.List;
import static com.yidianling.medical.extension.ImActionCountConstantsKt.YDL_MEDICAL_GET_CONSULTATION_PAGE;
/**
* 点对点聊天界面
......@@ -142,6 +146,9 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
}
}
});
// 埋点
ActionCountUtils.Companion.baiDuCountSign2(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"page_visit",sessionId,ActionHandlerStorage.getL(sessionId).getInfo().name);
}
@Override
......
......@@ -40,11 +40,13 @@ import com.netease.nimlib.sdk.msg.model.CustomNotificationConfig;
import com.netease.nimlib.sdk.msg.model.IMMessage;
import com.tbruyelle.rxpermissions2.Permission;
import com.tbruyelle.rxpermissions2.RxPermissions;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.yidianling.common.tools.ToastUtil;
import com.yidianling.im.R;
import com.yidianling.im.event.MultipleAnswerBean;
import com.yidianling.im.event.MultipleSelectedEvent;
import com.yidianling.im.router.ImIn;
import com.yidianling.medical.extension.ImActionCountConstantsKt;
import com.yidianling.nimbase.api.UIKitOptions;
import com.yidianling.nimbase.api.model.session.SessionCustomization;
import com.yidianling.nimbase.business.session.actions.BaseAction;
......@@ -620,6 +622,8 @@ public class InputPanel implements IEmoticonSelectedListener, IAudioRecordCallba
private void toggleActionPanelLayout() {
if (actionPanelBottomLayout == null || actionPanelBottomLayout.getVisibility() == View.GONE) {
showActionPanelLayout();
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"plus_button_click","");
} else {
hideActionPanelLayout();
}
......@@ -631,6 +635,8 @@ public class InputPanel implements IEmoticonSelectedListener, IAudioRecordCallba
private void toggleEmojiLayout() {
if (emoticonPickerView == null || emoticonPickerView.getVisibility() == View.GONE) {
showEmojiLayout();
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"emoji_button_click","");
} else {
hideEmojiLayout();
}
......@@ -942,6 +948,9 @@ public class InputPanel implements IEmoticonSelectedListener, IAudioRecordCallba
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
audioMessageHelper.startRecord();
cancelled = false;
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"sending_audio_button_click","");
}
/**
......
......@@ -61,7 +61,7 @@
android:id="@+id/chat_recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/im_white"></com.jcodecraeer.xrecyclerview.XRecyclerView>
android:background="@color/im_white"/>
<com.yidianling.im.ui.page.widget.ChatUnusualView
android:id="@+id/ll_chat_unusual_view"
......
package com.medical.ydl.medical.extension
/**
* Created by Ykai on 2021/10/29.
* 埋点常量类
*/
// 支付part_id
const val YDL_MEDICAL_PAYMENT_PAGE = "ydl_medical_payment_page"
......@@ -12,6 +12,7 @@ import com.alipay.sdk.app.PayTask
import com.medical.ydl.medical.bean.CreatePayReqDtoBody
import com.medical.ydl.medical.bean.CreatePayRespose
import com.medical.ydl.medical.dialog.TimeBackDialog
import com.medical.ydl.medical.extension.YDL_MEDICAL_PAYMENT_PAGE
import com.medical.ydl.medical.http.MedicalPayServiceImpl
import com.medical.ydl.medical.modular.MedicalPayIn
import com.medical.ydl.medical.pay.bean.MedicalPayResult
......@@ -24,6 +25,7 @@ import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.data.http.BaseResponse
import com.ydl.ydlcommon.utils.LogUtil
import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.common.tools.ToastUtil
import de.greenrobot.event.EventBus
import io.reactivex.android.schedulers.AndroidSchedulers
......@@ -181,7 +183,13 @@ class MedicalPayActivity : BaseActivity() {
}, { e ->
e.printStackTrace()
})
// 埋点
ActionCountUtils.baiDuCountSign3(YDL_MEDICAL_PAYMENT_PAGE,"pay_button_click","$mPayBizType", mPrice, mOrderId)
}
// 埋点
ActionCountUtils.baiDuCountSign3(YDL_MEDICAL_PAYMENT_PAGE,"page_visit","$mPayBizType", mPrice, mOrderId)
}
override fun onDestroy() {
......
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