...
|
...
|
@@ -12,7 +12,9 @@ |
|
|
a.async = 1;
|
|
|
a.src = j;
|
|
|
m.parentNode.insertBefore(a, m);
|
|
|
}(window, document, 'script', (document.location.protocol === 'https:' ? 'https' : 'http') + '://cdn.yoho.cn/yas-jssdk/2.0.0/yas.js', '_yas'));
|
|
|
}(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.1.0/yas.js', '_yas'));
|
|
|
|
|
|
var _hmt = _hmt || [];
|
|
|
|
|
|
(function() {
|
|
|
function getUid() {
|
...
|
...
|
@@ -37,14 +39,13 @@ |
|
|
}
|
|
|
|
|
|
function queryString() {
|
|
|
var vars = [],
|
|
|
var vars = {},
|
|
|
hash,
|
|
|
i;
|
|
|
var hashes = window.location.search.slice(1).split('&');
|
|
|
|
|
|
for (i = 0; i < hashes.length; i++) {
|
|
|
hash = hashes[i].split('=');
|
|
|
vars.push(hash[0]);
|
|
|
vars[hash[0]] = hash[1];
|
|
|
}
|
|
|
return vars;
|
...
|
...
|
@@ -55,7 +56,23 @@ |
|
|
uid = uid === 0 ? '' : uid;
|
|
|
window._ozuid = uid; // 暴露ozuid
|
|
|
if (window._yas) {
|
|
|
window._yas(1 * new Date(), '2.0.0', 'yohobuy_m', uid, '', '');
|
|
|
window._yas(1 * new Date(), '2.1.0', 'yohobuy_m', uid, '', '');
|
|
|
}
|
|
|
|
|
|
// 非登录状态,加载百度统计
|
|
|
if (!uid) {
|
|
|
(function() {
|
|
|
var hm = document.createElement("script");
|
|
|
hm.src = "https://hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
|
|
|
var s = document.getElementsByTagName("script")[0];
|
|
|
s.parentNode.insertBefore(hm, s);
|
|
|
})();
|
|
|
(function() {
|
|
|
var hm = document.createElement("script");
|
|
|
hm.src = "https://hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764";
|
|
|
var s = document.getElementsByTagName("script")[0];
|
|
|
s.parentNode.insertBefore(hm, s);
|
|
|
})();
|
|
|
}
|
|
|
}());
|
|
|
</script>
|
...
|
...
|
|