<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">//杩欓噷鏄弸浠峰晢鍩庣郴缁熷叏灞€JS锛�
//涓嶅彈妯℃澘褰卞搷锛�
//灏辨槸浠讳綍妯℃澘閮藉彲浠ユ垨鍙兘璋冪敤鐨勪竴浜涢€氱敤鏍峰紡锛屽啓鍦ㄨ繖閲�
//www.yj99.cn锛岃鍕夸慨鏀�

//鎵嬫満鐗堝垽鏂�
function is_mobile() {
  var regex_match = /(nokia|iphone|android|motorola|^mot-|softbank|foma|docomo|kddi|up.browser|up.link|htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte-|longcos|pantech|gionee|^sie-|portalmmm|jigs browser|hiptop|^benq|haier|^lct|operas*mobi|opera*mini|320x320|240x320|176x220)/i;
  var u = navigator.userAgent;
  if (null == u) {
   return true;
  }
  var result = regex_match.exec(u);
  if (null == result) {
   return false
  } else {
   return true
  }
}

//澶撮儴鐧诲綍楠岃瘉
function userCheckses(){
$.get(document.getElementById("webhttp").innerHTML+"tem/sesCheck.php",{},function(result){
 if(result=="0"){
 document.getElementById("notlogin").style.display="";
 document.getElementById("yeslogin").style.display="none";
 return false;
 }else{
 r=result.split(" ");
 document.getElementById("yeslogin").style.display="";
 document.getElementById("notlogin").style.display="none";
 document.getElementById("yesuid").innerHTML=r[0];
 
 if(document.getElementById("dontqd")){
  if(r[1]=="yes"){document.getElementById("dontqd").style.display="";document.getElementById("needqd").style.display="none";}
  else{document.getElementById("dontqd").style.display="none";document.getElementById("needqd").style.display="";}
 }
 
 if(document.getElementById("topusermoney")){document.getElementById("topusermoney").innerHTML=r[2];}
 if(document.getElementById("topusertx")){document.getElementById("topusertx").src=r[3];}
 if(document.getElementById("topuserid")){document.getElementById("topuserid").innerHTML=r[4];}
 if(document.getElementById("topuserjf")){document.getElementById("topuserjf").innerHTML=r[5];}
 
 return false;
 }
});
}

function jsxiaoshudian(num1){
  a=num1.toFixed(3);
  a=a.substr(0, a.length - 1);
  a=parseFloat(a);
  return a;
}

//寮瑰嚭鍏ㄧ珯缁熶竴鑱旂郴
function glotangkf(){
layer.open({
  type: 2,
  shadeClose :true,
  area: ['320px', '300px'],
  title:["鑱旂郴鏂瑰紡","text-align:left"],
  content:[document.getElementById("webhttp").innerHTML+'tem/glotangkf.php?', 'no'] 
});
}

//寮瑰嚭QQ鑱旂郴
function opentangqq(x,y,z){
layer.open({
  type: 2,
  shadeClose :true,
  area: ['320px', '170px'],
  title:["鑱旂郴鏂瑰紡","text-align:left"],
  content:[document.getElementById("webhttp").innerHTML+'tem/tangqq.php?qq='+x+'&amp;wx='+y+'&amp;id='+z, 'no'] 
});
}

//寮瑰嚭淇敼鏈嶅姟甯傚満闄勫姞璐圭敤鑱旂郴
function servermoney2tang(x){
layer.open({
  type: 2,
  shadeClose :true,
  area: ['308px', '145px'],
  title:["淇敼闄勫姞璐圭敤","text-align:left"],
  skin: 'layui-layer-rim', //鍔犱笂杈规
  content:[document.getElementById("webhttp").innerHTML+'tem/servermoney2.php?id='+x, 'no'] 
});
}

//鐩稿姞
function addNum(num1,num2){ //閬垮厤鍑虹幇灏忔暟鐐瑰浣嶇殑鎯呭喌
x=parseFloat(num1)+parseFloat(num2);
return jsxiaoshudian(x);
}

//鐩镐箻
function accMul(arg1,arg2){
x=parseFloat(arg1)*parseFloat(arg2);
return jsxiaoshudian(x);
}

