锘?(function () { //defbanner var _banner_img_width = $("#defbanner .swiper-slide a img").eq(0).attr("data-width"); var _banner_img_height = $("#defbanner .swiper-slide a img").eq(0).attr("data-height"); var _scale = _banner_img_height / _banner_img_width; var w_banner = $("#defbanner").width(); Banner_show(w_banner, _scale, _b_device); //褰撶獥鍙e彂鐢熸敼鍙樻椂banner鍙樺寲 $(window).resize(function () { if (_b_device == "www") { w_w = $(window).width();//閲嶇疆w_w _banner_img_width = $("#defbanner .swiper-slide a img").eq(0).attr("data-width"); _banner_img_height = $("#defbanner .swiper-slide a img").eq(0).attr("data-height"); _scale = _banner_img_height / _banner_img_width; var w_banner = $("#defbanner").width(); Banner_show(w_banner, _scale, _b_device); } }); ////baidu tongji //var _hmt = _hmt || []; //(function() { // var hm = document.createElement("script"); // hm.src = "https://hm.baidu.com/hm.js?524412c784ccc71efe2c04bd52e42d46"; // var s = document.getElementsByTagName("script")[0]; // s.parentNode.insertBefore(hm, s); //})(); //绂佹澶嶅埗 //document.oncontextmenu = new Function("event.returnValue=false"); //document.onselectstart = new Function("event.returnValue=false"); //鏃堕棿鏍煎紡鍖 Time_fmart(); //wow new WOW().init({}); //leftmenu 鎵╁睍 $('#jj_left_menu .box_02 ul li[data-type="contmenu"]').each(function (_ind) { var _chkul = $(this).find("ul").text(); if (_chkul.length > 0) { //$(this).append("+"); $(this).find("ul").addClass("uhide"); } }); $("#jj_left_menu .box_02 ul li i.close").each(function (_ind) { $(this).toggle(function () { $(this).parent().find("ul").removeClass("uhide").addClass("ushow"); $(this).removeClass("close").addClass("open").html("-"); }, function () { $(this).parent().find("ul").removeClass("ushow").addClass("uhide"); $(this).removeClass("open").addClass("close").html("+"); }); }); //news $(".showbox303021").each(function (_ind) { var _imgbg = $(this).eq(_ind).attr("data-thmurl"); if (_imgbg != undefined) { var _imgbg_css = "url(" + _imgbg + ") no-repeat center center 100% 100%"; //console.log(_imgbg_css); $(".showbox303021").eq(_ind).css({ "background": _imgbg_css }); } }); $(".showbox30403 img").each(function (_ind) { var _imgurl = $(this).attr("src"); console.log(_imgurl); if (_imgurl.indexOf("nopic")>0) { $(".showbox30403 .showbox_pic").eq(_ind).css({"display":"none"}); $(".showbox30403 .showbox_tit").eq(_ind).css({"width":"82.5%","padding-left":"0","float":"left"}); } }); //faq $(".showbox30600 .panel-heading").each(function (_ind) { $(this).toggle(function () { $(".defbg_faq2").addClass("cur"); $(".panel-heading").eq(_ind).addClass("cur"); $(".panel-heading").eq(_ind).find("i").removeClass("icon-arrow-down").addClass("icon-arrow-up"); $(".panel-collapse").eq(_ind).slideDown(); }, function () { $(".defbg_faq2").removeClass("cur"); $(".panel-heading").eq(_ind).removeClass("cur"); $(".panel-heading").eq(_ind).find("i").removeClass("icon-arrow-up").addClass("icon-arrow-down"); $(".panel-collapse").eq(_ind).slideUp(); }); }); //妗堜緥灞曠ず $(".defwork_parm").each(function (_ind) { var _parmtxt = $(this).text(); //var _kehu = $(this).find(".parameter_con").eq(0).text(); var _item = $(this).find(".parameter_con").eq(1).text(); if (_item.length == 0) { _item = "寰呮洿鏂?.."; } $(".showbox303032 .showbox_tit p span").eq(_ind).html(_item); }); //涓嬭浇涓績 $(".down_con").click(function () { var _durl = $(this).attr("data-url"); window.open(_durl, "_blank"); }); /*鍝佺墝瀹㈡埛*/ var _num_team = _b_device == "www" ? 6 : 3; var swiper_team = new Swiper('.defteam_wrap', { slidesPerView: _num_team, slidesPerGroup: _num_team, spaceBetween: 1, slidesPerColumn: 3, //resizeReInit: true, observer: true, observeParents: true, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, breakpoints: { 1024: { slidesPerView: 6, slidesPerGroup: 6, slidesPerColumn: 3, }, 768: { slidesPerView: 3, slidesPerGroup: 3, slidesPerColumn: 2, }, 640: { slidesPerView: 2, slidesPerGroup: 2, slidesPerColumn: 2, }, 460: { slidesPerView: 1, slidesPerGroup: 1, slidesPerColumn: 1, } } }); /*showlist_index_con*/ $(".showlist_index_con").each(function () { var _valhtml = $(this).text().trim(); if (_valhtml =="") { $(this).parents("ul").remove(); } }); //parameter var _parmlilng = 0; try { _parmlilng=$(".parameter_ul li").length; if(_parmlilng>8) { $(".parameter_ul li").addClass("on"); } } catch { } $(".parameter_ul li").each(function (_ind) { var _partli = $(this).height(); console.log(_partli); //$(this).find("span").attr( "height", _partli ); }); /*edm*/ $(".js_letter").click(function () { var _mail = $("input[type='email']").attr("value"); if (_mail.length <= 0) { $("input[type='email']").focus(); return false; } else { if (NotEmail(_mail)) { $("input[type='email']").focus(); return false; } else { var _domain = location.hostname; var _lang = "cn"; $.getJSON("/api/web/www.ashx", { want: "sub_letter", email: _mail, domain: _domain, lang: _lang }, function (json) { if (json.err == "0") { alert(json.dsp); } }); } } }); //search.html $("#txt_tag").keypress(function (even) { if (even.which == 13) { var _key = $("#txt_tag").attr("value"); if (_key.length > 0) { location.href = "/" + _page_lang + "/tags/" + _key + "/"; } } }); $(".btn-tags").click(function () { var _key = $("#txt_tag").attr("value"); if (_key.length > 0) { location.href = "/" + _page_lang + "/tags/" + _key + "/"; } }); $(".submitst").click(function(){ var _key = $(".searchst").attr("value"); if (_key.length == 0) { $(".searchst").focus(); return false; } location.href = "/" + _page_lang + "/tags/" + _key + "/"; }); //杈呭姪绛涢€ var _filterarr = []; try { var _spam = getQueryString("spam"); var _spamarr = JSON.parse(_spam); _filterarr = _spam.length > 0 ? _spamarr : []; } catch (e) { } $(".page_filter .list li a").each(function (_ind) { //缁戝畾 var _type = $(this).attr("data-type"); var _val = $(this).attr("data-value"); for (var i = 0; i < _filterarr.length; i++) { var q_name = _filterarr[i].name; var q_value = _filterarr[i].value; if (q_name == _type && _val == q_value) { $(this).parent().parent().find("li").eq(0).removeClass("cur"); $(this).parent().addClass("cur"); } } //鐐瑰嚮 $(this).click(function () { $(".page_filter .list").each(function (_ind1) { var _type_comp = $(".page_filter .list").eq(_ind1).attr("data-type"); if (_type_comp == _type) { $(".page_filter .list").eq(_ind1).find("li").removeClass("cur"); } }); $(this).parent().addClass("cur"); var _putinstr = { "name": _type, "value": _val }; var _chkindex = JSON.stringify(_filterarr).indexOf(_type); if (_chkindex <= 0) { _filterarr.push(_putinstr); } else { for (var i = 0; i < _filterarr.length; i++) { var _comp = _filterarr[i].name if (_type == _comp) { _putinstr = { "name": _type, "value": _val }; if (_val == "all") { //鍏ㄩ儴鍒欑Щ闄ゅ垹闄 _filterarr.splice(i, 1); } else { //涓嶅悓鍒欐浛鎹 _filterarr.splice(i, 1, _putinstr); } } } } //閲嶆瀯鍙傛暟浼犻€ var _qwords = ""; var _pageurl = ""; var _querystr = []; for (var i = 0; i < _filterarr.length; i++) { var _querytmp = { "name": escape(_filterarr[i].name), "value": escape(_filterarr[i].value) }; _querystr.push(_querytmp); } _pageurl = _pageurl + "?spam=" + JSON.stringify(_querystr); location.href = _pageurl; }); }); Cut_showboxp("mould30201"); /*鍐呭鍒楄〃椤?鍔犺浇鏇村*/ var _AID = $(".waterfall-wrap a"); _AID.on("click",function(){ $(".waterfall-loading").fadeIn(); //get_newspage&total=15&cur=1&catalogue=zucheanli&en=jssp&pno=15&kw= var _catalogue = _AID.attr("data-catalogue"); var _en = _AID.attr("data-en"); var _total = _AID.attr("data-totalpage"); var _cur = _AID.attr("data-curpage"); var _pgsize = _AID.attr("data-pagesize"); var _pgkw = _AID.attr("data-kw").trim(); var _cut = parseInt(_AID.attr("data-cutlng")); //var _templates = _AID.attr("data-mouldhtml"); var _templates =unescape($(".waterfall-template").html()); var _templates_ret = ""; var i_total = parseInt(_total); var i_cur = parseInt(_cur); if (i_cur <= i_total - 1) { i_cur = i_cur + 1; _en = _en == "default" ? "def" : _en $.getJSON("/api/web/www.ashx", { want: "get_newspage", catalogue: _catalogue, en: _en, total: _total, cur: i_cur, pno: _pgsize, kw: _pgkw }, function (json) { var tcount = parseInt(json.newslist.length); for (var i = 0; i < tcount; i++) { var _ind = i_cur * parseInt(_pgsize) + i; if (_pgkw.length > 0) { json.newslist[i].thmurl = ""; } var _cont = json.newslist[i].content; _cont = _cut < _cont.length && _cut > 0 ? _cont.substring(0, _cut - 1) : _cont; _templates_ret += _templates.replace(/{{MOULDID}}/g, json.moulid_id).replace(/{{INDEX}}/g, _ind).replace(/{{URL}}/g, json.newslist[i].url).replace(/{{TITLE}}/g, json.newslist[i].title).replace(/{{THMURL}}/g, json.newslist[i].thmurl).replace(/{{PUBDATE}}/g, json.newslist[i].pubdate).replace(/{{PUBDATE_YEAR}}/g, json.newslist[i].pubdate_year).replace(/{{PUBDATE_MONTH}}/g, json.newslist[i].pubdate_mon).replace(/{{PUBDATE_DAY}}/g, json.newslist[i].pubdate_day).replace(/{{TYPENAME}}/g, json.newslist[i].typename).replace(/{{PRICE_PT}}/g, json.newslist[i].price_pt).replace(/{{PRICE_YH}}/g, json.newslist[i].price_yh).replace(/{{PRICE_PT}}/g, json.newslist[i].price_pt).replace(/{{HITS}}/g, json.newslist[i].hits).replace(/{{TAGS}}/g, json.newslist[i].tags).replace(/{{VIDEO_TIMES}}/g, json.newslist[i].vtime).replace(/{{PICURL}}/g, json.newslist[i].picurl).replace(/{{PRODVIEW_DIYPARM}}/g, json.newslist[i].parameter).replace(/{{CONTENT}}/g, _cont) + "\n"; } $(".waterfall-loading").fadeOut(); /*tags*/ if ($(".panel_tags_bytag").exist()) { $(".panel_tags_bytag ul li:last").after(_templates_ret); } else { /*page*/ $("#jj_right_con div.pagemould").eq(0).append(_templates_ret); } _AID.attr("data-curpage", i_cur); if (i_cur == i_total) { _AID.addClass("waterfall-end").text("THE END").fadeOut(); } //瑁佸壀 //Cut_showboxp("mould30201"); }); } }); //timespan if ($("#console").exist()) {console.log($("#console").html());} //article type $(".helptag span:first-child").click(function () {var _url = $(this).attr("data-url");location.href = _url;}); //鑷畾涔夊閫 $(".trdcon").each(function (_index) { $(".trdcon span").eq(_index).toggle(function () { $(this).html("-"); $(this).addClass("on"); $(".thrdmenu tr td.trdcon").eq(_index).css({ "height": "auto" }); }, function () { $(this).html("+"); $(this).removeClass("on"); $(".thrdmenu tr td.trdcon").eq(_index).css({ "height": "30px" }); }); }); if (!$(".thrdmenu").exist()) { $("#html_keyword").css({ "margin": "2.5% 0 2.5% 0" }); } //鎷涜仒 $("dl.zpbox dt .opt").addClass("icon-arrow-down"); $("dl.zpbox").each(function (_ind) { //if (_ind == 0) //{ // $("dl.zpbox").eq(_ind).find("dt").removeClass("icoDown"); // $("dl.zpbox").eq(_ind).find("dt").addClass("icoUp"); // $("dl.zpbox").eq(_ind).find("dd").slideDown(); //} $(this).click(function () { $("dl.zpbox dt .opt").removeClass("icon-arrow-up").removeClass("icon-arrow-down"); $("dl.zpbox dt .opt").addClass("icon-arrow-down"); $("dl.zpbox dd").slideUp() $("dl.zpbox").eq(_ind).find("dt").find(".opt").removeClass("icon-arrow-down").addClass("icon-arrow-up"); $("dl.zpbox").eq(_ind).find("dd").slideDown(); }); }); ////鍐呭鍥剧墖寮哄埗姣斾緥鎭㈠鍘熷澶勭悊 if ($("#article_detail").exist()) {if ($("#article_detail img").attr("width") != "undefined") {$("#article_detail img").removeAttr("style").removeAttr("width").removeAttr("height");}} //娴佺▼鍥 $(".process-box").each(function (_ind) { var _md_ind = _ind + 1; var _modin = _md_ind % 2; switch (_modin) { case 1:$(this).addClass("pfl");break; default:$(this).addClass("pfr");break; } }); //鍔犲叆娓呭崟 //addnum $(".js_shop_sub").live("click", function () { var _shopid = $(this).attr("data-id"); var _shopid_input = "#shopnum" + _shopid; var _shopid_num = parseInt($(_shopid_input).attr("value")); _shopid_num++; $(_shopid_input).attr("value", _shopid_num); }); ////delnum $(".js_shop_del").live("click", function () { var _shopid = $(this).attr("data-id"); var _shopid_input = "#shopnum" + _shopid; var _shopid_num = parseInt($(_shopid_input).attr("value")); if (_shopid_num >= 2) { _shopid_num--; } $(_shopid_input).attr("value", _shopid_num); }); //add list //var _arr_list = []; $(".js_shop_list").on("click", function () { try { var g_local_list = localStorage.getItem(_shop_listname); var g_jsonshop = JSON.parse(g_local_list); _arr_list = g_jsonshop; }catch(err){} var _shopid = $(this).attr("data-id"); var _shopid_input = "#shopnum" + _shopid; var _shopid_num = parseInt($(_shopid_input).attr("value")); var _shopid_title = $(this).attr("data-tit");; var _shopid_thmurl = $(this).attr("data-img"); var _obj=new Object(); _obj = { id: _shopid, num: _shopid_num, title: _shopid_title, thmurl: _shopid_thmurl }; if (_arr_list!=[]) { var _checkin = 0; //鍏堟鏌ュ綋涓槸鍚﹀瓨鍦↖D for (var i = 0; i < _arr_list.length; i++) { if (_arr_list[i].id == parseInt(_shopid)) { var _newnum = _shopid_num + _arr_list[i].num; _obj = { id: _shopid, num: _newnum, title: _shopid_title, thmurl: _shopid_thmurl }; _arr_list.splice(i, 1, _obj);//鍒犻櫎骞舵彃鍏ユ柊鐨勬暟缁 _checkin = 1; } } if (_checkin == 0) { _arr_list.push(_obj); } } else { _arr_list.push(_obj); } Shoplist_sideshow(_arr_list,"add"); }); //瀹㈡埛璁㈣喘 $(".btn_orderask").click(function () { //var _pid = $(this).attr("data-pid"); //var _url = "/html/feedback/?id=" + _pid; location.href = "tel:"+_hot_tel; }); //璇︽儏table閫夐」鍗℃晥鏋 $(".prod_tit span").eq(0).addClass("cur"); $(".prod_txt").eq(0).addClass("cur"); $(".prod_tit span").each(function (_ind) { $(this).click(function () { var _en = $(this).attr("data-en"); switch (_en) { case "zn": $.getJSON("/api/web/www.ashx", { want: "get_proddetail", en: _en }, function (json) { var tcount = parseInt(json.length); if (tcount > 0) { for (var i = 0; i < tcount; i++) { $(".prod_txt").eq(_ind).html(json[i].content); } } else { $(".prod_txt").eq(_ind).html('鏁鏈熷緟锛屾鏍忕洰姝e湪杩涜寤鸿涓?...'); } }); break; case "faq": default: $.getJSON("/api/web/www.ashx", { want: "get_proddetail", en: _en,istop:"0" }, function (json) { var tcount = parseInt(json.length); var _html = "
{TITLE}
{CONTENT}
"; var _html_out = ""; if (tcount > 0) { for (var i = 0; i < tcount; i++) { var _tit = json[i].title; var _con = json[i].content; _html_out += _html.replace(/{TITLE}/g, _tit).replace(/{CONTENT}/g, _con); } $(".prod_txt").eq(_ind).html(_html_out); //濉厖鍚庣偣鍑婚槄璇 $(".prod_txt dl dt").each(function (_index) { $(this).toggle(function () { $(".prod_txt dl dd").slideUp(); $(".prod_txt dl dd").eq(_index).slideDown(); }, function () { $(".prod_txt dl dd").eq(_index).slideUp(); }); }); } else { $(".prod_txt").eq(_ind).html('鏁鏈熷緟锛屾鏍忕洰姝e湪杩涜寤鸿涓?...'); } }); break; } $(".prod_tit span").removeClass("cur"); $(".prod_txt").slideUp(); $(this).addClass("cur"); $(".prod_txt").eq(_ind).slideDown(); }); }); //鏁堟灉璺宠浆 $(".hover .link").click(function(){ var _url=$(this).attr("rel"); location.href=_url; }); //WAP瀹㈡埛绔椂鐢熸晥 if (_b_device=="wap") { $(".wb_catalogue a").toggle(function () {$("#wap_menu").css({ left: "-100%" }).animate({ left: "0" }, 500);}, function () {$("#wap_menu").css({ left: "0" }).animate({ left: "-100%" }, 500);}); $(".wap_menu_close").click(function () {$("#wap_menu").css({ left: "0" }).animate({ left: "-100%" }, 500);}); $("#wm_srh").blur(function () {var _wmval = $(this).attr("value");if (_wmval.length == 0) {$(this).focus();return false;}else {location.href = "/tags/" + _wmval + "/";}}); } ///椤佃剼WAP鑿滃崟 if (w_w < 1200 || _b_device == "wap") { ////闈㈠寘灞 //$(".breadcrumb").append("
+
"); //$(".secmenu").toggle(function () { // $(this).addClass("ondrp"); // $("#jj_left").slideDown(); //}, function () { // $(this).removeClass("ondrp"); // $("#jj_left").slideUp(); //}); //椤佃剼鑿滃崟 $(".f_item dt").each(function (index) { $(this).toggle(function () { var temp_height = ($(this).parents("dl").children().length) * (28+1) + "pt"; $(this).addClass("on"); $(this).parents("dl").parents("li").css({ height: "28pt" }).animate({ height: temp_height }, 500); }, function () { var temp_height = ($(this).parents("dl").children().length) * (28 + 1) + "pt"; $(this).removeClass("on"); $(this).parents("dl").parents("li").css({ height: temp_height }).animate({ height: "28pt" }, 500); }); }); } //video $(".popvideo").click(function () { //var popID = $(this).attr('rel'); //Get Popup Name var popURL = $(this).attr('data-src'); //Get Popup href to define size var videoID = $(this).attr('title'); //Pull Query & Variables from href URL var query = popURL.split('?'); var dim = query[1].split('&'); var popWidth = dim[0].split('=')[1]; //Gets the first query string value popWidth = w_w > 1200 ? popWidth : "100%"; var _title = '
'; $(".popwin").fadeIn(); var _zebra_width = parseInt(popWidth) + 30; var _zebra_width_wap = parseInt(w_w) * 0.8 + "px"; _zebra_width = w_w > 1200 ? _zebra_width : _zebra_width_wap; $.Zebra_Dialog(_title, { 'type': 'error', width: _zebra_width, 'button': false, 'title': videoID }); $(".ZebraDialog_ButtonsOuter").css({ "display": "none" }); }); var _video = $('.video-js').attr("id", "pvideo"); $("video").each(function (_ind) { var v_h = $(this).attr("height"); var v_w = $(this).attr("width"); var v_b = v_w / v_h; var s_w = w_w * 0.95; var s_h = s_w / v_b; //绉诲姩绔笅閲嶇疆鎾斁鍣ㄥぇ灏 if (w_w < 1200) { $(this).attr("width", s_w).attr("height", s_h).removeAttr("preload"); } else { $(this).removeAttr("preload"); } $(this).attr("autoplay", "autoplay"); }); //绉婚櫎鍐呭涓殑瑙嗛锛岄噸鏋 $('#videodetail .video-js').remove(); $(".vtitle small").toggle(function () { $('#videodetail').slideDown(); }, function () { $("#videodetail").slideUp(); }); }); //search.html kw replace function Kw_replace(_kw) { $(".panel_tags_bytag ul li a").each(function (_ind) { var _tit = $(this).html(); if (_kw.indexOf(" ") > 0) { var _kwarr = _kw.split(' '); for (var i = 0; i < _kwarr.length; i++) { var reg = new RegExp(_kwarr[i], "g");//g,琛ㄧず鍏ㄩ儴鏇挎崲銆 _tit = _tit.replace(reg, "" + _kwarr[i] + ""); } } else { var reg = new RegExp(_kw, "g");//g,琛ㄧず鍏ㄩ儴鏇挎崲銆 _tit = _tit.replace(reg, "" + _kw + ""); } $(this).html(_tit); }); } //鎴彇闀垮害瑁佸壀 function Cut_showboxp(_mouldcss) { var _opp_mould = $("." + _mouldcss); if (_opp_mould.exist()) { var _opp_mould_p = $("." + _mouldcss + " .showbox p"); var _cut = checkMobile()==true?50:120; _opp_mould_p.each(function () { var _htm = $(this).html(); var _lng = parseInt(_htm.length); if (_lng > _cut) { _htm = _htm.substring(0, _cut - 1); $(this).html(_htm); } }); } } //褰撳墠鑿滃崟JS var obj = null; $(function () { //breadcrumb $(".breadcrumb strong").addClass("iconfont icon-company").html(_bread_txt); $(".left_title").html($(".breadcrumb a:last-child").text() + "" + $(".breadcrumb a:last-child").attr("data-ten") + ""); //姒傝堪 $(".project_mark a").click(function () { var _rel = $(this).attr("rel"); switch (_rel) { case "1"://鏀剁缉 $(".project_mark").removeClass("project_mark_on").addClass("project_mark_off"); $(this).attr("rel", "0").removeClass("off"); break; case "0"://灞曞紑 $(".project_mark").removeClass("project_mark_off").addClass("project_mark_on"); $(this).attr("rel", "1").addClass("off"); break; default://灞曞紑 $(".project_mark").removeClass("project_mark_off").addClass("project_mark_on"); $(this).attr("rel", "1").addClass("off"); break; } }); //閲嶆瀯涓婁竴绡囷紝涓嬩竴绡 var _plink_tit = $(".prev_link").attr("title"); if (_plink_tit == "{{TITLE_PREV}}") {$(".prev_link").parents("li").remove();} var _nlink_tit = $(".next_link").attr("title"); if (_nlink_tit == "{{TITLE_NEXT}}"){$(".next_link").parents("li").remove();} //绱㈠紩椤靛幓闄ょ浉鍏抽」 $(".showlist_index").each(function (_ind) { var _ck_nothing = $(".showlist_index").eq(_ind).text(); if (_ck_nothing.indexOf("nothing") > 0) { $(".showlist_index").eq(_ind).fadeOut(); } }); //鍩庡競 $(".cw_list a").each(function () { var _curl = $(this).attr("href"); if (_page_url.indexOf(_curl) > 0) { $(this).addClass("cur"); } }); ////鐢ㄦ墜鏈烘煡鐪?浠呮敮鎸丳C绔 if (_b_device=="www") { //$(".containerbox .warper_top").remove(); // $(".breadcrumb").append("鐢ㄦ墜鏈烘煡鐪婞/a>"); // $(".js_see_wap").toggle(function () { // var _imgurl = "/common/QrCode.aspx?ptype=DIY&size=220&data=" + _page_url; // $(this).append(""); // }, function () { // $(this).find("label").remove(); // }); } //缃戝潃閾炬帴鍦板潃 $(".locationurl").html(_page_url); //left_menu var _contmenu = $(".box_02 ul").text().trim(); if (_contmenu.length > 0) { $(".box_02 ul li a").each(function (_ind) { var las = $(this).attr("href"); var dep = $(this).attr("data-dep"); if (_page_url.indexOf(las) >= 0) { $(".box_02 ul li").eq(_ind).addClass("lthis01"); if(dep=="3") { $(this).parent().parent().parent().addClass("lthis01"); var _ulhtml=$(this).parent().parent().parent().find("ul").html(); } else { var _ulhtml=$(this).parent().find("ul").html(); } if(_ulhtml!=null&&_ulhtml.length>0){ $("#jj_right_top").html(""); } } }); $(".box_02 ul li.lthis01 ul li.lthis01").parent().removeClass("uhide").addClass("ushow"); } else { $(".box_02").remove(); } ////涓夌骇鑿滃崟瀹氫綅 //var _linum = 0; //$(".box_02 ul li").each(function (_ind) { // var _menu_type = $(".box_02 ul li").eq(_ind).attr("data-type"); // if (_menu_type == "contmenu") { // var _pleft = "-" + (_linum * 100).toFixed(2) + "%"; // $(".box_02 ul li").eq(_ind).find("ul").css({ "left": _pleft }); // _linum++; // } //}); }); /*鍔ㄦ€佸姞杞借剼鏈琧ss or js*/ var dynamicLoading = { css: function (path) { if (!path || path.length === 0) { throw new Error('argument "path" is required !'); } var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.href = path; link.rel = 'stylesheet'; link.type = 'text/css'; head.appendChild(link); }, js: function (path) { if (!path || path.length === 0) { throw new Error('argument "path" is required !'); } var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.src = path; script.type = 'text/javascript'; head.appendChild(script); } }