...
|
...
|
@@ -5,9 +5,9 @@ |
|
|
*/
|
|
|
var $ = require('yoho.jquery');
|
|
|
|
|
|
require('./footer');
|
|
|
|
|
|
var $body = $('body');
|
|
|
|
|
|
require('./footer');
|
|
|
|
|
|
|
|
|
function cookie(name) {
|
...
|
...
|
@@ -96,20 +96,20 @@ function getShoppingKey() { |
|
|
}
|
|
|
|
|
|
//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.14/yas.js', '_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.14/yas.js', '_yas');
|
|
|
|
|
|
(function() {
|
|
|
var uid = getUid();
|
...
|
...
|
@@ -123,6 +123,25 @@ function getShoppingKey() { |
|
|
}
|
|
|
}());
|
|
|
|
|
|
//window.resize在width<1180时适配成990
|
|
|
$(window).on('resize', function() {
|
|
|
var w = $(this).width();
|
|
|
|
|
|
//return top
|
|
|
if (w < 1360) {
|
|
|
$('.return-top').addClass('min');
|
|
|
} else {
|
|
|
$('.return-top').removeClass('min');
|
|
|
}
|
|
|
|
|
|
//body
|
|
|
if (w < 1180) {
|
|
|
$body.addClass('min-screen');
|
|
|
} else {
|
|
|
$body.removeClass('min-screen');
|
|
|
}
|
|
|
}).trigger('resize');
|
|
|
|
|
|
window.cookie = cookie;
|
|
|
|
|
|
window.setCookie = setCookie;
|
...
|
...
|
@@ -132,9 +151,3 @@ window.getUser = getUser; |
|
|
window.getUid = getUid;
|
|
|
|
|
|
window.getShoppingKey = getShoppingKey; |
|
|
if($('.simple-header').hasClass('simple-header')){
|
|
|
require('./simple-header');
|
|
|
}else{
|
|
|
require('./header');
|
|
|
}
|
|
|
|
...
|
...
|
|