diff --git a/src/components/Aside.vue b/src/components/Aside.vue index f6ec0b7..6a39140 100644 --- a/src/components/Aside.vue +++ b/src/components/Aside.vue @@ -69,24 +69,17 @@ export default { set (val) { this.SET_DETAIL(val) } - }, - editSites: { - get () { - return this.$store.getters.getEditSites - }, - set (val) { - this.SET_EDITSITES(val) - } } }, methods: { - ...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_EDITSITES']), + ...mapMutations(['SET_VIEW', 'SET_DETAIL']), changeView (e) { this.view = e - // ChangeView 的时候关闭Detail页面 this.detail = { show: false } + const _hmt = window._hmt + _hmt.push(['_trackEvent', 'page', 'view', e]) } } } diff --git a/src/components/Detail.vue b/src/components/Detail.vue index c22f9b6..c26cd56 100644 --- a/src/components/Detail.vue +++ b/src/components/Detail.vue @@ -329,6 +329,9 @@ export default { this.loading = false } }) + const _hmt = window._hmt + const name = this.detail.info.name + _hmt.push(['_trackEvent', 'detail', 'view', name]) } }, created () { diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index 2d7ea8d..689e667 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -177,6 +177,8 @@ export default { api: this.siteInfo.api, download: this.siteInfo.download } + const _hmt = window._hmt + _hmt.push(['_trackEvent', 'site', 'add', `${this.siteInfo.name}: ${this.siteInfo.api}`]) if (this.dialogType === 'edit') sites.remove(this.siteInfo.id) sites.add(doc).then(res => { this.siteInfo = { diff --git a/src/components/Film.vue b/src/components/Film.vue index 6ad6f2a..37c92ac 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -213,6 +213,8 @@ export default { } }) } + const _hmt = window._hmt + _hmt.push(['_trackEvent', 'site', 'change', e.name]) }, classClick (e) { this.show.classList = false @@ -223,6 +225,8 @@ export default { this.infiniteId += 1 } }) + const _hmt = window._hmt + _hmt.push(['_trackEvent', 'class', 'change', e.name]) }, getClass () { return new Promise((resolve, reject) => { @@ -402,6 +406,15 @@ export default { this.searchList = res.reverse() }) }, + searchEvent (wd) { + if (this.setting.searchAllSites) { + this.searchAllSitesEvent(this.sites, wd) + } else { + this.searchSingleSiteEvent(this.site, wd) + } + const _hmt = window._hmt + _hmt.push(['_trackEvent', 'film', 'search', wd]) + }, searchAllSitesEvent (sites, wd) { this.searchTxt = wd this.searchContents = [] @@ -439,13 +452,6 @@ export default { }) } }, - searchEvent (wd) { - if (this.setting.searchAllSites) { - this.searchAllSitesEvent(this.sites, wd) - } else { - this.searchSingleSiteEvent(this.site, wd) - } - }, searchSingleSiteEvent (site, wd) { var sites = [] sites.push(this.site) diff --git a/src/components/Play.vue b/src/components/Play.vue index d058d22..a1c886e 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -302,6 +302,8 @@ export default { this.playUrl(this.video.iptv.url) this.name = this.video.iptv.name this.getIptvList() + const _hmt = window._hmt + _hmt.push(['_trackEvent', 'IPTV', 'play', this.name]) } else { const index = this.video.info.index | 0 let time = 0 @@ -353,6 +355,8 @@ export default { } zy.detail(this.video.key, this.video.info.id).then(res => { this.name = res.name + const _hmt = window._hmt + _hmt.push(['_trackEvent', 'film', 'play', res.name]) const dd = res.dl.dd const type = Object.prototype.toString.call(dd) let m3u8Txt = [] diff --git a/src/components/Setting.vue b/src/components/Setting.vue index f2e448e..33bcf27 100644 --- a/src/components/Setting.vue +++ b/src/components/Setting.vue @@ -141,10 +141,11 @@