提交 ffa90354 编写于 作者: huangwensu's avatar huangwensu

页面添加埋点

上级 0a72bc63
......@@ -23,6 +23,7 @@
:isFixed="!isFixed"
:needBT="needBT"
btnWidth="100%"
v-bp="{ component_tag: '364#360018' }"
@btnClick="btnClick"/>
</div>
<div v-if="!dataList.length" class="no-content">
......
......@@ -7,7 +7,11 @@
<div :class="{ active: isScroll }" class="content title">
<span>{{ shareTitle1 }}</span>
</div>
<div v-show="isShowRightIcon" class="content right-icon" @click="share">
<div
v-show="isShowRightIcon"
class="content right-icon"
@click="share"
v-bp="{ component_tag: '360#360001'}">
<img :src="headerRightIcon" />
</div>
</div>
......
......@@ -111,6 +111,32 @@ export default {
};
this.$emit('activityTaskJump', data);
// }
if(item.resourceType == 11) {
this.$sendBuriedData({
action: '分享任务',
component_tag: '360#360004'
});
}else if(item.resourceType == 1) {
this.$sendBuriedData({
action: '课程学习任务',
component_tag: '360#360005'
});
}else if(item.resourceType == 8) {
this.$sendBuriedData({
action: '排查任务',
component_tag: '360#360006'
});
}else if(item.resourceType == 9) {
this.$sendBuriedData({
action: '居民绑定任务',
component_tag: '360#360007'
});
}else if(item.resourceType == 3) {
this.$sendBuriedData({
action: 'SMO任务',
component_tag: '360#360008'
});
}
}
},
// 活动详情
......
......@@ -17,14 +17,14 @@
<!-- 顶部 -->
<div class="top-container">
<img class="rule" @click="ruleDetail" src="../static/images/rule.png" />
<img class="rank" @click="gotoRank" src="../static/images/rank.png" />
<img class="rank" @click="gotoRank" v-bp="{ component_tag: '360#360003'}" src="../static/images/rank.png" />
<!-- 勤奋分进度 -->
<div class="progress-container">
<div class="score-info">
<div v-if="userMobile" class="text">
<img :src="myAvatarl" />
<span class="tc">我的勤奋分<span>{{myScore}}</span></span>
<span class="bt" @click="selfInfo">个人明细 ></span>
<span class="bt" @click="selfInfo" v-bp="{ component_tag: '360#360002'}">个人明细 ></span>
</div>
<div v-if="!userMobile" class="text">
<span class="tc">登录可参加活动</span>
......@@ -184,13 +184,17 @@ export default {
};
_this.getActivityTime();
_this.inviteFirstEnter();
_this.$sendBuriedData({
action: '查看量',
component_tag: '360#360000'
});
},
methods: {
// 首次邀请进入
// 点赞后进入活动主页
inviteFirstEnter() {
// inviteFirstEnter({taskId: this.taskId,activityId: this.activityId}).then(res => {
// })
inviteFirstEnter({taskId: this.taskId,activityId: this.activityId}).then(res => {
})
},
// 获取服务器当前时间
getActivityTime() {
......
......@@ -21,7 +21,7 @@
<button v-if="notSend" @click="sendSms">{{btnMsg}}</button>
<van-count-down v-if="!notSend" :time="time" @finish="finishCount" :format="'ss' + 's'" />
</div>
<button class="btn-post" @click="gotoPoint">登录点赞 助力好友</button>
<button class="btn-post" @click="gotoPoint" v-bp="{ component_tag: '361#360009'}">登录点赞 助力好友</button>
</div>
</div>
</template>
......
......@@ -15,7 +15,7 @@
</div>
</div>
<div class="btn">
<button @click="openApp">{{btnText}}</button>
<button @click="openApp" v-bp="{ component_tag: '361#3600010'}">{{btnText}}</button>
<button @click="downloadApp">下载APP</button>
</div>
</div>
......
......@@ -55,6 +55,12 @@ export default {
this.token = this.$route.query.token;
this.getSelfActivity();
},
mounted() {
this.$sendBuriedData({
action: '查看量 ',
component_tag: '364#360017'
});
},
methods: {
goBack() {
if(this.$rocNative.isWeb) {
......
......@@ -97,6 +97,12 @@ export default {
this.getRankData();
this.getSelfAllScore();
},
mounted() {
this.$sendBuriedData({
action: '查看量',
component_tag: '362#360011'
});
},
methods: {
// 获取个人信息
getSelfAllScore() {
......@@ -132,6 +138,10 @@ export default {
},
goBack() {
this.$sendBuriedData({
action: '更多勤奋分按钮',
component_tag: '362#360012'
});
this.$router.go(-1);
// if(this.$rocNative.isWeb) {
// this.$router.go(-1);
......
......@@ -123,10 +123,20 @@ export const getCarveStatus = ( data ) => {
// 登录点赞
export const pointResult = ( data ) => {
return request({
url: `/campaign/like/like`,
method: 'post',
data: data,
withCredentials: true
})
}
// 第一次邀请进入
export const inviteFirstEnter = () => {
// 点赞后进入活动主页
export const inviteFirstEnter = ( data ) => {
return request({
url: `/campaign/like/activePage `,
method: 'post',
data: data,
withCredentials: true
})
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册