From 23ff9cdec1f0a1ef43ebdc01888fc850c6390d0a Mon Sep 17 00:00:00 2001 From: MengYX Date: Sat, 14 Sep 2019 20:43:57 +0800 Subject: [PATCH] Add Analytics Fix an error statement --- public/index.html | 5 +++++ src/App.vue | 13 +++++++++++-- src/plugins/ncm.js | 11 +++++------ src/plugins/qmc.js | 2 +- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/public/index.html b/public/index.html index 9154ac7..a8a909f 100644 --- a/public/index.html +++ b/public/index.html @@ -4,6 +4,11 @@ + + 音乐解锁 - By IXarea diff --git a/src/App.vue b/src/App.vue index ad44efd..ca7021a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -140,11 +140,21 @@ title: '解锁成功', message: '成功解锁 ' + data.title }); + let _rp_data = { + original: data.original, + title: data.title, + album: data.album, + artist: data.artist, + mime: data.mime + }; + console.log(data); + _paq.push(["trackEvent", "Unlock", "Success", JSON.stringify(_rp_data)]); } else { this.$notify.error({ title: '错误', - message: '不支持此文件类型' + message: '解析此文件时出现问题' }); + _paq.push(["trackEvent", "Unlock", "Error", file.name]); } @@ -190,7 +200,6 @@ } } -