text: "use strict";$(".include").each(function(){if($(this).attr("file1")){var t=$(this);$(this).load($(this).attr("file1"),function(i){t.after(i).remove()})}}),$(".include").each(function(){if($(this).attr("file2")){var t=$(this);$(this).load($(this).attr("file2"),function(i){t.after(i).remove()})}}),function(r){var i=location.search.substring(1).split("=")[1];console.log(i),i=i||1,r.ajax({url:"http://localhost/jsLwj/src/suning/php/giesid.php",data:{sid:i},dataType:"json"}).done(function(i){console.log(i);var t=r(".sp"),s=r(".sf"),e=r(".bp"),o=r(".bf");t.attr("src",i.url),e.attr("src",i.url),r(".good_right .name").html(i.title),r(".good_right .price span").html(i.price),r(".good_right .sailnumber span").html(i.sailnumber),r(".good_right .sailnumber span").css({color:"black","font-weight":"600","font-size":"20px"});var c=i.picurlist.split(","),n="";r.each(c,function(i,t){n+='<li><img  src="'+t+'"></li>'}),r(".good .list ul").html(n),r(".good .list ul").on("click","li",function(){var i=r(this).find("img").attr("src");t.attr("src",i),e.attr("src",i)}),s.width(o.width()*t.width()/e.width()),s.height(o.height()*t.height()/e.height()),console.log(s.width()),console.log(s.height());var l=e.width()/o.width();r(".picuter").hover(function(){s.css("visibility","visible"),o.css("visibility","visible"),r(this).on("mousemove",function(i){var t=i.pageX-r(".good").offset().left-s.width()/2,o=i.pageY-r(".good").offset().top-s.height()/2;t<0?t=0:t>r(".picuter").width()-s.width()&&(t=r(".picuter").width()-s.width()),o<0?o=0:o>r(".picuter").height()-s.height()&&(o=r(".picuter").height()-s.height()),s.css({left:t,top:o}),e.css({left:-t*l,top:-o*l})})},function(){s.css("visibility","hidden"),o.css("visibility","hidden")})});var t=6,o=r("#left"),s=r("#right");r(".ullist .list");s.on("click",function(){var i=r(".ullist .list li");i.length>t&&(t++,o.css("color","#333"),i.length==t&&s.css("color","#fff"),r(".list ul").animate({left:-i.eq(0).outerWidth(!0)*(t-6)}))}),o.on("click",function(){var i=r(".ullist .list li");6<t&&(t--,s.css("color","#333"),6==t&&o.css("color","#fff"),r(".list ul").animate({left:-i.eq(0).outerWidth(!0)*(t-6)}))});var e=[],c=[];function n(){c=jscookie.get("cookiesid")&&jscookie.get("cookienum")?(e=jscookie.get("cookiesid").split(","),jscookie.get("cookienum").split(",")):(e=[],[])}r(".btn a").on("click",function(){n();var i=location.search.substring(1).split("=")[1];if(-1!=r.inArray(i,e)){var t=parseInt(c[r.inArray(i,e)])+parseInt(r(".btn input").val());c[r.inArray(i,e)]=t,jscookie.add("cookienum",c,10)}else e.push(i),jscookie.add("cookiesid",e,10),c.push(r(".btn input").val()),jscookie.add("cookienum",c,10)}),r(".buy a").on("click",function(){n();var i=location.search.substring(1).split("=")[1];if(-1!=r.inArray(i,e)){var t=parseInt(c[r.inArray(i,e)]);c[r.inArray(i,e)]=t,jscookie.add("cookienum",c,10)}else e.push(i),jscookie.add("cookiesid",e,10),c.push(r(".btn input").val()),jscookie.add("cookienum",c,10)})}(jQuery);