...
|
...
|
@@ -106,6 +106,34 @@ function getShoppingKey() { |
|
|
return JSON.parse(c).k;
|
|
|
}
|
|
|
|
|
|
//YAS统计代码
|
|
|
(function(w, d, s, j, f) {
|
|
|
var a = d.createElement(s);
|
|
|
var m = d.getElementsByTagName(s)[0];
|
|
|
|
|
|
w.YohoAcquisitionObject = f;
|
|
|
|
|
|
w[f] = function() {
|
|
|
w[f].p = arguments;
|
|
|
};
|
|
|
|
|
|
a.async = 1;
|
|
|
a.src = j;
|
|
|
m.parentNode.insertBefore(a, m);
|
|
|
})(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.13.6.3/yas.js', '_yas');
|
|
|
|
|
|
(function() {
|
|
|
var uid = getUid();
|
|
|
|
|
|
uid = uid === 0 ? '' : uid;
|
|
|
|
|
|
window._ozuid = uid;//暴露ozuid
|
|
|
|
|
|
if (window._yas) {
|
|
|
window._yas(1 * new Date(), '1.0.13.6.3', 'yohobuy_web', uid, '', '');
|
|
|
}
|
|
|
}());
|
|
|
|
|
|
window.cookie = cookie;
|
|
|
|
|
|
window.setCookie = setCookie;
|
...
|
...
|
@@ -2572,7 +2600,7 @@ var $ = require("jquery"), |
|
|
|
|
|
//插入more的位置,more占的是下一页第一个brand的位置,所以page是i/17
|
|
|
out = out + '<li class="brand-more" data-page="' + Math.floor(i / (showNum + 1)) + '">' +
|
|
|
'<a href="javascript:;">MORE ></a></li>' +
|
|
|
'<a href="javascript:;" target="_blank">MORE ></a></li>' +
|
|
|
'<li data-page="' + Math.floor(i / showNum) + '">' + item + '</li>';
|
|
|
} else {
|
|
|
out = out + '<li data-page="' + Math.floor(i / showNum) + '">' + item + '</li>';
|
...
|
...
|
@@ -2581,7 +2609,7 @@ var $ = require("jquery"), |
|
|
|
|
|
//加上最后一个more, more占的是下一页第一个brand的位置,这里已经循环不到brand,所以加在末尾
|
|
|
return out + '<li class="brand-more" data-page="' + Math.floor(i / (showNum + 1)) + '">' +
|
|
|
'<a href="javascript:;">MORE ></a></li></ul>';
|
|
|
'<a href="javascript:;" target="_blank">MORE ></a></li></ul>';
|
|
|
|
|
|
});
|
|
|
},
|
...
|
...
|
@@ -2598,7 +2626,7 @@ var $ = require("jquery"), |
|
|
|
|
|
that._createHelper();
|
|
|
brandHtml = '\{{#brandList logoBrand}}' +
|
|
|
'<a href="\{{href}}"><img class="lazy" data-original="\{{img}}" alt=""></a>' +
|
|
|
'<a href="\{{href}}" target="_blank"><img class="lazy" data-original="\{{img}}" alt=""></a>' +
|
|
|
'\{{/brandList}}';
|
|
|
brandTpl = Handlebars.compile(brandHtml);
|
|
|
that.$element.html(brandTpl(data));
|
...
|
...
|
@@ -3819,7 +3847,7 @@ module.exports = function(data) { |
|
|
load.tpl += ' {{/ tags}}';
|
|
|
load.tpl += ' </div>';
|
|
|
load.tpl += ' <div class="good-detail-img">';
|
|
|
load.tpl += ' <a class="good-thumb" href="{{url}}">';
|
|
|
load.tpl += ' <a class="good-thumb" href="{{url}}" target= "_blank">';
|
|
|
load.tpl += ' <img class="lazy" data-original="{{thumb}}">';
|
|
|
load.tpl += ' </a>';
|
|
|
load.tpl += ' {{# isFew}}';
|
...
|
...
|
@@ -3831,7 +3859,7 @@ module.exports = function(data) { |
|
|
load.tpl += ' {{/if}}';
|
|
|
load.tpl += ' </div>';
|
|
|
load.tpl += ' <div class="good-detail-text">';
|
|
|
load.tpl += ' <a href="{{url}}">{{name}}</a>';
|
|
|
load.tpl += ' <a href="{{url}}" target= "_blank">{{name}}</a>';
|
|
|
load.tpl += ' <p class="price">';
|
|
|
load.tpl += ' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">';
|
|
|
load.tpl += ' ¥{{salePrice}}';
|
...
|
...
|
|