From 553b628f4c3a241dc0902485905b2b948951ca67 Mon Sep 17 00:00:00 2001 From: chenkainan Date: Tue, 17 Dec 2024 11:05:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 4 ++-- pages/index/index.vue | 30 ++++++++++++++++++++---------- pages/map/map.vue | 4 ++++ pages/user/user.vue | 4 ++++ 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/main.js b/main.js index ba26cea..fcd9083 100644 --- a/main.js +++ b/main.js @@ -23,12 +23,12 @@ let qdTracker; // #ifdef MP // 小程序的初始化 QDTracker.init({ - debug: true, // 开启调试模式,默认关闭 + debug: false, // 开启调试模式,默认关闭 disableCache: true, appid: 'wxcb555ab174f22ec9', //小程序appid // kfuin: 2852150212, appkey: '0MA006654M5XP4YR', // 上面第二步里新增的appKey - application: '同里测试_1', // 小程序名称 + application: '同里', // 小程序名称 apiHost: 'https://qidian.tongli.net', // 接口请求域名,请联系项目交付同事提供上报域名。 apiMethod: 'post', encryptMode: 'close', // 加密模式 close-关闭 default-base64 aes-aes加密 diff --git a/pages/index/index.vue b/pages/index/index.vue index 2e699b1..821017a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -6,7 +6,7 @@ - + @@ -26,19 +26,19 @@ {{notice}} - + 更多 - + 门票预订 便民快捷购票入口 - + 地图导览 随时随地发现新旅程 @@ -48,7 +48,7 @@ - + {{item.text}} @@ -58,7 +58,7 @@ 景点展览 - 更多 + 更多 @@ -72,7 +72,7 @@ 精彩推荐 - 更多 + 更多 @@ -121,11 +121,11 @@ - 查看更多 + 查看更多 - + @@ -206,7 +206,16 @@ this.getArticleByType() this.getLatest() }, + // 导航栏点击事件 + onTabItemTap() { + this.qdTracker('navButtonClick', {buttonName: '首页', buttonSort: '1'}) + }, methods: { + // 金刚区跳转 功能埋点 + gotoPathMd(item,index) { + this.qdTracker('homepageMainButtonClick', {buttonName: item.text, buttonSort: index}) + this.gotoPath(item.path) + }, // 去地图导览 gotoMap() { // 必须登录 @@ -246,7 +255,8 @@ }) }, // 2是各种详情页,3是列表专题页面,4是小程序 - gotoUrlNew(item) { + gotoUrlNew(item, index) { + this.qdTracker('homepageBannerClick', {buttonName: '首页banner点击', buttonSort: index}) let url = ''; switch (item.jump_type) { case 0: diff --git a/pages/map/map.vue b/pages/map/map.vue index dc08131..4596980 100644 --- a/pages/map/map.vue +++ b/pages/map/map.vue @@ -18,6 +18,10 @@ onShow() { this.gotoMap() }, + // 导航栏点击事件 + onTabItemTap() { + this.qdTracker('navButtonClick', {buttonName: '导览', buttonSort: '2'}) + }, methods: { gotoMap() { // 必须登录 diff --git a/pages/user/user.vue b/pages/user/user.vue index d548898..094cb5e 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -174,6 +174,10 @@ // } // }); }, + // 导航栏点击事件 + onTabItemTap() { + this.qdTracker('navButtonClick', {buttonName: '我的', buttonSort: '3'}) + }, methods: { // 个人信息或登录 gotoProfile() {