$.getScript("//m.pconline.com.cn/extendjs/last_view_product_js.jsp?tagId=_set_last_view_product&setCookie=1&title=HP M12W&href=/shop147032/pid:15321490/product_detail.html&picUrl=//img.pconline.com.cn/images/upload/upc/tx/pconline_product/1711/15/c10/66697974_1510681346931_sn8.jpg&price=799&id=15321490&noPrice="); function doLogonShow(name){ $("#logonShow").empty(); if ($.trim(name)){ $("#logonShow").show(); $("#logonShow").append(name); $("#notLogonShow").hide(); }else{ $("#logonShow").hide(); $("#notLogonShow").show(); } } $(function(){ if (!!document.cookie.match(/(^|; )common_session_id1?=[^;]+/)){ $.getScript("//m.pconline.com.cn/ypcompany/message_login.jsp?op=cl&callback=doLogonShow"); }else{ doLogonShow(''); } $(window).scroll(function(){ var h =document.documentElement.clientHeight; if($(window).scrollTop() == 0){$('#goTop').hide(); } else{$('#goTop').show().stop().animate({top:(h-90)+$(window).scrollTop()});} }); } );