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

解决埋点问题

上级 7299123b
......@@ -34,8 +34,10 @@ export default {
this.$sendBuriedData({
component_tag: `882#88217`
});
window.location.href =
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
setTimeout(() => {
window.location.href =
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
}, 100);
},
}
};
......
......@@ -12,13 +12,21 @@ export default {
needShort: false,
}
},
props: {
tag: {
type: String,
default: '88212'
}
},
methods: {
download() {
this.$sendBuriedData({
component_tag: `882#88210`
component_tag: `882#${this.tag}`
});
window.location.href =
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
setTimeout(() => {
window.location.href =
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
}, 100);
},
},
created() {
......
......@@ -56,7 +56,7 @@
{{ tab.name }}
</div>
<div class="tab-line" :style="{left: `${tabLeft}px`}"></div>
<DownloadButton v-if="showDownloadButton"></DownloadButton>
<DownloadButton v-if="showDownloadButton" tag="88401"></DownloadButton>
</div>
</van-sticky>
</div>
......@@ -275,13 +275,7 @@ export default {
}
return [chapters, curtLecture];
},
btnClick(index, type) {
// 学习完整课程
if(type == 1) {
this.$sendBuriedData({
component_tag: `884#88401`
});
}
btnClick(index) {
const coverType = this.coverType;
switch(coverType) {
case 1:
......
......@@ -27,7 +27,7 @@
<pica-video ref="picaVideo" :coverType="coverType" :download="download" @onVideoEnd="onVideoEnd" @onReplay="onReplay">
<!-- 试看结束 -->
<div class="cover" v-if="logged && coverType === 1">
<course-covers coverTips="试看结束<br />请来云鹊医App学习完整课程" :isSingle="true" rightBtnText="学习完整课程" @btnClick="btnClick1" />
<course-covers coverTips="试看结束<br />请来云鹊医App学习完整课程" :isSingle="true" rightBtnText="学习完整课程" @btnClick="btnClick" />
</div>
<!-- 播放结束,下载App -->
<div class="cover" v-if="logged && coverType === 2">
......@@ -406,14 +406,7 @@ export default {
},
onReplay() {
this.coverType = 0;
},
btnClick1() {
this.$sendBuriedData({
component_tag: `882#88212`
});
this.download();
},
},
btnClick2() {
this.$sendBuriedData({
......@@ -432,8 +425,10 @@ export default {
component_tag: `882#88210`
});
}
window.location.href =
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
setTimeout(() => {
window.location.href =
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
}, 100);
},
// 关闭激活弹框
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册