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

添加埋点信息

上级 99167f48
......@@ -94,6 +94,13 @@ const actionMap = {
22: "继续学习",
23: "去复习"
};
const sendBuriedDataMap = {
11: "211012",
12: "211013",
21: "211009",
22: "211010",
23: "211011"
}
export default {
name: "cell-list-item",
data() {
......@@ -224,7 +231,13 @@ export default {
} else if (item.type == 2) {
this.gotoCourse(item.id);
}
console.log(item);
// 埋点:去学习、继续学习、复习、去考试、重考
let actionCode = sendBuriedDataMap[item.status];
if(actionCode) {
this.$sendBuriedData({
component_tag: `211#${actionCode}#${this.projectId}`
});
}
},
// 跳转到课程
......
......@@ -140,7 +140,7 @@ export default {
}
this.$sendBuriedData({
component_tag: '089#400081#0#'+item.projectName
component_tag: `210#210002#${item.id}#${item.projectName}` //'210#210002#0#'+item.projectName
});
// if (item.courseRequire == 1) { //对课程完成度有控制,需判断版本号
// let appVersion = getAppVersion(this.userInfo.appVersion);
......
......@@ -73,7 +73,7 @@ if (process.env.BUILD_ENV === 'prod') {
}
Vue.use(BuriedPoint, {
class_name: `web_app_cooperation`,
class_name: 'web_app_cme',
url: `${domain}/file/log/trace1`
});
Vue.prototype.$sendBuriedData = sendBuriedData;
......
......@@ -17,9 +17,9 @@ service.interceptors.request.use(config => {
if(config.data.token){
config.headers['token'] = config.data.token || '0F32D60C3D7042158BCF1FB574E482BE'
if( process.env.BUILD_ENV == "development" ){ // 本地开发环境
config.headers['token'] = 'C85C482D4E854364815C85485C6277F1' || 'F5CE3BAEC4934864B1022C1C4D39EB40';
config.headers['token'] = 'DA2A4E43343E47DEB4C4B708288D02D4' || 'F5CE3BAEC4934864B1022C1C4D39EB40';
}
delete config.data.token;
// delete config.data.token;
}
config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' })
......
......@@ -119,9 +119,11 @@ export function mergeObjs(...ojbs){
}
// 跳转:在App中使用原生跳转,在浏览器中使用本地路由跳转
export function gotoPage(context, pageUrl) {
if(__isWeb) {
context.$router.push(pageUrl)
// context.$router.push({path: pageUrl, query: query});
} else {
let paramList = [
{
......
......@@ -218,11 +218,17 @@ export default {
// this.permission();
// alert("去学习");
} else if (this.formData.status == 2) {
this.applicationCredit();
// alert("调用申请学分的接口");
this.$sendBuriedData({
component_tag: `211#211002#${this.projectId}`
});
this.applicationCredit();
} else if (this.formData.status == 4) {
gotoPage(this, `cme/#/credit-edit?creditId=${this.creditId}`);
// alert("调用重新提交的接口");
this.$sendBuriedData({
component_tag: `211#211006#${this.projectId}`
});
gotoPage(this, `cme/#/credit-edit?creditId=${this.creditId}`);
}
},
......
......@@ -137,7 +137,7 @@ export default {
this.GET("cme/credit/doctor/info", param).then(res => {
this.formData.name = res.data.name;
this.formData.idCardNumber = res.data.card;
this.isShowDialog = true
// this.isShowDialog = true
})
},
......
......@@ -110,6 +110,13 @@ export default {
// document.documentElement.scrollTop = 0;
// document.body.scrollTop = 0;
};
// 打开页面埋点
this.$sendBuriedData({
action: '打开页面',
component_tag: '210#0#0#0'
});
},
mounted() {
var _this = this;
......@@ -132,7 +139,7 @@ export default {
});
},
changeTab(index) {
let tag = index == 1 ? '089#400079' : '089#400080';
let tag = index == 1 ? '210#210001#0' : '210#210001#1';
this.tabIndex = index;
if(index == 1 && !this.userMobile) {
rocNative.gotoLogin();
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册