Authored by ccbikai(👎🏻🍜)

Merge branch 'hotfix/anysics' into gray

... ... @@ -14,6 +14,8 @@
m.parentNode.insertBefore(a, m);
}(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() {
var uid,
... ... @@ -56,6 +58,22 @@
if (window._yas) {
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>
... ...