Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy.git into develop
Showing
1 changed file
with
20 additions
and
4 deletions
@@ -319,10 +319,26 @@ function JsonPCallBack(data) { | @@ -319,10 +319,26 @@ function JsonPCallBack(data) { | ||
319 | 319 | ||
320 | if (+data.code === 200) { | 320 | if (+data.code === 200) { |
321 | if (typeof data.data === 'object') { | 321 | if (typeof data.data === 'object') { |
322 | - topbanner = '<a target="_blank" href="' + data.data.url + '" class="page-top-banner"' + | ||
323 | - 'style="height:50px;border:none;background-image:url(' + window.unescape(data.data.src) + ');' + | ||
324 | - 'background-position: center;display:block;background-color:#ff5409;"> </a>'; | ||
325 | - $('body').prepend(topbanner); | 322 | + if(data.data.url !== ''){ |
323 | + topbanner = '<a target="_blank" href="' + data.data.url + '" class="page-top-banner"' + | ||
324 | + 'style="height:36px;border:none;background-image:url(' + window.unescape(data.data.src) + ');' + | ||
325 | + 'background-position: center;display:block;background-size:contain"> </a>'; | ||
326 | + }else{ | ||
327 | + topbanner = '<div class="noticewrapper">' + | ||
328 | + '<div class="noticecontainer">' + | ||
329 | + '<h1 class="noticetitle">关于系统升级的公告</h1>' + | ||
330 | + '<div class="noticecontent">' + | ||
331 | + '<p class="tips">尊敬的顾客:</p>' + | ||
332 | + '<p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p>' + | ||
333 | + '<p class="detail">' + | ||
334 | + '系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常' + | ||
335 | + '</p>' + | ||
336 | + '<p class="detail">使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p>' + | ||
337 | + '</div>' + | ||
338 | + '</div>' + | ||
339 | + '</div>'; | ||
340 | + } | ||
341 | + $('body').prepend(topbanner); | ||
326 | } | 342 | } |
327 | } | 343 | } |
328 | } | 344 | } |
-
Please register or login to post a comment