Authored by xuqi

analysis script

@@ -108,7 +108,7 @@ function rePosFooter() { @@ -108,7 +108,7 @@ function rePosFooter() {
108 } 108 }
109 109
110 //页面通用底部位置及status设置 110 //页面通用底部位置及status设置
111 -(function () { 111 +(function() {
112 var $op = $footer.children('.op-row'); 112 var $op = $footer.children('.op-row');
113 113
114 var user = getUser(); 114 var user = getUser();
@@ -142,6 +142,14 @@ function rePosFooter() { @@ -142,6 +142,14 @@ function rePosFooter() {
142 $footer.removeClass('hide'); 142 $footer.removeClass('hide');
143 }()); 143 }());
144 144
  145 +(function() {
  146 + var uid = getUid();
  147 +
  148 + uid = uid === 0 ? '' : uid;
  149 + window._yas(1 * new Date(), '1.0.8', 'yohobuy_m', uid, '');
  150 +}());
  151 +
  152 +
145 //暴露公共接口 153 //暴露公共接口
146 window.cookie = cookie; 154 window.cookie = cookie;
147 155
  1 + <!-- Google Tag Manager -->
  2 + <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  3 + <script>
  4 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  5 + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  6 + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  7 + '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  8 + })(window,document,'script','dataLayer','GTM-W958MG');
  9 + </script>
  10 + <!-- End Google Tag Manager -->
  11 +
  12 +<script type="text/javascript">
  13 + var _hmt = _hmt || [];
  14 + (function() {
  15 + var hm = document.createElement("script");
  16 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  17 + var s = document.getElementsByTagName("script")[0];
  18 + s.parentNode.insertBefore(hm, s);
  19 + })();
  20 +</script>
  21 +
  22 +<script>
  23 + var _hmt = _hmt || [];
  24 + (function() {
  25 + var hm = document.createElement("script");
  26 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  27 + var s = document.getElementsByTagName("script")[0];
  28 + s.parentNode.insertBefore(hm, s);
  29 + })();
  30 +</script>
  31 +
  32 +<script type="text/javascript">
  33 + (function(w,d,s,j,f){
  34 + w['YohoAcquisitionObject']=f;
  35 + w[f]=function(){w[f].p=arguments;};
  36 + var a=d.createElement(s);
  37 + var m=d.getElementsByTagName(s)[0];
  38 + a.async=1;
  39 + a.src=j;
  40 + m.parentNode.insertBefore(a,m);
  41 + })(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.8/yas.js','_yas');
  42 +</script>
@@ -19,6 +19,8 @@ @@ -19,6 +19,8 @@
19 <script src="http://localhost:8000/static/js/sea.js?nowrap"></script> 19 <script src="http://localhost:8000/static/js/sea.js?nowrap"></script>
20 <script>seajs.config({base: 'http://localhost:8000/'});</script> 20 <script>seajs.config({base: 'http://localhost:8000/'});</script>
21 {{/if}} 21 {{/if}}
  22 +
  23 +{{> layout/analysis}}
22 {{> layout/use}} 24 {{> layout/use}}
23 </body> 25 </body>
24 </html> 26 </html>