|
@@ -26,22 +26,22 @@ Vue.prototype.$getStorage = function(key){
|
|
|
* 友盟+小程序统计
|
|
|
*/
|
|
|
// #ifdef MP-WEIXIN
|
|
|
-import { umtrackWxKey } from '@/utils/config.js'
|
|
|
-import uma from 'umtrack-wx';
|
|
|
-uma.init({
|
|
|
- appKey: umtrackWxKey, //由友盟分配的APP_KEY
|
|
|
- // 使用Openid进行统计,此项为false时将使用友盟+uuid进行用户统计。
|
|
|
- // 使用Openid来统计微信小程序的用户,会使统计的指标更为准确,对系统准确性要求高的应用推荐使用Openid。
|
|
|
- useOpenid: true,
|
|
|
- // 使用openid进行统计时,是否授权友盟自动获取Openid,
|
|
|
- // 如若需要,请到友盟后台"设置管理-应用信息"(https://mp.umeng.com/setting/appset)中设置appId及secret
|
|
|
- autoGetOpenid: true,
|
|
|
- debug: true, //是否打开调试模式
|
|
|
- uploadUserInfo: false // 自动上传用户信息,设为false取消上传,默认为false
|
|
|
-});
|
|
|
-uma.install = function (Vue) {
|
|
|
- Vue.prototype.$uma = uma;
|
|
|
-}
|
|
|
+// import { umtrackWxKey } from '@/utils/config.js'
|
|
|
+// import uma from 'umtrack-wx';
|
|
|
+// uma.init({
|
|
|
+// appKey: umtrackWxKey, //由友盟分配的APP_KEY
|
|
|
+// // 使用Openid进行统计,此项为false时将使用友盟+uuid进行用户统计。
|
|
|
+// // 使用Openid来统计微信小程序的用户,会使统计的指标更为准确,对系统准确性要求高的应用推荐使用Openid。
|
|
|
+// useOpenid: true,
|
|
|
+// // 使用openid进行统计时,是否授权友盟自动获取Openid,
|
|
|
+// // 如若需要,请到友盟后台"设置管理-应用信息"(https://mp.umeng.com/setting/appset)中设置appId及secret
|
|
|
+// autoGetOpenid: true,
|
|
|
+// debug: true, //是否打开调试模式
|
|
|
+// uploadUserInfo: false // 自动上传用户信息,设为false取消上传,默认为false
|
|
|
+// });
|
|
|
+// uma.install = function (Vue) {
|
|
|
+// Vue.prototype.$uma = uma;
|
|
|
+// }
|
|
|
// #endif
|
|
|
|
|
|
|
|
@@ -51,7 +51,7 @@ Vue.prototype.$store = store;
|
|
|
Vue.prototype.$util = {msg,prePage,modal};
|
|
|
Vue.prototype.$api = Api;
|
|
|
Vue.prototype.$reg = Regs;
|
|
|
-Vue.use(uma);
|
|
|
+// Vue.use(uma);
|
|
|
App.mpType = 'app'
|
|
|
|
|
|
const app = new Vue({
|