Authored by zhengwen.ge

yas上报

@@ -12,7 +12,21 @@ @@ -12,7 +12,21 @@
12 var version, type, appid, td, queryString, downUrl; 12 var version, type, appid, td, queryString, downUrl;
13 13
14 var jumpTypes = [110]; 14 var jumpTypes = [110];
15 - 15 +
  16 + (function (w, d, s, j, f) {
  17 + w['YohoAcquisitionObject'] = f;
  18 + w[f] = function () {
  19 + w[f].p = arguments;
  20 + };
  21 + var a = d.createElement(s);
  22 + var m = d.getElementsByTagName(s)[0];
  23 + a.async = 1;
  24 + a.src = j;
  25 + m.parentNode.insertBefore(a, m);
  26 + })(window, document, 'script', '//cdn.yoho.cn/yas-jssdk/1.0.16/yas.js', '_yas');
  27 + _yas(1 * new Date(), '1.0.16', 'yohoboys_m', '', '');
  28 +
  29 +
16 function isInJump(unionType) { 30 function isInJump(unionType) {
17 for (var i = 0 ;i < jumpTypes.length; i++) { 31 for (var i = 0 ;i < jumpTypes.length; i++) {
18 if (unionType == jumpTypes[i]) { 32 if (unionType == jumpTypes[i]) {
@@ -37,9 +51,9 @@ @@ -37,9 +51,9 @@
37 } 51 }
38 52
39 queryString = getQueryString(); 53 queryString = getQueryString();
40 - downUrl = 'http://a.app.qq.com/o/simple.jsp?pkgname=cn.yoho.magazine'; 54 + downUrl = 'http://a.app.qq.com/o/simple.jsp?pkgname=cn.yoho.magazine';
41 //downUrl = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8"; 55 //downUrl = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
42 - window.location.href = downUrl; 56 + window.location.href = downUrl;
43 57
44 58
45 59