//鎻愪氦
function tjwait(){
document.getElementById("tjbtn").style.display="none";
document.getElementById("tjing").style.display="";	
}

//閭鍒ゆ柇
function isEmail(str){//鍒ゆ柇閭
var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
return reg.test(str);
}

//鎵嬫満鍒ゆ柇
function isMot(str){
 var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(18[0-9]{1})|(19[0-9]{1}))+\d{8})$/; 
 return myreg.test(str);
}

//鍥炲埌椤堕儴
function gotoTop(acceleration,stime){acceleration=acceleration||0.1;stime=stime||10;var x1=0;var y1=0;var x2=0;var y2=0;var x3=0;var y3=0;if(document.documentElement){x1=document.documentElement.scrollLeft||0;y1=document.documentElement.scrollTop||0;}
if(document.body){x2=document.body.scrollLeft||0;y2=document.body.scrollTop||0;}
var x3=window.scrollX||0;var y3=window.scrollY||0;var x=Math.max(x1,Math.max(x2,x3));var y=Math.max(y1,Math.max(y2,y3));var speeding=1+ acceleration;window.scrollTo(Math.floor(x/speeding),Math.floor(y/speeding));if(x&gt;0||y&gt;0){var run="gotoTop("+ acceleration+", "+ stime+")";window.setTimeout(run,stime);}}

//璺宠浆
function gourl(x){
 location.href=x;
}

//鍏ㄩ€�
function xuan(){
 c2=document.getElementsByName("C2");
 c=document.getElementsByName("C1");
 if(c2[0].checked){
 for(i=0;i&lt;c.length;i++){
 c[i].checked="checked";
 }
 }else{
 for(i=0;i&lt;c.length;i++){
 c[i].checked=false;
 }
 }
}
function xuan1(){
 c21=document.getElementsByName("C21");
 c11=document.getElementsByName("C11");
 if(c21[0].checked){
 for(i=0;i&lt;c11.length;i++){
 c11[i].checked="checked";
 }
 }else{
 for(i=0;i&lt;c11.length;i++){
 c11[i].checked=false;
 }
 }
}

function textinto(x,y){
document.getElementById(x).value=y;	
}


//寮瑰嚭鐧诲綍绐楀彛
function tclogin(){
layer.open({
  type: 2,
  area: ['413px', '410px'],
  title:false,
  shadeClose: true,
  content:[document.getElementById("webhttp").innerHTML+'/tem/tclogin.php', 'no'] 
});
}

//寮瑰嚭涓炬姤绐楀彛
function jbtang(x,y){
layer.open({
  type: 2,
  area: ['650px', '495px'],
  title:["涓炬姤绐楀彛","text-align:left"],
  skin: 'layui-layer-rim', //鍔犱笂杈规
  content:['../tem/jubao.php?admin='+x+"&amp;id="+y, 'no'] 
});
}

function objdis(x,y){
document.getElementById(x).style.display=y;
}

function objhtml(x,y){
document.getElementById(x).innerHTML=y;
}

//鍟嗗搧鏀惰棌
function profavInto(x,y){
$.get(document.getElementById("webhttp").innerHTML+"tem/favproInto.php",{bh:x},function(result){
 if(result=="err1"){tclogin();return false;}
 else if(result=="err2"){alert("浜瞺涓嶈兘鏀惰棌鑷繁鐨勫晢鍝佸摝");return false;}
 else if(result=="ok"){
 document.getElementById("favpyes"+y).style.display="";
 document.getElementById("favpno"+y).style.display="none";
 }else{alert("鏈煡閿欒锛岃鍒锋柊閲嶈瘯");return false;}
});
}

//鍔犲叆璐墿杞�
function carInto(x,y){
if(document.getElementById("tcnum")){if(taocanid==0){alert("璇峰厛閫夋嫨濂楅");document.getElementById("utc1").className="utc utc1";return false;}}
if(document.getElementById("tc2div"+taocanid)){if(taocanid2==0){alert("璇峰厛閫夋嫨濂楅");document.getElementById("tc2div"+taocanid).className="utc utc1";return false;}taocanid=taocanid2;}
$.get(document.getElementById("webhttp").innerHTML+"tem/carInto.php",{bh:x,tcid:taocanid,kcnum:document.getElementById("tkcnum").value},function(result){
 if(result=="err1"){tclogin();return false;}
 else if(result=="err2"){alert("浜瞺涓嶈兘灏嗚嚜宸辩殑鍟嗗搧鏀惧叆璐墿杞﹀摝");return false;}
 else if(result=="ok"){
 layer.msg('鎴愬姛鍔犲埌璐墿杞�');
 //document.getElementById("carpyes"+y).style.display="";
 //document.getElementById("carpno"+y).style.display="none";
 }else{alert("鏈煡閿欒锛岃鍒锋柊閲嶈瘯");return false;}
});
}

