diff --git a/src/components/Index.vue b/src/components/Index.vue index 55284d6..b844605 100644 --- a/src/components/Index.vue +++ b/src/components/Index.vue @@ -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); // 清数据接口 diff --git a/src/page/Home/Home.vue b/src/page/Home/Home.vue index 845bcb5..e35e74d 100644 --- a/src/page/Home/Home.vue +++ b/src/page/Home/Home.vue @@ -186,7 +186,7 @@ const apiAll = ()=>{ // 页面未挂载 onBeforeMount(() => { - // apiAll() + apiAll() console.log("link:", window.location.href); console.log("用户活动信息:", store.state.userAccount);