var LanguageId = 0;//璇█鐗堟湰 $(function () { // if (!isPC()) { // if (location.href == "https://www.quanyou.com.cn/ServiceProcess.html?num=2&publictab=1") { // location.href = "https://www.quanyou.com.cn:81/page/ppzx/xffw/index.html?index=3"; // } else { // location.href = "https://www.quanyou.com.cn:81/page/index.html"; // } // } // else { // $("body").show(); // } //鑿滃崟瀹氫綅 // var istab = $("div").is('.public_tab'); // if (istab) { // $(window).scroll(function () { // var scroH = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; // if (scroH >= 890) { // $(".public_tab").css({ "position": "fixed", "top": "0px", "left": "0px", "z-index": "200", "background-color": "#fff" }); // $(".publictab_line").show(); // } // else { // $(".public_tab").css({ "position": "static", "z-index": "0", "background-color": "transparent" }); // $(".publictab_line").hide(); // } // }); // } //getBottomHtml();//缃戠珯搴曢儴 //getRightHtml();//鍙充晶娴姩 //鏄剧ず鑿滃崟 // $(".zmdselect").click(function () { // $("body").append('
'); // $(this).next().fadeIn(500); // }); }); //闅愯棌鑿滃崟 function hideddllayerbox(obj) { // $(".ddllistbox").fadeOut(300); // $(obj).hide(); } //閫変腑鑿滃崟 function ddloptionchek(obj) { // $(obj).parent().children().removeClass("on"); // $(obj).addClass("on").parent().fadeOut(300).prev().attr("value", $(obj).attr("value")).text($(obj).text()); // $(".ddllayerbox").hide(); } /****** 缃戠珯椤堕儴 ******/ function getTopHtml(index) { $(".nav_box .b" + index).addClass("on"); // getplaceholder("txtNavSearch", "璇疯緭鍏ュ叧閿瘝"); // $("#txtNavSearch").keydown(function (e) { // if (e.keyCode == 13) { // searchData(); // } // }); // //宸︿晶 $(".top_div .logo_box .logo_topico .ico").hover(function () { $(this).children(".ico_con").stop(true, false).fadeIn(300); }, function () { $(".top_div .logo_box .logo_topico .ico .ico_con").stop(true, false).fadeOut(300); }); // //椤堕儴鑿滃崟閫夋嫨 var nownav = ""; $(".top_div .nav_box_all .nav_box .box").mouseenter(function () { $(".nav_two_all").stop(true, false).slideUp(300); nownav = $(this).attr("navid"); if (nownav == 2 || nownav == 5) { $("#nav_two" + nownav).slideDown(300); } else { $(".nav_two_all").stop(true, false).slideUp(300); } }); $(".top_div .nav_box_all").mouseleave(function () { $(".nav_two_all").stop(true, false).slideUp(300); }); //浜у搧绫诲埆 // $.zmdAjax("ProductTypeList", "POST", { LanguageType: LanguageId }, false, function (obj) { // if (obj.code == 0) { // if (obj.count > 0) { // var str = ""; // str += '鎵€鏈変骇鍝?/a>'; // $.each(obj.data, function (i, e) { // if (e.IsLink == 1) { // str += '' + e.Name + ''; // } else { // str += '' + e.Name + ''; // } // }); // $("#allProType").append(str); // } // } // else { // getErrorMsg(obj.msg);//閿欒鎻愮ず // } // }, function (obj) { // getErrorMsg(obj.msg);//閿欒鎻愮ず // }); //闂瓟绫诲埆 // $.zmdAjax("QATypeList", "POST", { LanguageType: LanguageId }, false, function (obj) { // if (obj.code == 0) { // if (obj.count > 0) { // var str = ""; // str += '甯歌闂'; // $.each(obj.data, function (i, e) { // if (i == 0) { // $("#bottomwenid").attr("href", "Problem.html?typeid=" + e.Id); // } // str += '' + e.Name + ''; // }); // $("#allWenDaType").append(str); // } // } // else { // getErrorMsg(obj.msg);//閿欒鎻愮ず // } // }, function (obj) { // getErrorMsg(obj.msg);//閿欒鎻愮ず // }); //鍩烘湰閰嶇疆 // $.zmdAjax("WebsiteConfiguration", "POST", { LanguageType: LanguageId }, false, function (obj) { // if (obj.code == 0) { // var ishave = $("a").is('#quanjinglink'); // if (ishave) { // $("#quanjinglink").attr("href", obj.data.PanoramaShow);//棣栭〉鍏ㄦ櫙閾炬帴 // } // var zhiwei = $("a").is('#chakanzhiwei'); // if (zhiwei) { // $("#chakanzhiwei").attr("href", obj.data.ViewPosition);//棣栭〉鍏ㄦ櫙閾炬帴 // } // $(".nav_box .box.b3").attr("href", obj.data.FullhouseCustomization);//鍏ㄥ眿瀹氬埗閾炬帴 // $("#btoCopyright").html(obj.data.Copyright);//鐗堟潈淇℃伅 // $("#qqNumber").attr("href", "http://wpa.b.qq.com/cgi/wpa.php?ln=1&key=XzkzODA3NDgzNV80NzQ5ODhfNDAwODgwMDMxNV8yXw");//鍦ㄧ嚎QQ瀹㈡湇 // } // else { // getErrorMsg(obj.msg);//閿欒鎻愮ず // } // }, function (obj) { // getErrorMsg(obj.msg);//閿欒鎻愮ず // }); } //鍏ㄥ眬鎼滅储 function searchData() { // var str = $("#txtNavSearch").val(); // setCookie("SearchTxt", str); // location.href = "/searchList.html?keywords="+str; } /****** 缃戠珯搴曢儴 ******/ function getBottomHtml() { // var str = ""; // str+='
'; // str+='
'; // str+=''; // str+='
'; // str+='
'; // str+='
'; // str += ''; // str += '
'; // str += ''; // str+='
'; // str+='
鍏虫敞鍏ㄥ弸浜哄姏
浜嗚В鏇村鎷涜仒淇℃伅
'; // str+='
'; // str+='
'; // str+='
'; // str+='
'; // str+='
'; // str+='
'; // str += ''; // //str+='鎶€鏈敮鎸侊細蹇楁槑杈剧鎶€'; // str+='
'; // str += '
'; // $("#bottom_html").html(str); } //鍏抽棴寮瑰眰 function close_anti(obj) { $(obj).parent().remove(); } //闅愯棌寮瑰眰 function close_anti_hide(obj) { $(obj).parent().hide(); } //鍙充晶鑿滃崟 function getRightHtml() { // var str = ""; // str += '
'; // str += '鍦ㄧ嚎瀹㈡湇'; // str += '闄勮繎闂ㄥ簵'; // str += '棰勭害鍏嶈垂璁捐'; // str += '
鎵爜棰嗗彇绂忓埄
'; // str += '
'; // str += '
'; // $("body").append(str); // $(".right_div").css({ "top": ((document.documentElement.clientHeight / 2) - 150) + "px" }); // $(".animatecss1").on('mouseover', function () { // $(this).stop(true, false).animate({ width: '90px' }, 300); // }).on('mouseout', function () { // $(this).stop(true, false).animate({ width: '0px' }, 300); // }); // $(".animatecss2").on('mouseover', function () { // $(this).stop(true, false).animate({ width: '90px' }, 300); // }).on('mouseout', function () { // $(this).stop(true, false).animate({ width: '0px' }, 300); // }); // $(".animatecss3").on('mouseover', function () { // $(this).stop(true, false).animate({ width: '127px' }, 300); // }).on('mouseout', function () { // $(this).stop(true, false).animate({ width: '0px' }, 300); // }); // $(".showyoyodiv").hover(function () { // $(this).stop(true, false).animate({ width: '206px' }, 300); // $("#r_yoyo_code").stop(true, false).animate({ width: '206px' }, 300); // $("#r_yoyo_code .r_box").stop(true, false).animate({ width: '140px' }, 300); // $("#r_yoyo_code .yoyocode").fadeIn(300); // },function () { // $("#r_yoyo_code .yoyocode").fadeOut(0); // $(this).stop(true, false).animate({ width: '66px' }, 300); // $("#r_yoyo_code").stop(true, false).animate({ width: '66px' }, 300); // $("#r_yoyo_code .r_box").stop(true, false).animate({ width: '0px' }, 300); // }); } //杩斿洖椤堕儴 function backTop() { // document.body.scrollTop = document.documentElement.scrollTop = 0; } //寮瑰眰閰嶇疆椤 var boxopacity = "0.6";//鑳屾櫙閫忔槑搴 var boxback = "#fff";//寮规鑳屾櫙鑹 var titback = "#fffaf0";//鏍囬鑳屾櫙鑹 var titcolor = "#999";//鏍囬鏂囧瓧棰滆壊 var txtcolor = "#888";//鎻愮ず鏂囧瓧棰滆壊 var btnback = "#2fc7a0";//鎸夐挳鑳屾櫙鑹 var btncolor = "#fff";//鎸夐挳鏂囧瓧鏅壊 var timer_txt = " 鍚庡叧闂?;//鍊掕鏃舵枃瀛 var timer_num = 0;//鍊掕鏃剁鏁帮紙涓嶅彲淇敼锛 var layer_index = 1;//寮瑰眰绱㈠紩锛堜笉鍙慨鏀癸級 //娉細寮瑰眰鎻愮ず锛坱itle锛氭爣棰橈紱message锛氭彁绀哄唴瀹癸紱confirm锛氫负true鏄剧ず鈥滅‘瀹氣€濆強鈥滃彇娑堚€?涓篺alse鎴栦笉濉彧鏄剧ず鈥滅‘瀹氣€濓紙闈炲繀濉級锛屽綋confirm涓烘暟瀛楁椂寮瑰眰鑷姩鍏抽棴锛屽崟浣嶆绉掞紙蹇呭~锛夛紱callback锛氬洖璋冨嚱鏁帮紙闈炲繀濉級锛涳級 function layer_box(title, message, confirm, callback) { //鍒ゆ柇鏄惁鑷姩娑堝け锛屼负姣鏁版椂鏍规嵁姣鏁拌嚜鍔ㄦ秷澶 if (confirm != true && confirm != false && confirm != undefined) { //澶т簬绛変簬3绉掓樉绀哄€掕鏃 if (confirm >= 3000) { timer_num = parseInt(confirm / 1000); layer_timer(); $("body").append("
" + title + "" + timer_num + "s" + timer_txt + "
" + message + "
"); } else { $("body").append("
" + title + "
" + message + "
"); } //鑷姩鍏抽棴寮瑰眰鎻愮ず setTimeout(function () { $('.layer_remind').remove(); clearTimeout(); if (callback != undefined) { callback(); } }, confirm); } else { //鍒ゆ柇鏄剧ず鈥滅‘瀹氣€濆姞鈥滃彇娑堚€濇垨鑰呭彧鏄剧ず鈥滅‘瀹氣€ if (!confirm || confirm == undefined) { $("body").append("
" + title + "
" + message + "
纭畾
"); } else { $("body").append("
" + title + "
" + message + "
纭畾
鍙栨秷
"); } //鍒ゆ柇鐐瑰嚮纭畾鏃舵槸鍚︽湁鍥炶皟鍑芥暟 $(".btn.callback").click(function () { //绉婚櫎寮瑰眰 $(this).parent().parent().remove(); //鏈夊洖璋冨嚱鏁 if (callback != undefined) { callback();//鎵ц鍥炶皟鍑芥暟 } }); } //璁剧疆寮瑰眰灞呬腑鏄剧ず锛堝吋瀹规祻瑙堝櫒浣庣増鏈級 // $("#layer_index" + layer_index).children(".layer").css({ "margin-left": ((document.documentElement.clientWidth / 2) - ($("#layer_index" + layer_index).children(".layer").width() / 2)) + "px", "margin-top": ((document.documentElement.clientHeight / 2) - ($("#layer_index" + layer_index).children(".layer").height() / 2)) + "px" }); layer_index++; } //鍊掕鏃 function layer_timer() { // setTimeout(function () { // timer_num--; // $(".layer_timer .num").text(timer_num + "s"); // if (timer_num == 1) { // clearTimeout(); // } // else { // layer_timer(); // } // }, // 1000); // clearTimeout(); } //鍔犺浇鍔ㄧ敾閰嶇疆椤 // var loadopacity = "0.3";//鑳屾櫙閫忔槑搴 // var loadback = "0,0,0";//鑳屾櫙鑹 RGB鏍煎紡 // var icocolor = "#eee";//鍔ㄧ敾棰滆壊 //娉細鍔犺浇鍔ㄧ敾锛堝叧闂渶瑕佷娇鐢細layer_load_close()鏂规硶锛涳級 function layer_load() { // $("body").append("
"); } //娉細鍏抽棴鍔犺浇鍔ㄧ敾 function layer_load_close() { //$(".load_box").remove(); } /****** 鑾峰彇鍦板潃鏍忓弬鏁 ******/ function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; } /****** 鍒ゆ柇绉诲姩绔繕鏄疨C绔 ******/ function isPC() { // var userAgentInfo = navigator.userAgent; // var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"); // var flag = true; // for (var v = 0; v < Agents.length; v++) { // if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; } // } // return flag; } /****** 鍐檆ookies ******/ function setCookie(name, value) { // var Days = 30; // var exp = new Date(); // exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000); // document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString(); } /****** 鍙朿ookies ******/ function getCookie(c_name) { // if (document.cookie.length > 0) { // var c_start = document.cookie.indexOf(c_name + "="); // if (c_start != -1) { // c_start = c_start + c_name.length + 1; // var 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 ""; } //鏂囨湰妗唒laceholder function getplaceholder(id,str){ $("#"+id).val(str); $("#"+id).blur(function(){ if($(this).val()==""){ $(this).val(str); } }); $("#"+id).focus(function(){ if($(this).val()==str){ $(this).val(""); } }); }