//濂楅閫夋嫨
var taocanid=0;
var taocanid2=0;
var pretc1id=0;
function taocanonc(a,b,c,d,e,f,g,h){
 document.getElementById("utc1").className="utc";
 document.getElementById("nowkcnum").innerHTML=g;
 taocanid=e;
 taocanid2=0;
 if(pretc1id!=0){if(document.getElementById("tc2div"+pretc1id)){document.getElementById("tc2div"+pretc1id).style.display="none";}}
 if(document.getElementById("tc2div"+e)){document.getElementById("tc2div"+e).style.display="";}
 pretc1id=e;
 tc2re(taocanid);
 document.getElementById("nowmoney").innerHTML=c;
 document.getElementById("nowmoneyY").innerHTML=c;
 document.getElementById("yuanjia").innerHTML="锟�"+d+"鍏�";
 for(i=1;i&lt;=b;i++){
 document.getElementById("taocana"+i).className="";
 }
 document.getElementById("taocana"+a).className="a1";
 document.getElementById("zhekou").innerHTML=f+"鎶�";
 if(h!=""){document.getElementById("tupiana").innerHTML="&lt;img src='"+h+"' /&gt;";}
}
function taocan2onc(a,b,c,d,e,f,g,h){
 if(taocanid==0){alert("璇峰厛閫夋嫨绗竴绾у椁愬唴瀹�");document.getElementById("utc1").className="utc utc1";return false;}
 document.getElementById("tc2div"+taocanid).className="utc";
 document.getElementById("nowkcnum").innerHTML=g;
 taocanid2=e;
 tc2re(taocanid);
 document.getElementById("nowmoney").innerHTML=c;
 document.getElementById("nowmoneyY").innerHTML=c;
 document.getElementById("yuanjia").innerHTML="锟�"+d+"鍏�";
 document.getElementById("taocan2a"+taocanid+"_"+a).className="a1";
 document.getElementById("zhekou").innerHTML=f+"鎶�";
 if(h!=""){document.getElementById("tupiana").innerHTML="&lt;img src='"+h+"' /&gt;";}
}
function tc2re(x){
if(document.getElementById("tc2num"+x)){
document.getElementById("tc2div"+x).className="utc";
a=parseInt(document.getElementById("tc2num"+x).innerHTML);
for(i=1;i&lt;=a;i++){
document.getElementById("taocan2a"+x+"_"+i).className="";
}
}
}

//绔嬪嵆璐拱
function buyInto(x){
if(document.getElementById("tcnum")){if(taocanid==0){alert("璇峰厛閫夋嫨濂楅");document.getElementById("utc1").className="utc utc1";return false;}}
if(document.getElementById("tc2div"+taocanid)){if(taocanid2==0){alert("璇峰厛閫夋嫨濂楅");document.getElementById("tc2div"+taocanid).className="utc utc1";return false;}taocanid=taocanid2;}
$.get(document.getElementById("webhttp").innerHTML+"tem/buyInto.php",{bh:x,tcid:taocanid,kcnum:document.getElementById("tkcnum").value},function(result){
 if(result=="err1"){tclogin();return false;}
 else if(result=="err2"){alert("浜瞺涓嶈兘璐拱鑷繁鐨勫晢鍝佸摝");return false;}
 else if(result=="ok"){location.href="../user/car.php";}else{alert("鏈煡閿欒锛岃鍒锋柊閲嶈瘯");return false;}
});
}

