提交 207b4314 编写于 作者: guangjun.yang's avatar guangjun.yang

CME二期埋点

上级 b0e8edf6
...@@ -96,11 +96,11 @@ const actionMap = { ...@@ -96,11 +96,11 @@ const actionMap = {
23: "去复习" 23: "去复习"
}; };
const sendBuriedDataMap = { const sendBuriedDataMap = {
11: "211012", // 11: "8824",
12: "211013", // 12: "211013",
21: "211009", 21: "8821",
22: "211010", 22: "8822",
23: "211011" 23: "8823"
} }
export default { export default {
name: "cell-list-item", name: "cell-list-item",
...@@ -167,6 +167,13 @@ export default { ...@@ -167,6 +167,13 @@ export default {
// 跳转到考试或课程 type 1: 考试; 2: 课程 // 跳转到考试或课程 type 1: 考试; 2: 课程
// 如果是考试,将根据appVersion判断是新考试还是老考试,如果是301或之前的,都是老考试 // 如果是考试,将根据appVersion判断是新考试还是老考试,如果是301或之前的,都是老考试
gotoExamOrCourse(item) { gotoExamOrCourse(item) {
// 埋点:去学习、继续学习、复习、去考试、重考
let actionCode = sendBuriedDataMap[item.status];
if(actionCode) {
this.$sendBuriedData({
component_tag: `882#${actionCode}#${this.projectId}`
});
}
let appVersion = getAppVersion(this.userInfo.appVersion); let appVersion = getAppVersion(this.userInfo.appVersion);
if (item.useFlag == 2) return; if (item.useFlag == 2) return;
if (window.__isWeb) { if (window.__isWeb) {
...@@ -185,13 +192,6 @@ export default { ...@@ -185,13 +192,6 @@ export default {
} else if (item.type == 2) { } else if (item.type == 2) {
this.gotoCourse(item.id); this.gotoCourse(item.id);
} }
// 埋点:去学习、继续学习、复习、去考试、重考
let actionCode = sendBuriedDataMap[item.status];
if(actionCode) {
this.$sendBuriedData({
component_tag: `211#${actionCode}#${this.projectId}`
});
}
}, },
// 跳转到课程 // 跳转到课程
......
...@@ -111,6 +111,10 @@ export default { ...@@ -111,6 +111,10 @@ export default {
} }
}, },
coopDetails(item) { coopDetails(item) {
this.$sendBuriedData({
component_tag: `880#8803#${item.id}#${item.name}` //'210#210002#0#'+item.projectName
});
let appVersion = this.userInfo.appVersion; let appVersion = this.userInfo.appVersion;
let appVersionNum = appVersion.split('.').join(''); let appVersionNum = appVersion.split('.').join('');
console.log('appVersionNum', appVersionNum); console.log('appVersionNum', appVersionNum);
...@@ -150,11 +154,6 @@ export default { ...@@ -150,11 +154,6 @@ export default {
} else { } else {
rocNative.gotoLogin(); rocNative.gotoLogin();
} }
this.$sendBuriedData({
component_tag: `210#210002#${item.id}#${item.name}` //'210#210002#0#'+item.projectName
});
}, },
goToPage(item) { goToPage(item) {
......
...@@ -42,6 +42,9 @@ export default { ...@@ -42,6 +42,9 @@ export default {
methods: { methods: {
// 跳转I类学习详情(介绍)页面 // 跳转I类学习详情(介绍)页面
jumpToCardList() { jumpToCardList() {
this.$sendBuriedData({
component_tag: "880#8802"
});
let appVersion = this.userInfo.appVersion; let appVersion = this.userInfo.appVersion;
let appVersionNum = appVersion.split('.').join(''); let appVersionNum = appVersion.split('.').join('');
console.log('appVersionNum', appVersionNum); console.log('appVersionNum', appVersionNum);
......
...@@ -30,6 +30,10 @@ export default { ...@@ -30,6 +30,10 @@ export default {
// 跳转到学习卡列表页面 // 跳转到学习卡列表页面
jumpToCardList() { jumpToCardList() {
// 如果没有登录,则要去登录页面 // 如果没有登录,则要去登录页面
// 打开页面埋点
this.$sendBuriedData({
component_tag: "880#8801"
});
let appVersion = this.userInfo.appVersion; let appVersion = this.userInfo.appVersion;
let appVersionNum = appVersion.split('.').join(''); let appVersionNum = appVersion.split('.').join('');
console.log('appVersionNum', appVersionNum); console.log('appVersionNum', appVersionNum);
......
...@@ -72,6 +72,9 @@ export default { ...@@ -72,6 +72,9 @@ export default {
// 判断用户是否购买过I类学习卡 // 判断用户是否购买过I类学习卡
isBuy(cardType) { isBuy(cardType) {
this.$sendBuriedData({
component_tag: `881#8811`
});
this.showLoading = true; this.showLoading = true;
let param = { let param = {
cardType: cardType, cardType: cardType,
......
...@@ -311,6 +311,7 @@ export default { ...@@ -311,6 +311,7 @@ export default {
// 第一次跳转弹框,点击时调用相应接口 // 第一次跳转弹框,点击时调用相应接口
handlerEJAction() { handlerEJAction() {
this.isShowEJDialog = false; this.isShowEJDialog = false;
this.jumpToExamAction(); this.jumpToExamAction();
this.firstIntoExamAction(); this.firstIntoExamAction();
......
...@@ -324,6 +324,9 @@ export default { ...@@ -324,6 +324,9 @@ export default {
// 点击“参与考试” // 点击“参与考试”
beforeJumpToExam() { beforeJumpToExam() {
this.$sendBuriedData({
component_tag: `882#8824`
});
// 如果是首次,则弹出弹框 // 如果是首次,则弹出弹框
if(this.project.firstIntoExam) { if(this.project.firstIntoExam) {
this.isShowEJDialog = true; this.isShowEJDialog = true;
...@@ -335,6 +338,9 @@ export default { ...@@ -335,6 +338,9 @@ export default {
// 第一次跳转弹框,点击时调用相应接口 // 第一次跳转弹框,点击时调用相应接口
handlerEJAction() { handlerEJAction() {
this.$sendBuriedData({
component_tag: `883#8831`
});
this.isShowEJDialog = false; this.isShowEJDialog = false;
this.isBuy(2); this.isBuy(2);
// this.jumpToExamAction(); // this.jumpToExamAction();
...@@ -363,6 +369,10 @@ export default { ...@@ -363,6 +369,10 @@ export default {
// 跳转II类学习详情页面(中华医学会项目详情页面) // 跳转II类学习详情页面(中华医学会项目详情页面)
jumpToCardList() { jumpToCardList() {
this.$sendBuriedData({
component_tag: `885#8851`
});
this.showLoading = false; this.showLoading = false;
this.isShowPopup = false; this.isShowPopup = false;
// 判断版本号,如果小于3.4.0,则只做提示 // 判断版本号,如果小于3.4.0,则只做提示
...@@ -445,6 +455,10 @@ export default { ...@@ -445,6 +455,10 @@ export default {
// 跳转到原生的购买页面 // 跳转到原生的购买页面
confirm() { confirm() {
this.$sendBuriedData({
component_tag: `885#8852`
});
this.isShowPopup = false; this.isShowPopup = false;
let pageUrl = this.project.examBtnUrl; let pageUrl = this.project.examBtnUrl;
let paramList = [ let paramList = [
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册