Commit e28d21e2 authored by chenkai1's avatar chenkai1

添加埋点

parent 27757f0c
......@@ -37,6 +37,8 @@
getHealthField
} from "@/api/common";
import md from '@/md';
const curTabIndex = ref(1);
onLoad((options) => {
......@@ -44,10 +46,21 @@
console.log('接收到的参数:', curTabIndex.value)
});
const onSelTab = (index) => {
let str = index === 1 ? '名医专家' : (index === 2 ? '科研专家' : '权威机构')
md.sensorLogTake({
xcxClick: "专家团二级页面点击",
pageName: "专家团-二级页面",
buttonName: str + "tab按钮点击",
});
curTabIndex.value = index;
}
//跳转到医生问诊页面
const onLink = async () => {
md.sensorLogTake({
xcxClick: "专家团二级页面点击",
pageName: "专家团-二级页面",
buttonName: "专家在线咨询按钮点击",
});
const res = await getHealthField();
if (!res.success) {
......
This diff is collapsed.
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