//搴楅摵鏀惰棌
function shopfavInto(x,y){
$.get(document.getElementById("webhttp").innerHTML+"tem/favshopInto.php",{id:x},function(result){
 if(result=="err1"){tclogin();return false;}
 else if(result=="err2"){alert("浜瞺涓嶈兘鏀惰棌鑷繁鐨勫簵閾哄摝");return false;}
 else if(result=="ok"){
 document.getElementById("favsyes"+y).style.display="";
 document.getElementById("favsno"+y).style.display="none";
 }else{alert("鏈煡閿欒锛岃鍒锋柊閲嶈瘯");return false;}
});
}

function wendaonc(x){
layer.open({
  type: 2,
  area: ['413px', '410px'],
  title:false,
  skin: 'layui-layer-rim', //鍔犱笂杈规
  content:[document.getElementById("webhttp").innerHTML+'tem/wenda.php?id='+x, 'no'] 
});
}

function setIndexCookie() {
$.get(document.getElementById("webhttp").innerHTML+"tem/indexcookie.php",{admin:2},function(result){
});
};

function getIndexCookie () {
$.get(document.getElementById("webhttp").innerHTML+"tem/indexcookie.php",{admin:1},function(result){
 if(result=="no"){
  layer.open({
    type:1,
    title: false,
    closeBtn: 1,
    area: ['900px','465px'],
    shadeClose: false,
    content: $('.indexYJTS')
  });
  setIndexCookie();
 }
});
}


function Setcookie(name, value)
{ 
 var expdate = new Date();   //鍒濆鍖栨椂闂�
 expdate.setTime(expdate.getTime() + 30 * 60 * 1000);   //鏃堕棿
 document.cookie = name+"="+value+";expires="+expdate.toGMTString()+";path=/";
}
function getCookie(c_name)
{
if (document.cookie.length&gt;0)
  {
  c_start=document.cookie.indexOf(c_name + "=")
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1 
    c_end=document.cookie.indexOf(";",c_start)
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end))
    } 
  }
return ""
}

//寮瑰嚭鍟嗗搧娴忚璁板綍
function prohistang(){
layer.open({
  type: 2,
  area: ['800px', '415px'],
  title:["鍟嗗搧娴忚璁板綍","text-align:left"],
  skin: 'layui-layer-rim', //鍔犱笂杈规
  shadeClose: true,
  content:[document.getElementById("webhttp").innerHTML+'tem/prohis.php', 'no'] 
});
}


//浠诲姟鎺ユ墜
function renwujietang(x){
$.get(document.getElementById("webhttp").innerHTML+"tem/sesCheck.php",{},function(result){
 if(result=="0"){tclogin();return false;}
 else{
	 
  layer.open({
   type: 2,
   area: ['700px', '475px'],
   title:["鎺ユ墜浠诲姟","text-align:left"],
   skin: 'layui-layer-rim', //鍔犱笂杈规
   shadeClose: false,
   content:[document.getElementById("webhttp").innerHTML+'renwu/jieshou.php?id='+x, 'no'] 
  });
  
 }
});
}

function glotips(x,y){
layer.tips("&lt;span style='color:#8c3901;'&gt;"+y+"&lt;/span&gt;","#"+x,{tips:[1,"#fef9d9"]});
document.getElementById(x).focus();
}

//绛惧埌寮�
function gloqiandao(){
$.get(document.getElementById("webhttp").innerHTML+"tem/sesCheck.php",{},function(result){
 if(result=="0"){tclogin();return false;}
 else{

  $.get(document.getElementById("webhttp").innerHTML+"user/qiandao.php",{},function(result1){
   document.getElementById("needqd").style.display="none";
   document.getElementById("dontqd").style.display="";
   a=result1.split("yj99");
   if(a[1]=="ok"){layer.alert('浠婃棩宸茬鍒�', {icon: 6});}
   else if(a[1]=="suc"){
    layer.alert("&lt;strong&gt;绛惧埌鎴愬姛锛屾偍鑾峰緱&lt;span class='red'&gt;"+a[2]+"&lt;/span&gt;绉垎&lt;/strong&gt;&lt;br&gt;宸茶繛缁鍒�&lt;span class='red'&gt;"+a[3]+"&lt;/span&gt;澶╋紝鏄庡ぉ绛惧埌鍙幏&lt;span class='blue'&gt;"+a[4]+"&lt;/span&gt;绉垎", {icon: 6});
   }
  });  
  
 }
});
}
</pre></body></html>