提交 053dbce1 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

年终活动三阶段增加埋点数据

上级 aba2f75c
......@@ -62,6 +62,18 @@
return ''
}
},
stage3BackBuried: { // 三阶段返回按钮埋点
type: String,
default() {
return ''
}
},
stage3ShareBuried: { // 三阶段返回按钮埋点
type: String,
default() {
return ''
}
},
},
data(){
return {
......@@ -119,11 +131,15 @@
})
},
goBack(){
if(this.isStageTwoHomePage){
if (this.isStageTwoHomePage) {
this.$sendBuriedData({
component_tag: `302#302002`
});
}else{
} else if (this.stage3BackBuried) {
this.$sendBuriedData({
component_tag: `${this.stage3BackBuried}`
});
} else {
this.$sendBuriedData({
component_tag: `301#301002`
});
......@@ -143,15 +159,6 @@
},
goShare(){
if(this.isStageTwoHomePage){
this.$sendBuriedData({
component_tag: `302#302001`
});
}else{
this.$sendBuriedData({
component_tag: `301#301001`
});
}
if(this.isCheckAuth){
this.$emit('checkAuth', ()=>{
this.$rocNative.shareWechat(this.shareObj);
......@@ -159,6 +166,20 @@
}else{
this.$rocNative.shareWechat(this.shareObj);
}
if (this.isStageTwoHomePage) {
this.$sendBuriedData({
component_tag: `302#302001`
});
} else if (this.stage3ShareBuried) {
this.$sendBuriedData({
component_tag: `${this.stage3ShareBuried}`
});
} else {
this.$sendBuriedData({
component_tag: `301#301001`
});
}
},
// 默认滚动事件
scrollHandleOwn(){
......
......@@ -3,6 +3,8 @@
<h5header
v-if="!isWeb"
:title="`${title[this.hospitalType]}榜榜单`"
:stage3BackBuried="backBuried[this.hospitalType]"
:stage3ShareBuried="shareBuried[this.hospitalType]"
isGoHistory="1"
:isOpacity="false"
:shareObj="shareObj"/>
......@@ -78,6 +80,18 @@
'2': '中型',
'3': '大型'
},
shareBuried: {
'0': '489#403001',
'1': '490#404001',
'2': '491#405001',
'3': '492#406001'
},
backBuried: {
'0': '489#403002',
'1': '490#404002',
'2': '491#405002',
'3': '492#406002'
},
rankIcon: {
0: require('../../assets/img/stage3/rank-icon1.png'),
1: require('../../assets/img/stage3/rank-icon2.png'),
......@@ -158,6 +172,23 @@
},
share() {
this.$rocNative.shareWechat(this.shareObj);
if(this.hospitalType == '0') {
this.$sendBuriedData({
component_tag: `489#403003`
});
} else if(this.hospitalType == '1') {
this.$sendBuriedData({
component_tag: `490#404003`
});
} else if(this.hospitalType == '2') {
this.$sendBuriedData({
component_tag: `491#405003`
});
} else if(this.hospitalType == '3') {
this.$sendBuriedData({
component_tag: `492#406003`
});
}
}
}
}
......
......@@ -3,10 +3,12 @@
<h5header
v-if="!isWeb"
title="云鹊奖2019"
:stage3BackBuried="'487#401002'"
:stage3ShareBuried="'487#401001'"
:isOpacity="false"
:shareObj="shareObj"/>
<div class="top-container" :style="{ marginTop: isWeb?0:`${44+statusBarHeight}Px`}">
<img src="~/assets/img/stage3/rule-btn.png" @click="goToRule" alt="">
<img src="~/assets/img/stage3/rule-btn.png" @click="goToRule" v-bp="{ component_tag: '487#401003'}" alt="">
</div>
<!--已登录及个人未参加-->
<div class="person-details" v-if="isLogin&&mainInfoType==1&&!isWeb">
......@@ -30,7 +32,7 @@
<p class="score">机构勤奋分 {{mainInfo.hospitalDiligence}}</p>
</div>
</div>
<div class="my-grade" v-if="mainInfo.diligence" @click="goMyGrade">我的成绩</div>
<div class="my-grade" v-if="mainInfo.diligence" @click="goMyGrade" v-bp="{ component_tag: '487#401004'}">我的成绩</div>
<div class="bottom">
<p class="text">参与人数 {{joinDeatils.count}}</p>
<p class="line"></p>
......@@ -40,7 +42,7 @@
<!--未登录-->
<div class="person-details not-login" v-if="!isLogin">
<div class="description">登录查看个人和机构排名</div>
<div class="my-grade" @click="goToLogin">立即登录</div>
<div class="my-grade" @click="goToLogin" v-bp="{ component_tag: '487#401005'}">立即登录</div>
<div class="bottom">
<p class="text">参与人数 {{joinDeatils.count}}</p>
<p class="line"></p>
......@@ -92,7 +94,7 @@
<div class="item">
<div class="top">
<div class="title">云鹊勤奋之星</div>
<div class="operation" @click="goRankList(2)">查看榜单<img src="~/assets/img/stage3/icon-right.png" alt=""></div>
<div class="operation" @click="goRankList(2)" v-bp="{ component_tag: '487#401010'}">查看榜单<img src="~/assets/img/stage3/icon-right.png" alt=""></div>
</div>
<div class="content">
<img src="~/assets/img/stage3/person-rank.png" alt="">
......@@ -245,6 +247,24 @@
},
goRankList(type,hospitalType) { //跳转榜单页,type:1机构,2个人
if (type == 1) {
if (hospitalType == 0) {
this.$sendBuriedData({
component_tag: `487#401006`
});
} else if (hospitalType == 1) {
this.$sendBuriedData({
component_tag: `487#401007`
});
} else if (hospitalType == 2) {
this.$sendBuriedData({
component_tag: `487#401008`
});
} else if (hospitalType == 3) {
this.$sendBuriedData({
component_tag: `487#401009`
});
}
this.$router.push({
path: '/awards-list/hospital-grades',
query: {
......
......@@ -3,6 +3,8 @@
<h5header
v-if="!isWeb"
title="云鹊奖2019"
:stage3BackBuried="'488#402002'"
:stage3ShareBuried="'488#402001'"
isGoHistory="1"
:isOpacity="false"
:shareObj="shareObj"/>
......@@ -71,7 +73,7 @@
<p class="name">邀请好友</p>
</div>
</div>
<div class="share-btn" @click="share" v-if="!isWeb">分享我的成绩</div>
<div class="share-btn" @click="share" v-if="!isWeb" v-bp="{ component_tag: '488#402003'}">分享我的成绩</div>
<p class="footer-text" v-if="!isWeb">共同推进医防融合 齐心聚力机构发展</p>
<no-ssr v-if="isWeb">
<pica-call-app
......
......@@ -3,6 +3,8 @@
<h5header
v-if="!isWeb"
title="个人勤奋榜单"
:stage3BackBuried="'493#407002'"
:stage3ShareBuried="'493#407001'"
isGoHistory="1"
:isOpacity="false"
:shareObj="shareObj"/>
......@@ -39,7 +41,7 @@
</p>
<p class="rank" v-else>很遗憾,您未上榜</p>
</div>
<div class="right" @click="share">分享排名</div>
<div class="right" @click="share" v-bp="{ component_tag: '493#407003'}">分享排名</div>
</div>
</div>
<no-ssr v-if="isWeb">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册