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

解决埋点问题

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