From 27ca11bb8f5bbce8ec6815f292c94d19460c49d5 Mon Sep 17 00:00:00 2001 From: tcubic <123456> Date: Fri, 5 Aug 2022 14:37:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A1=B5=E9=9D=A2=E5=9F=8B?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Index.vue | 20 ++++++++++++++++++++ src/page/Home/Home.vue | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) 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);