Authored by ccbikai(👎🏻🍜)

Merge branch 'hotfix/anysics' into gray

@@ -14,6 +14,8 @@ @@ -14,6 +14,8 @@
14 m.parentNode.insertBefore(a, m); 14 m.parentNode.insertBefore(a, m);
15 }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.1.0/yas.js', '_yas')); 15 }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.1.0/yas.js', '_yas'));
16 16
  17 + var _hmt = _hmt || [];
  18 +
17 (function() { 19 (function() {
18 function getUid() { 20 function getUid() {
19 var uid, 21 var uid,
@@ -56,6 +58,22 @@ @@ -56,6 +58,22 @@
56 if (window._yas) { 58 if (window._yas) {
57 window._yas(1 * new Date(), '2.1.0', 'yohobuy_m', uid, '', ''); 59 window._yas(1 * new Date(), '2.1.0', 'yohobuy_m', uid, '', '');
58 } 60 }
  61 +
  62 + // 非登录状态,加载百度统计
  63 + if (!uid) {
  64 + (function() {
  65 + var hm = document.createElement("script");
  66 + hm.src = "https://hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  67 + var s = document.getElementsByTagName("script")[0];
  68 + s.parentNode.insertBefore(hm, s);
  69 + })();
  70 + (function() {
  71 + var hm = document.createElement("script");
  72 + hm.src = "https://hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764";
  73 + var s = document.getElementsByTagName("script")[0];
  74 + s.parentNode.insertBefore(hm, s);
  75 + })();
  76 + }
59 }()); 77 }());
60 </script> 78 </script>
61 79