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

Merge branch 'dev-coursedetail-0817' into release

* dev-coursedetail-0817:
  数据埋点及样式调整
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</span> </span>
<span <span
v-else-if="!hasBindCard && item.type == 2 && cmeType == 2" v-else-if="!hasBindCard && item.type == 2 && cmeType == 2"
@click="gotoExamOrCourse(item)" @click="gotoExamOrCourse(item, 'sk')"
class="text-action" class="text-action"
style="background: #f28662;border: none;color: #fff;" style="background: #f28662;border: none;color: #fff;"
> >
...@@ -166,7 +166,12 @@ export default { ...@@ -166,7 +166,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: `883#88316#${item.id}#${item.name}`
});
}
if(!isWeiXin()) { if(!isWeiXin()) {
if(item.type == 1) { if(item.type == 1) {
Toast('请前往云鹊医APP参加考试'); Toast('请前往云鹊医APP参加考试');
...@@ -270,7 +275,12 @@ export default { ...@@ -270,7 +275,12 @@ export default {
}, },
// 弹框提示 // 弹框提示
toastToBuy() { toastToBuy(item) {
if(item) {
this.$sendBuriedData({
component_tag: `883#88315#${item.id}#${item.name}`
});
}
Toast('购买后可学习课程'); Toast('购买后可学习课程');
} }
} }
......
...@@ -31,6 +31,9 @@ export default { ...@@ -31,6 +31,9 @@ export default {
}, },
methods: { methods: {
download() { download() {
this.$sendBuriedData({
component_tag: `883#88317`
});
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: `883#88309`
});
let _this = this; let _this = this;
let videoUrl = this.$route.query.videoUrl || ''; let videoUrl = this.$route.query.videoUrl || '';
let info = ""; let info = "";
......
...@@ -262,6 +262,9 @@ export default { ...@@ -262,6 +262,9 @@ export default {
}, },
// 重播 // 重播
onReplay() { onReplay() {
this.$sendBuriedData({
component_tag: `883#88313`
});
this.player.style.display = 'block'; this.player.style.display = 'block';
this.player.currentTime = 0; this.player.currentTime = 0;
this.player.play(); this.player.play();
...@@ -635,7 +638,7 @@ export default { ...@@ -635,7 +638,7 @@ export default {
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
left: 10px; left: 10px;
bottom: 44px; bottom: 12px;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
padding: 0 12px; padding: 0 12px;
...@@ -666,7 +669,7 @@ export default { ...@@ -666,7 +669,7 @@ export default {
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
right: 10px; right: 10px;
bottom: 44px; bottom: 12px;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
padding: 0 12px 0 22px; padding: 0 12px 0 22px;
......
...@@ -6,7 +6,6 @@ import store from './store/' ...@@ -6,7 +6,6 @@ import store from './store/'
const mixins = require('@/utils/mixins'); const mixins = require('@/utils/mixins');
import '@/utils/rem' // 引入自适应 import '@/utils/rem' // 引入自适应
import '@/utils/yqy-bridge' // 移动端服务 import '@/utils/yqy-bridge' // 移动端服务
// import FastClick from 'fastclick'
import vueFilters from '@/utils/filter' import vueFilters from '@/utils/filter'
import VConsole from 'vconsole/dist/vconsole.min.js' import VConsole from 'vconsole/dist/vconsole.min.js'
import BuriedPoint,{ sendBuriedData} from 'web-buried-point'; import BuriedPoint,{ sendBuriedData} from 'web-buried-point';
...@@ -14,6 +13,7 @@ import Vant from 'vant'; ...@@ -14,6 +13,7 @@ import Vant from 'vant';
import 'vant/lib/index.css'; import 'vant/lib/index.css';
import clipboard from 'clipboard'; import clipboard from 'clipboard';
import "@/utils/wxShare" import "@/utils/wxShare"
//注册到vue原型上 //注册到vue原型上
Vue.prototype.clipboard = clipboard; Vue.prototype.clipboard = clipboard;
......
...@@ -28,15 +28,15 @@ ...@@ -28,15 +28,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>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
:studyNum="project.studyNum" :studyNum="project.studyNum"
:subject="project.subject" :subject="project.subject"
/> />
<CommonAdertImg :advertInfoList="advertInfoList" position="0" /> <!-- <CommonAdertImg :advertInfoList="advertInfoList" position="0" /> -->
<!-- 步骤条 --> <!-- 步骤条 -->
<div v-if="project.cmeType != 2"> <div v-if="project.cmeType != 2">
<CmeStep <CmeStep
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,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>
...@@ -227,7 +227,7 @@ import CommonDialog from "@/components/cme/common-dialog"; ...@@ -227,7 +227,7 @@ import CommonDialog from "@/components/cme/common-dialog";
import ExjumperDialog from "@/components/cme/exjumper-dialog"; import ExjumperDialog from "@/components/cme/exjumper-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";
...@@ -367,7 +367,7 @@ export default { ...@@ -367,7 +367,7 @@ export default {
ExjumperButton, ExjumperButton,
ExjumperDialog, ExjumperDialog,
// CardPopup, // CardPopup,
CommonAdertImg, // CommonAdertImg,
NoMoreContent, NoMoreContent,
BindCardButtonShare, BindCardButtonShare,
ChangeCard, ChangeCard,
...@@ -414,6 +414,13 @@ export default { ...@@ -414,6 +414,13 @@ export default {
methods: { methods: {
...mapActions(["setUserInfo", "goLogin"]), ...mapActions(["setUserInfo", "goLogin"]),
beforeGoLogin() {
this.$sendBuriedData({
component_tag: `883#88311`
});
this.goLogin();
},
// 解析uuid // 解析uuid
queryByUuid(uuid) { queryByUuid(uuid) {
let param = { let param = {
...@@ -441,11 +448,27 @@ export default { ...@@ -441,11 +448,27 @@ export default {
this.coverType = 0; this.coverType = 0;
}, },
btnClick() { btnClick(index, type) {
// 学习完整课程
if(type == 1) {
this.$sendBuriedData({
component_tag: `883#88312`
});
// 播放结束
} else if(type == 2) {
this.$sendBuriedData({
component_tag: `883#88314`
});
}
this.download(); this.download();
}, },
download() { download(type) {
if(type == 1) {
this.$sendBuriedData({
component_tag: `883#88310`
});
}
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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册