...
|
...
|
@@ -19,7 +19,8 @@ define("js/common", ["jquery","handlebars","source-map","index"], function(requi |
|
|
var $ = require("jquery");
|
|
|
|
|
|
require("js/footer");
|
|
|
require("js/simple-header");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function cookie(name) {
|
...
|
...
|
@@ -144,8 +145,12 @@ window.getUser = getUser; |
|
|
window.getUid = getUid;
|
|
|
|
|
|
window.getShoppingKey = getShoppingKey;
|
|
|
if($('.simple-header').hasClass('simple-header')){
|
|
|
require("js/simple-header");
|
|
|
}else{
|
|
|
require("js/header");
|
|
|
}
|
|
|
|
|
|
require("js/header");
|
|
|
|
|
|
});
|
|
|
define("js/footer", ["jquery"], function(require, exports, module){
|
...
|
...
|
@@ -735,26 +740,26 @@ function JsonPCallBack(data) { |
|
|
|
|
|
if (+data.code === 200) {
|
|
|
if (typeof data.data === 'object') {
|
|
|
if(data.data.url !== ''){
|
|
|
topbanner = '<a target="_blank" href="' + data.data.url + '" class="page-top-banner"' +
|
|
|
'style="height:36px;border:none;background-image:url(' + window.unescape(data.data.src) + ');' +
|
|
|
'background-position: center;display:block;background-size:contain"> </a>';
|
|
|
}else{
|
|
|
topbanner = '<div class="noticewrapper">' +
|
|
|
'<div class="noticecontainer">' +
|
|
|
'<h1 class="noticetitle">关于系统升级的公告</h1>' +
|
|
|
'<div class="noticecontent">' +
|
|
|
'<p class="tips">尊敬的顾客:</p>' +
|
|
|
'<p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p>' +
|
|
|
'<p class="detail">' +
|
|
|
'系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常' +
|
|
|
'</p>' +
|
|
|
'<p class="detail">使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p>' +
|
|
|
'</div>' +
|
|
|
'</div>' +
|
|
|
'</div>';
|
|
|
}
|
|
|
$('body').prepend(topbanner);
|
|
|
if (data.data.url !== '') {
|
|
|
topbanner = '<a target="_blank" href="' + data.data.url + '" class="page-top-banner"' +
|
|
|
'style="height:36px;border:none;background-image:url(' + window.unescape(data.data.src) + ');' +
|
|
|
'background-position: center;display:block;background-size:contain"> </a>';
|
|
|
} else {
|
|
|
topbanner = '<div class="noticewrapper">' +
|
|
|
'<div class="noticecontainer">' +
|
|
|
'<h1 class="noticetitle">关于系统升级的公告</h1>' +
|
|
|
'<div class="noticecontent">' +
|
|
|
'<p class="tips">尊敬的顾客:</p>' +
|
|
|
'<p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p>' +
|
|
|
'<p class="detail">' +
|
|
|
'系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常' +
|
|
|
'</p>' +
|
|
|
'<p class="detail">使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p>' +
|
|
|
'</div>' +
|
|
|
'</div>' +
|
|
|
'</div>';
|
|
|
}
|
|
|
$('body').prepend(topbanner);
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -1189,6 +1194,7 @@ function actionTipPic() { |
|
|
var $img = '';
|
|
|
var $title = '';
|
|
|
var $link = '';
|
|
|
var logolink = '';
|
|
|
|
|
|
$(document).on('mouseenter', '.sub-nav-item', function() {
|
|
|
$contentcode = $(this).find('.showdetail').attr('data-code');
|
...
|
...
|
@@ -1206,6 +1212,8 @@ function actionTipPic() { |
|
|
}
|
|
|
}
|
|
|
});
|
|
|
logolink = $('.first-nav-list .cur').find('a').attr('href');
|
|
|
$('.main-link').attr('href', link);
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|