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

数据埋点等

上级 f4a0a603
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
> >
更新中 更新中
</span> </span>
<img class="key" v-else-if="!hasBindCard && item.trySeeFlag == 1 && !item.trySeeTime" @click="toastToBuy('激活/购买后可学习课程')" src="../../images/cme/phrase2/key.png" alt=""> <img class="key" v-else-if="!hasBindCard && item.trySeeFlag == 1 && !item.trySeeTime" @click="toastToBuy('激活/购买后可学习课程', item)" src="../../images/cme/phrase2/key.png" alt="">
<span <span
v-else-if="!hasBindCard && item.trySeeFlag == 1" v-else-if="!hasBindCard && item.trySeeFlag == 1"
@click="gotoExamOrCourse(item)" @click="gotoExamOrCourse(item, 'sk')"
class="text-action" class="text-action"
> >
去试看 去试看
...@@ -160,7 +160,12 @@ export default { ...@@ -160,7 +160,12 @@ export default {
methods: { methods: {
// 跳转到考试或课程 type 1: 考试; 2: 课程 // 跳转到考试或课程 type 1: 考试; 2: 课程
// 如果是考试,将根据appVersion判断是新考试还是老考试,如果是301或之前的,都是老考试 // 如果是考试,将根据appVersion判断是新考试还是老考试,如果是301或之前的,都是老考试
gotoExamOrCourse(item) { gotoExamOrCourse(item, type) {
if(type == 'sk') {
this.$sendBuriedData({
component_tag: `882#88216#${item.id}#${item.name}`
});
}
if(!isWeiXin()) { if(!isWeiXin()) {
if(item.type == 1) { if(item.type == 1) {
Toast('请前往云鹊医APP参加考试'); Toast('请前往云鹊医APP参加考试');
...@@ -273,7 +278,12 @@ export default { ...@@ -273,7 +278,12 @@ export default {
}, },
// 弹框提示 // 弹框提示
toastToBuy(toastMsg) { toastToBuy(toastMsg, item) {
if(item) {
this.$sendBuriedData({
component_tag: `882#88215#${item.id}#${item.name}`
});
}
Toast(toastMsg); Toast(toastMsg);
} }
} }
......
...@@ -31,6 +31,9 @@ export default { ...@@ -31,6 +31,9 @@ export default {
}, },
methods: { methods: {
download() { download() {
this.$sendBuriedData({
component_tag: `882#88217`
});
window.location.href = window.location.href =
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque"; "https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
}, },
......
...@@ -116,6 +116,9 @@ export default { ...@@ -116,6 +116,9 @@ export default {
// 生成分享的url // 生成分享的url
goShare() { goShare() {
this.$sendBuriedData({
component_tag: `882#88209`
});
let _this = this; let _this = this;
let videoUrl = this.$route.query.videoUrl || ''; let videoUrl = this.$route.query.videoUrl || '';
let info = ""; let info = "";
......
...@@ -14,6 +14,9 @@ export default { ...@@ -14,6 +14,9 @@ export default {
}, },
methods: { methods: {
download() { download() {
this.$sendBuriedData({
component_tag: `882#88210`
});
window.location.href = window.location.href =
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque"; "https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
}, },
......
...@@ -262,6 +262,9 @@ export default { ...@@ -262,6 +262,9 @@ export default {
}, },
// 重播 // 重播
onReplay() { onReplay() {
this.$sendBuriedData({
component_tag: `882#88213`
});
this.player.style.display = 'block'; this.player.style.display = 'block';
this.player.currentTime = 0; this.player.currentTime = 0;
this.player.play(); this.player.play();
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
<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="btnClick" /> <course-covers coverTips="试看结束<br />请来云鹊医App学习完整课程" :isSingle="true" rightBtnText="学习完整课程" @btnClick="btnClick(1)" />
</div> </div>
<!-- 付费课程,下载App --> <!-- 付费课程,下载App -->
<div class="cover" v-if="logged && coverType === 2"> <div class="cover" v-if="logged && coverType === 2">
<course-covers coverTips="本课程为付费课程,请来云鹊医App学习" :isSingle="true" rightBtnText="去云鹊医App" @btnClick="btnClick" /> <course-covers coverTips="本课程为付费课程,请来云鹊医App学习" :isSingle="true" rightBtnText="去云鹊医App" @btnClick="btnClick(2)" />
</div> </div>
<!-- 下一个提示 --> <!-- 下一个提示 -->
<div class="next-countdown" v-if="coverType === 13">3秒后播放下一节</div> <div class="next-countdown" v-if="coverType === 13">3秒后播放下一节</div>
...@@ -275,7 +275,13 @@ export default { ...@@ -275,7 +275,13 @@ export default {
} }
return [chapters, curtLecture]; return [chapters, curtLecture];
}, },
btnClick(index) { btnClick(index, type) {
// 学习完整课程
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:
...@@ -287,6 +293,9 @@ export default { ...@@ -287,6 +293,9 @@ export default {
break; break;
case 5: case 5:
if (index === 1) { if (index === 1) {
this.$sendBuriedData({
component_tag: `884#88402`
});
window.history.back(); window.history.back();
} else { } else {
this.download(); this.download();
...@@ -311,9 +320,15 @@ export default { ...@@ -311,9 +320,15 @@ export default {
const { showFlag, trySeeFlag, trySeeTime, examType } = this.course; const { showFlag, trySeeFlag, trySeeTime, examType } = this.course;
// console.log(lecture); // console.log(lecture);
if (examType === 2) { // 是考试,mustLearnIds必须完成的lectureId if (examType === 2) { // 是考试,mustLearnIds必须完成的lectureId
this.$sendBuriedData({
component_tag: `884#88405`
});
this.$toast('请前往云鹊医APP进行考试'); this.$toast('请前往云鹊医APP进行考试');
return; return;
} }
this.$sendBuriedData({
component_tag: `884#88404#${lecture.lectureId}#${lecture.lectureName}`
});
if (lecture.lectureId === this.curtLectureId) { if (lecture.lectureId === this.curtLectureId) {
return; return;
} }
......
...@@ -27,15 +27,15 @@ ...@@ -27,15 +27,15 @@
<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="btnClick" /> <course-covers coverTips="试看结束<br />请来云鹊医App学习完整课程" :isSingle="true" rightBtnText="学习完整课程" @btnClick="btnClick(1)" />
</div> </div>
<!-- 播放结束,下载App --> <!-- 播放结束,下载App -->
<div class="cover" v-if="logged && coverType === 2"> <div class="cover" v-if="logged && coverType === 2">
<course-covers coverTips="播放结束<br />更多其他课程,请前往鹊医App学习" :isSingle="true" rightBtnText="去云鹊医App" @btnClick="btnClick" /> <course-covers coverTips="播放结束<br />更多其他课程,请前往鹊医App学习" :isSingle="true" rightBtnText="去云鹊医App" @btnClick="btnClick(2)" />
</div> </div>
<!-- 未登录 --> <!-- 未登录 -->
<div class="cover" v-if="!logged"> <div class="cover" v-if="!logged">
<course-covers coverTips="登录后马上学习课程" :isSingle="true" rightBtnText="去登录" @btnClick="goLogin" /> <course-covers coverTips="登录后马上学习课程" :isSingle="true" rightBtnText="去登录" @btnClick="beforeGoLogin" />
</div> </div>
</pica-video> </pica-video>
</div> </div>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
:studyNum="project.studyNum" :studyNum="project.studyNum"
:subject="project.subject" :subject="project.subject"
/> />
<CommonAdertImg :advertInfoList="advertInfoList" position="0" /> <!-- <CommonAdertImg :advertInfoList="advertInfoList" position="0" /> -->
<!-- 简介和目录 --> <!-- 简介和目录 -->
<div class="intro-catalogue-container"> <div class="intro-catalogue-container">
<div <div
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</div> </div>
</div> </div>
<CommonAdertImg needPadTop :advertInfoList="advertInfoList" position="1" /> <!-- <CommonAdertImg needPadTop :advertInfoList="advertInfoList" position="1" /> -->
<NoMoreContent /> <NoMoreContent />
<div v-if="detailNum <= 9" class="no-more-bottom"></div> <div v-if="detailNum <= 9" class="no-more-bottom"></div>
</div> </div>
...@@ -198,7 +198,7 @@ import TeacterIntro from "@/components/cme/teacter-intro"; ...@@ -198,7 +198,7 @@ import TeacterIntro from "@/components/cme/teacter-intro";
import CommonDialog from "@/components/cme/common-dialog"; import CommonDialog from "@/components/cme/common-dialog";
import ExjumperButton from "@/components/cme/exjumper-button"; import ExjumperButton from "@/components/cme/exjumper-button";
import NoMoreContent from "@/components/business/no-more-content"; import NoMoreContent from "@/components/business/no-more-content";
import CommonAdertImg from "@/components/common/common-advert-img"; // import CommonAdertImg from "@/components/common/common-advert-img";
import { getWebPageUrl, gotoPage, getAppVersion } from "@/utils/index"; import { getWebPageUrl, gotoPage, getAppVersion } from "@/utils/index";
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from "vuex";
...@@ -326,7 +326,7 @@ export default { ...@@ -326,7 +326,7 @@ export default {
TeacterIntro, TeacterIntro,
CommonDialog, CommonDialog,
ExjumperButton, ExjumperButton,
CommonAdertImg, // CommonAdertImg,
NoMoreContent, NoMoreContent,
BindCardButtonShare, BindCardButtonShare,
ChangeCard, ChangeCard,
...@@ -375,6 +375,13 @@ export default { ...@@ -375,6 +375,13 @@ export default {
methods: { methods: {
...mapActions(["setUserInfo", "goLogin"]), ...mapActions(["setUserInfo", "goLogin"]),
beforeGoLogin() {
this.$sendBuriedData({
component_tag: `882#88211`
});
this.goLogin();
},
// 解析uuid // 解析uuid
queryByUuid(uuid) { queryByUuid(uuid) {
let param = { let param = {
...@@ -400,11 +407,27 @@ export default { ...@@ -400,11 +407,27 @@ export default {
onReplay() { onReplay() {
this.coverType = 0; this.coverType = 0;
}, },
btnClick() { btnClick(index, type) {
// 学习完整课程
if(type == 1) {
this.$sendBuriedData({
component_tag: `882#88212`
});
// 播放结束
} else if(type == 2) {
this.$sendBuriedData({
component_tag: `882#88214`
});
}
this.download(); this.download();
}, },
download() { download(type) {
if(type == 1) {
this.$sendBuriedData({
component_tag: `882#88210`
});
}
window.location.href = window.location.href =
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque"; "https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册