显示ad图片,接入点击统计

This commit is contained in:
xu_yanfeng
2025-01-18 21:57:27 +08:00
parent d20da42c31
commit 115c4f90cf
8 changed files with 87 additions and 12 deletions

View File

@@ -25,6 +25,8 @@ import { defineComponent, onMounted, ref, toRaw } from "vue";
import Banner from "./banner.vue";
import { emitter, Msg } from "./const";
import { AdItem, getAdData } from "./loader";
import { ga } from "./util";
import { GA_EventName } from "../../ga/type";
export default defineComponent({
name: "ad",
components: { Banner },
@@ -80,6 +82,7 @@ export default defineComponent({
ads,
onClose() {
isShow.value = false;
ga(GA_EventName.CloseAd);
},
onMouseEnter() {
stopAutoScroll = true;