var ez_professional=[960,660]; var ez_prohk=[980,980]; var ez_prombl=[960,660]; var ez_promblhk=[980,980]; var ez_shop=[1780,1780]; var ez_shophk=[1500,1500]; var ez_shopmbl=[1780,1780]; var ez_shopmblhk=[1500,1500]; var ez_ultihk=[1200,1200]; var ez_ultimate=[1260,1260]; var ez_ultimbl=[1260,1260]; var ez_ultimblhk=[1200,1200]; var ez_weishop=[1980,1980]; $(function(){ $("select[name='room']").each(function(){ var obj_=$(this) var xh=obj_.attr("data-xh"); var lx=obj_.attr("data-lx"); GetWebsitesYears(xh,lx,obj_.val(),5) }) $("select[name='room']").change(function(){ var obj_=$(this) var xh=obj_.attr("data-xh"); var lx=obj_.attr("data-lx"); GetWebsitesYears(xh,lx,obj_.val(),5) }) $("#J_buyTplBtn,.J_buy-btn,.J-config-btn").click(function(){ showbuy() }) }) function GetWebsitesYears(xh,bb,jf,num) { var p_=""; if(xh!="mobile") { var obj_=$('#price_'+bb+"_"+xh); } else{ var obj_=$('#price_'+bb); } obj_.empty(); if(xh=="mobile" && bb=="pro" && jf!="cn") { p_=ez_promblhk; }else if(xh=="mobile" && bb=="pro" ) { p_=ez_prombl; }else if(xh=="mobile" && bb=="ulti" && jf!="cn") { p_=ez_ultimblhk; }else if(xh=="mobile" && bb=="ulti" ) { p_=ez_ultimbl; }else if(xh=="mobile" && bb=="shop" && jf!="cn") { p_=ez_shopmblhk; }else if(xh=="mobile" && bb=="shop" ) { p_=ez_shopmbl; }else if(xh=="pc" && bb=="shop" && jf!="cn") { p_=ez_shophk; }else if(xh=="pc" && bb=="shop" ) { p_=ez_shop; }else if(xh=="pc" && bb=="pro" && jf!="cn") { p_=ez_prohk; }else if(xh=="pc" && bb=="pro" ) { p_=ez_professional; }else if(xh=="pc" && bb=="ulti" && jf!="cn") { p_=ez_ultihk; }else if(xh=="pc" && bb=="ulti" ) { p_=ez_ultimate; }else if(xh=="all" && bb=="shop" && jf!="cn") { var p=ez_shopmblhk[0]+ez_shopmblhk[0]*0.5; var p1=ez_shopmblhk[1]+ez_shopmblhk[1]*0.5; p_=[p,p1]; }else if(xh=="all" && bb=="shop" ) { var p=ez_shop[0]+ez_shopmbl[0]*0.5; var p1=ez_shop[1]+ez_shopmbl[1]*0.5; p_=[p,p1]; }else if(xh=="all" && bb=="pro" && jf!="cn") { var p=ez_prohk[0]+ez_promblhk[0]*0.5; var p1=ez_prohk[1]+ez_promblhk[1]*0.5; p_=[p,p1]; }else if(xh=="all" && bb=="pro" ) { var p=ez_professional[0]+ez_prombl[0]*0.5; var p1=ez_professional[1]+ez_prombl[1]*0.5; p_=[p,p1]; }else if(xh=="all" && bb=="ulti" && jf!="cn") { var p=ez_ultihk[0]+ez_ultimblhk[0]*0.5; var p1=ez_ultihk[1]+ez_ultimblhk[1]*0.5; p_=[p,p1]; }else if(xh=="all" && bb=="ulti" ) { var p=ez_ultimate[0]+ez_ultimbl[0]*0.5; var p1=ez_ultimate[1]+ez_ultimbl[1]*0.5; p_=[p,p1]; }else if(xh=="mobile" && bb=="weishop" ) { p_=ez_weishop; } if(p_.length==2) { for(var i=0;i'+(p_[0]*(i+1))+'元/'+(i+1)+'年') } } } function showbuy() { var qqstr="442956988,2920105656" msg="
请联系在线客服购买
" if(qqstr!="") { t_=qqstr.split(",") for(var i=0;i点击发送消息给对方与客服对话

' } } msg+='
' $.dialog({"title":"联系在线客服购买","content":msg}) }