From f4ceec3c7aa67954c90495da806986b23afe0f66 Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Sat, 27 Sep 2025 17:54:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(analytics):=20=E6=B7=BB=E5=8A=A0=E9=98=BF?= =?UTF-8?q?=E9=87=8C=E4=BA=91=E6=97=A5=E5=BF=97=E6=9C=8D=E5=8A=A1=E5=9F=8B?= =?UTF-8?q?=E7=82=B9=E4=B8=8A=E6=8A=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在多个页面添加aplus埋点上报逻辑,包括PV和自定义事件上报 在index.html中添加阿里云日志服务SDK初始化配置 --- index.html | 37 ++++++++++++++++++++++ src/pages/detail/indexNewsInfo.vue | 20 +++++++++++- src/pages/realtimeInfo/index.vue | 6 ++++ src/pages/realtimeInfo/indexRelease.vue | 15 +++++---- src/pages/realtimeInfo/rankDetail.vue | 41 ++++++++++++------------- 5 files changed, 91 insertions(+), 28 deletions(-) diff --git a/index.html b/index.html index 6365fa1..0a474de 100644 --- a/index.html +++ b/index.html @@ -32,6 +32,43 @@
+ + - + {{ item.content }} @@ -22,12 +15,7 @@ - + {{ item.title }} {{ item.summary }} @@ -165,6 +153,12 @@ onMounted(async () => { } getListByTagFn(); + + const { aplus_queue } = window; + aplus_queue.push({ + action: 'aplus.sendPV', + arguments: [{ is_auto: false }] // 此处上报的数据暂时在后台没有展示 + }); }); @@ -254,11 +248,16 @@ onMounted(async () => { text-align: left; font-style: normal; - display: -webkit-box; /* 设置为WebKit内核的弹性盒子模型 */ - -webkit-box-orient: vertical; /* 垂直排列 */ - -webkit-line-clamp: 2; /* 限制显示三行 */ - overflow: hidden; /* 隐藏超出范围的内容 */ - text-overflow: ellipsis; /* 使用省略号 */ + display: -webkit-box; + /* 设置为WebKit内核的弹性盒子模型 */ + -webkit-box-orient: vertical; + /* 垂直排列 */ + -webkit-line-clamp: 2; + /* 限制显示三行 */ + overflow: hidden; + /* 隐藏超出范围的内容 */ + text-overflow: ellipsis; + /* 使用省略号 */ } .news-meta {