新增页面埋点
This commit is contained in:
parent
47b44073e0
commit
27ca11bb8f
@ -330,6 +330,9 @@ onMounted(() => {
|
||||
// 挂载后执行入场动画
|
||||
animationIndex();
|
||||
|
||||
// 埋点
|
||||
addPoint()
|
||||
|
||||
// 如果添加了企微,直接调抽奖结果,中奖了就弹窗,未中奖的话不弹窗
|
||||
if (store.state.userAccount.isAddCustomer == 1 && !isGetedServiceLucky.value) {
|
||||
getluckyBag2(2)
|
||||
@ -595,6 +598,23 @@ const getBrithday = () => {
|
||||
|
||||
|
||||
|
||||
// 埋点接口
|
||||
const addPoint = ()=>{
|
||||
service
|
||||
.post(
|
||||
process.env.VUE_APP_API + "/action/application/action/event/user/brows",
|
||||
{
|
||||
actionType: 24,
|
||||
actionId: 20220805,
|
||||
cardId: store.state.userAccount.cardId
|
||||
}
|
||||
)
|
||||
.then((res) => {
|
||||
console.log("埋点成功:",res);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
const deleteNum = ref(0);
|
||||
// 清数据接口
|
||||
|
||||
@ -186,7 +186,7 @@ const apiAll = ()=>{
|
||||
|
||||
// 页面未挂载
|
||||
onBeforeMount(() => {
|
||||
// apiAll()
|
||||
apiAll()
|
||||
|
||||
console.log("link:", window.location.href);
|
||||
console.log("用户活动信息:", store.state.userAccount);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user