Authored by whb

index,css

@@ -106,6 +106,34 @@ function getShoppingKey() { @@ -106,6 +106,34 @@ function getShoppingKey() {
106 return JSON.parse(c).k; 106 return JSON.parse(c).k;
107 } 107 }
108 108
  109 +//YAS统计代码
  110 +(function(w, d, s, j, f) {
  111 + var a = d.createElement(s);
  112 + var m = d.getElementsByTagName(s)[0];
  113 +
  114 + w.YohoAcquisitionObject = f;
  115 +
  116 + w[f] = function() {
  117 + w[f].p = arguments;
  118 + };
  119 +
  120 + a.async = 1;
  121 + a.src = j;
  122 + m.parentNode.insertBefore(a, m);
  123 +})(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.13.6.3/yas.js', '_yas');
  124 +
  125 +(function() {
  126 + var uid = getUid();
  127 +
  128 + uid = uid === 0 ? '' : uid;
  129 +
  130 + window._ozuid = uid;//暴露ozuid
  131 +
  132 + if (window._yas) {
  133 + window._yas(1 * new Date(), '1.0.13.6.3', 'yohobuy_web', uid, '', '');
  134 + }
  135 +}());
  136 +
109 window.cookie = cookie; 137 window.cookie = cookie;
110 138
111 window.setCookie = setCookie; 139 window.setCookie = setCookie;
@@ -2572,7 +2600,7 @@ var $ = require("jquery"), @@ -2572,7 +2600,7 @@ var $ = require("jquery"),
2572 2600
2573 //插入more的位置,more占的是下一页第一个brand的位置,所以page是i/17 2601 //插入more的位置,more占的是下一页第一个brand的位置,所以page是i/17
2574 out = out + '<li class="brand-more" data-page="' + Math.floor(i / (showNum + 1)) + '">' + 2602 out = out + '<li class="brand-more" data-page="' + Math.floor(i / (showNum + 1)) + '">' +
2575 - '<a href="javascript:;">MORE ></a></li>' + 2603 + '<a href="javascript:;" target="_blank">MORE ></a></li>' +
2576 '<li data-page="' + Math.floor(i / showNum) + '">' + item + '</li>'; 2604 '<li data-page="' + Math.floor(i / showNum) + '">' + item + '</li>';
2577 } else { 2605 } else {
2578 out = out + '<li data-page="' + Math.floor(i / showNum) + '">' + item + '</li>'; 2606 out = out + '<li data-page="' + Math.floor(i / showNum) + '">' + item + '</li>';
@@ -2581,7 +2609,7 @@ var $ = require("jquery"), @@ -2581,7 +2609,7 @@ var $ = require("jquery"),
2581 2609
2582 //加上最后一个more, more占的是下一页第一个brand的位置,这里已经循环不到brand,所以加在末尾 2610 //加上最后一个more, more占的是下一页第一个brand的位置,这里已经循环不到brand,所以加在末尾
2583 return out + '<li class="brand-more" data-page="' + Math.floor(i / (showNum + 1)) + '">' + 2611 return out + '<li class="brand-more" data-page="' + Math.floor(i / (showNum + 1)) + '">' +
2584 - '<a href="javascript:;">MORE ></a></li></ul>'; 2612 + '<a href="javascript:;" target="_blank">MORE ></a></li></ul>';
2585 2613
2586 }); 2614 });
2587 }, 2615 },
@@ -2598,7 +2626,7 @@ var $ = require("jquery"), @@ -2598,7 +2626,7 @@ var $ = require("jquery"),
2598 2626
2599 that._createHelper(); 2627 that._createHelper();
2600 brandHtml = '\{{#brandList logoBrand}}' + 2628 brandHtml = '\{{#brandList logoBrand}}' +
2601 - '<a href="\{{href}}"><img class="lazy" data-original="\{{img}}" alt=""></a>' + 2629 + '<a href="\{{href}}" target="_blank"><img class="lazy" data-original="\{{img}}" alt=""></a>' +
2602 '\{{/brandList}}'; 2630 '\{{/brandList}}';
2603 brandTpl = Handlebars.compile(brandHtml); 2631 brandTpl = Handlebars.compile(brandHtml);
2604 that.$element.html(brandTpl(data)); 2632 that.$element.html(brandTpl(data));
@@ -3819,7 +3847,7 @@ module.exports = function(data) { @@ -3819,7 +3847,7 @@ module.exports = function(data) {
3819 load.tpl += ' {{/ tags}}'; 3847 load.tpl += ' {{/ tags}}';
3820 load.tpl += ' </div>'; 3848 load.tpl += ' </div>';
3821 load.tpl += ' <div class="good-detail-img">'; 3849 load.tpl += ' <div class="good-detail-img">';
3822 - load.tpl += ' <a class="good-thumb" href="{{url}}">'; 3850 + load.tpl += ' <a class="good-thumb" href="{{url}}" target= "_blank">';
3823 load.tpl += ' <img class="lazy" data-original="{{thumb}}">'; 3851 load.tpl += ' <img class="lazy" data-original="{{thumb}}">';
3824 load.tpl += ' </a>'; 3852 load.tpl += ' </a>';
3825 load.tpl += ' {{# isFew}}'; 3853 load.tpl += ' {{# isFew}}';
@@ -3831,7 +3859,7 @@ module.exports = function(data) { @@ -3831,7 +3859,7 @@ module.exports = function(data) {
3831 load.tpl += ' {{/if}}'; 3859 load.tpl += ' {{/if}}';
3832 load.tpl += ' </div>'; 3860 load.tpl += ' </div>';
3833 load.tpl += ' <div class="good-detail-text">'; 3861 load.tpl += ' <div class="good-detail-text">';
3834 - load.tpl += ' <a href="{{url}}">{{name}}</a>'; 3862 + load.tpl += ' <a href="{{url}}" target= "_blank">{{name}}</a>';
3835 load.tpl += ' <p class="price">'; 3863 load.tpl += ' <p class="price">';
3836 load.tpl += ' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">'; 3864 load.tpl += ' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">';
3837 load.tpl += ' ¥{{salePrice}}'; 3865 load.tpl += ' ¥{{salePrice}}';
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.