Authored by 陈峰

Merge branch 'hotfix/yas' into 'gray'

Hotfix/yas



See merge request !75
... ... @@ -50,24 +50,11 @@
}
var uid = getUid() || queryString().uid;
var isYohoBuy = /YohoBuy/i.test(navigator.userAgent || '');
var isIos = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(navigator.userAgent || '');
var isAndroid = /Android/i.test(navigator.userAgent || '');
uid = uid === 0 ? '' : uid;
window._ozuid = uid; // 暴露ozuid
if (window._yas) {
var ak = 'yohoblk_m';
if (isYohoBuy) {
if (isIos) {
ak = 'yohobuy_ios';
} else if (isAndroid) {
ak = 'yohobuy_android';
}
}
window._yas(1 * new Date(), '2.4.14', ak, uid, '', '');
window._yas(1 * new Date(), '2.4.14', 'yohoblk_m', uid, '', '');
}
}());
var _hmt = _hmt || [];
... ...
{
"name": "yohoblk-wap",
"version": "2.0.36",
"version": "2.0.37",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -66,24 +66,11 @@
}
var uid = getUid() || queryString().uid;
var isYohoBuy = /YohoBuy/i.test(navigator.userAgent || '');
var isIos = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(navigator.userAgent || '');
var isAndroid = /Android/i.test(navigator.userAgent || '');
uid = uid === 0 ? '' : uid;
window._ozuid = uid; // 暴露ozuid
if (window._yas) {
var ak = 'yohoblk_m';
if (isYohoBuy) {
if (isIos) {
ak = 'yohobuy_ios';
} else if (isAndroid) {
ak = 'yohobuy_android';
}
}
window._yas(1 * new Date(), '2.4.14', ak, uid, '', '');
window._yas(1 * new Date(), '2.4.14', 'yohoblk_m', uid, '', '');
}
}());
var _hmt = _hmt || [];
... ...