diff --git a/main.js b/main.js index fcd9083..9b80878 100644 --- a/main.js +++ b/main.js @@ -56,6 +56,7 @@ QDTracker.track('navButtonClick', {buttonName: '123', buttonSort: '123'}); // 小程序与web统一变量 qdTracker = QDTracker; +// a 事件code b 对象参数 Vue.prototype.qdTracker = (a, b) => { QDTracker.track(a, b); } diff --git a/subPackages/eventCalendar/detail.vue b/subPackages/eventCalendar/detail.vue index 18f006a..279a518 100644 --- a/subPackages/eventCalendar/detail.vue +++ b/subPackages/eventCalendar/detail.vue @@ -81,6 +81,16 @@ } // res.data.is_collect = 0 // 收藏图变更慢 this.info = res.data; + + let param = { + title: this.info.title, + activityID: this.info.id, + ActivityCategory: uni.getStorageSync('ActivityCategory'), + ActivityDate: this.info.start_time, + visitSource: this.getVisitSource() + } + + this.qdTracker('viewProductDetail', param) }); }, // 收藏 diff --git a/subPackages/eventCalendar/eventCalendar.vue b/subPackages/eventCalendar/eventCalendar.vue index 2cb4cf2..01b9778 100644 --- a/subPackages/eventCalendar/eventCalendar.vue +++ b/subPackages/eventCalendar/eventCalendar.vue @@ -44,11 +44,12 @@ - + - + {{item.title}} @@ -357,11 +358,14 @@ this.pageNo = 0 this.list = [] this.getList() + + this.qdTracker('activityCalendarClick', {CalendarDate: this.selectDay}) } }, viewDetail (item) { this.goOtherDetail(item) if(!item.link_type) { + uni.setStorageSync('ActivityCategory', this.typeList[this.typeIndex].title) uni.navigateTo({ url:'/subPackages/eventCalendar/detail?id='+item.id }) diff --git a/subPackages/search/search.vue b/subPackages/search/search.vue index 359c961..7af636b 100644 --- a/subPackages/search/search.vue +++ b/subPackages/search/search.vue @@ -3,8 +3,8 @@
搜索历史