新增页面埋点

This commit is contained in:
tcubic 2022-08-05 14:37:43 +08:00
parent 47b44073e0
commit 27ca11bb8f
2 changed files with 21 additions and 1 deletions

View File

@ -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);
//

View File

@ -186,7 +186,7 @@ const apiAll = ()=>{
//
onBeforeMount(() => {
// apiAll()
apiAll()
console.log("link", window.location.href);
console.log("用户活动信息:", store.state.userAccount);