//=== viewid:dh_style_36_1573200993800,dh_style_36_1573204306526,dh_style_36_1573116977715,dh_style_36_1574644328806,dh_style_36_1575699530164,dh_style_36_1573624373731,dh_style_36_1573116997695,dh_style_36_1574644823096,dh_style_36_1573202320537,dh_style_36_1573265522852,dh_style_36_1573097506812,dh_style_36_1573088264787,dh_style_36_1573202450099,dh_style_36_1573204609003,dh_style_36_1573117028738,dh_style_36_1573029507368,dh_style_36_1573107507120,dh_style_36_1573203185964,dh_style_36_1573091094318,dh_style_36_1573109552073,dh_style_36_1573203277696,dh_style_36_1573110033255,dh_style_36_1573091186414,dh_style_36_1573091249276 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } var is_mobile = is_mobile(); $(function(){ /*pc,鎵嬫満鏄剧ず闅愯棌*/ }) //=== viewid:dh_style_36_1573091249276 ===// function navSwtich(obj) { $(obj).siblings(".menuUlCopy").slideToggle(200); $(obj).toggleClass('ontoggle'); $(obj).parent().siblings().find(".menuUlCopy").slideUp(200); $(obj).parent().siblings().find(".fa-angle-down").removeClass('ontoggle'); } function subLeft_dh_style_36_1573091249276(){ $("#dh_style_36_1573091249276 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_36_1573091249276(); }) $(function(){ $("#dh_style_36_1573091249276 .fa-navicon").click(function(){ $("#dh_style_36_1573091249276").addClass('clearTransform'); $("#dh_style_36_1573091249276 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_36_1573091249276(); $("#dh_style_36_1573091249276 .subBox").css("top",$("#dh_style_36_1573091249276 .menuUl_box").height()); if($("#dh_style_36_1573091249276 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_36_1573091249276 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_36_1573091249276 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_36_1573091249276 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_36_1573091249276 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_36_1573091249276 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_36_1573091249276 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_36_1573091249276 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_36_1573091249276 .subBox").hide(); }) //椋庢牸41 42 } }) //=== viewid:searchbox_style_02_1573091249254 ===// $("#searchbox_style_02_1573091249254 .search-btn").click(function(){ var kw=$("#searchbox_style_02_1573091249254 .search_input").val(); var gourl = $(this).attr("attrhref"); href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"nkeyword="+kw; location.href = href; }) function searchOne(lname){ var gourl = $(lname).attr("attrhref"); href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"nkeyword="+$(lname).html(); location.href = href; } $("#searchbox_style_02_1573091249254 .search_input").val(decodeURIComponent(Request("nkeyword"))); function goSearch(form) { console.log('form: ', form); $(form).find('.search-btn').trigger('click'); return false; } //=== viewid:lang_style_12_1574148247848,lang_style_12_1574148385897,lang_style_12_1574148484577,lang_style_12_1575699530183,lang_style_12_1574147701832,lang_style_12_1574148513301,lang_style_12_1574148261143,lang_style_12_1574148408706,lang_style_12_1574148040479,lang_style_12_1574147828976,lang_style_12_1574148298962,lang_style_12_1574148429381,lang_style_12_1574147866104,lang_style_12_1574148107769,lang_style_12_1574148320736,lang_style_12_1574147974213,lang_style_12_1574148146774,lang_style_12_1574148343253,lang_style_12_1574148222805,lang_style_12_1574147995020,lang_style_12_1574148194931 ===// $(document).ready(function(){ }); //=== viewid:lang_style_12_1574148194931 ===// $('#lang_style_12_1574148194931 .lang_main').mousemove(function(){ $('#lang_style_12_1574148194931 .lang_content').show(); }).mouseout(function(){ $('#lang_style_12_1574148194931 .lang_content').hide(); }); //=== viewid:productList_style_03_1573202153261,homelink_style_02_1573204320700,homelink_style_02_1573268246607,productList_style_05_1498112766363,homelink_style_02_1573268348667,homelink_style_02_1573202335623,productList_style_03_1573202403743,homelink_style_02_1573101684782,homelink_style_02_1572920701224,homelink_style_02_1573202462997,productList_style_03_1573202504216,homelink_style_02_1573281072481,homelink_style_02_1573026459106,homelink_style_02_1573107538361,homelink_style_02_1573203204468,productList_style_03_1573203243001,homelink_style_02_1573029713631,homelink_style_02_1573109580030,homelink_style_02_1573203290187,productList_style_03_1573203368408,homelink_style_02_1573110064561,productList_style_03_1573194574931,homelink_style_02_1573029868332,homelink_style_02_1573029994608 ===// //=== viewid:dh_style_menu2_01_1573628782466,dh_style_menu2_01_1573629285230,dh_style_menu2_01_1573629379574,dh_style_menu2_01_1573629417402,dh_style_menu2_01_1573628859640,dh_style_menu2_01_1573627676196,dh_style_menu2_01_1573626000714,dh_style_menu2_01_1573628965136,dh_style_menu2_01_1573629308047,dh_style_menu2_01_1573626250330,dh_style_menu2_01_1573627920766,dh_style_menu2_01_1573629074219,dh_style_menu2_01_1573627522363,dh_style_menu2_01_1573628144020,dh_style_menu2_01_1573629121753,dh_style_menu2_01_1573628712839,dh_style_menu2_01_1573627569158,dh_style_menu2_01_1573628524772 ===// // 椋庢牸style_menu2_03 浜や簰 //=== viewid:image_style_11_1573030149496 ===// $(function(){ let obj = $("#image_style_11_1573030149496"); let picItems = obj.find("li.imgItems"); let num = 0; let picBox; picItems.click(function(){ let topH = $(window).scrollTop(); let index = $(this).index(); let curPic = $(this).find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); curPicStyle = ''; curIcon = ''; curIconStyle = 'display:none;'; }else{ curPic = ''; curPicStyle = 'display:none;'; curIcon = $(this).find(".bbx-new-font").text(); curIconStyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curIcon+"
"; let picBoxhtml = $(html); //"+""+"涓轰簡韬插紑鍥剧墖寤舵椂鍔犺浇鐨勪唬鐮佹浛鎹 $("body").append(picBoxhtml); picBox = $(".imgShowBox"); pdSize(); //鍒ゆ柇涓嬩竴寮犲拰涓婁竴寮犳寜閽殑鏄剧ず if(picItems.length == 1){ $("body").find(".imgButton>.nextImg,.imgButton>.prevImg").css("visibility","hidden") } if(picItems.length-1 == $(this).index()){ $("body").find(".imgButton>.nextImg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgButton>.prevImg").css("visibility","hidden") } //鍏抽棴 $("body").find(".imgButton>.closeShowPic").click(function(){ $(".imgShowBox").remove(); $("body").removeClass("pos_fixed"); $(window).scrollTop(topH); }); //涓嬩竴寮 $("body").find(".imgButton>.nextImg").click(function(){ $(".imgShowBox img").css("max-height","none"); let len = obj.find("li:has('.imgCont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curPics(); pdSize(); }); //涓婁竴寮 $("body").find(".imgButton>.prevImg").click(function(){ $(".imgShowBox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curPics(); pdSize(); }); }); //鍒囨崲澶у浘 function curPics(){ let that = obj.find("li").eq(num); let curPic = that.find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; let boxImg = picBox.find("img"); let boxIcon = picBox.find(".bbx-new-font"); if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); boxImg.attr("src",curPic); boxImg.show(0); boxIcon.hide(0); }else{ curIcon = that.find(".bbx-new-font").text(); curIconStyle = that.find(".bbx-new-font").attr('style'); boxIcon.text(curIcon); boxIcon.attr('style',curIconStyle); boxImg.hide(0); } } //鍒ゆ柇灞曞紑鏄剧ず鏁堟灉 function pdSize(){ let imgH = picBox.find("img").height(); let winH = $(window).height(); if(imgH>winH){ $("body").addClass("pos_fixed"); picBox.addClass("scroll"); picBox.animate({"scrollTop":"0px"},200); }else{ $("body").removeClass("pos_fixed"); picBox.removeClass("scroll"); $(".imgShowBox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1573031072980 ===// $(function(){ let obj = $("#image_style_11_1573031072980"); let picItems = obj.find("li.imgItems"); let num = 0; let picBox; picItems.click(function(){ let topH = $(window).scrollTop(); let index = $(this).index(); let curPic = $(this).find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); curPicStyle = ''; curIcon = ''; curIconStyle = 'display:none;'; }else{ curPic = ''; curPicStyle = 'display:none;'; curIcon = $(this).find(".bbx-new-font").text(); curIconStyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curIcon+"
"; let picBoxhtml = $(html); //"+""+"涓轰簡韬插紑鍥剧墖寤舵椂鍔犺浇鐨勪唬鐮佹浛鎹 $("body").append(picBoxhtml); picBox = $(".imgShowBox"); pdSize(); //鍒ゆ柇涓嬩竴寮犲拰涓婁竴寮犳寜閽殑鏄剧ず if(picItems.length == 1){ $("body").find(".imgButton>.nextImg,.imgButton>.prevImg").css("visibility","hidden") } if(picItems.length-1 == $(this).index()){ $("body").find(".imgButton>.nextImg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgButton>.prevImg").css("visibility","hidden") } //鍏抽棴 $("body").find(".imgButton>.closeShowPic").click(function(){ $(".imgShowBox").remove(); $("body").removeClass("pos_fixed"); $(window).scrollTop(topH); }); //涓嬩竴寮 $("body").find(".imgButton>.nextImg").click(function(){ $(".imgShowBox img").css("max-height","none"); let len = obj.find("li:has('.imgCont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curPics(); pdSize(); }); //涓婁竴寮 $("body").find(".imgButton>.prevImg").click(function(){ $(".imgShowBox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curPics(); pdSize(); }); }); //鍒囨崲澶у浘 function curPics(){ let that = obj.find("li").eq(num); let curPic = that.find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; let boxImg = picBox.find("img"); let boxIcon = picBox.find(".bbx-new-font"); if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); boxImg.attr("src",curPic); boxImg.show(0); boxIcon.hide(0); }else{ curIcon = that.find(".bbx-new-font").text(); curIconStyle = that.find(".bbx-new-font").attr('style'); boxIcon.text(curIcon); boxIcon.attr('style',curIconStyle); boxImg.hide(0); } } //鍒ゆ柇灞曞紑鏄剧ず鏁堟灉 function pdSize(){ let imgH = picBox.find("img").height(); let winH = $(window).height(); if(imgH>winH){ $("body").addClass("pos_fixed"); picBox.addClass("scroll"); picBox.animate({"scrollTop":"0px"},200); }else{ $("body").removeClass("pos_fixed"); picBox.removeClass("scroll"); $(".imgShowBox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1573031210288 ===// $(function(){ let obj = $("#image_style_11_1573031210288"); let picItems = obj.find("li.imgItems"); let num = 0; let picBox; picItems.click(function(){ let topH = $(window).scrollTop(); let index = $(this).index(); let curPic = $(this).find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); curPicStyle = ''; curIcon = ''; curIconStyle = 'display:none;'; }else{ curPic = ''; curPicStyle = 'display:none;'; curIcon = $(this).find(".bbx-new-font").text(); curIconStyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curIcon+"
"; let picBoxhtml = $(html); //"+""+"涓轰簡韬插紑鍥剧墖寤舵椂鍔犺浇鐨勪唬鐮佹浛鎹 $("body").append(picBoxhtml); picBox = $(".imgShowBox"); pdSize(); //鍒ゆ柇涓嬩竴寮犲拰涓婁竴寮犳寜閽殑鏄剧ず if(picItems.length == 1){ $("body").find(".imgButton>.nextImg,.imgButton>.prevImg").css("visibility","hidden") } if(picItems.length-1 == $(this).index()){ $("body").find(".imgButton>.nextImg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgButton>.prevImg").css("visibility","hidden") } //鍏抽棴 $("body").find(".imgButton>.closeShowPic").click(function(){ $(".imgShowBox").remove(); $("body").removeClass("pos_fixed"); $(window).scrollTop(topH); }); //涓嬩竴寮 $("body").find(".imgButton>.nextImg").click(function(){ $(".imgShowBox img").css("max-height","none"); let len = obj.find("li:has('.imgCont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curPics(); pdSize(); }); //涓婁竴寮 $("body").find(".imgButton>.prevImg").click(function(){ $(".imgShowBox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curPics(); pdSize(); }); }); //鍒囨崲澶у浘 function curPics(){ let that = obj.find("li").eq(num); let curPic = that.find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; let boxImg = picBox.find("img"); let boxIcon = picBox.find(".bbx-new-font"); if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); boxImg.attr("src",curPic); boxImg.show(0); boxIcon.hide(0); }else{ curIcon = that.find(".bbx-new-font").text(); curIconStyle = that.find(".bbx-new-font").attr('style'); boxIcon.text(curIcon); boxIcon.attr('style',curIconStyle); boxImg.hide(0); } } //鍒ゆ柇灞曞紑鏄剧ず鏁堟灉 function pdSize(){ let imgH = picBox.find("img").height(); let winH = $(window).height(); if(imgH>winH){ $("body").addClass("pos_fixed"); picBox.addClass("scroll"); picBox.animate({"scrollTop":"0px"},200); }else{ $("body").removeClass("pos_fixed"); picBox.removeClass("scroll"); $(".imgShowBox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1573631021394 ===// $(function(){ let obj = $("#image_style_11_1573631021394"); let picItems = obj.find("li.imgItems"); let num = 0; let picBox; picItems.click(function(){ let topH = $(window).scrollTop(); let index = $(this).index(); let curPic = $(this).find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); curPicStyle = ''; curIcon = ''; curIconStyle = 'display:none;'; }else{ curPic = ''; curPicStyle = 'display:none;'; curIcon = $(this).find(".bbx-new-font").text(); curIconStyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curIcon+"
"; let picBoxhtml = $(html); //"+""+"涓轰簡韬插紑鍥剧墖寤舵椂鍔犺浇鐨勪唬鐮佹浛鎹 $("body").append(picBoxhtml); picBox = $(".imgShowBox"); pdSize(); //鍒ゆ柇涓嬩竴寮犲拰涓婁竴寮犳寜閽殑鏄剧ず if(picItems.length == 1){ $("body").find(".imgButton>.nextImg,.imgButton>.prevImg").css("visibility","hidden") } if(picItems.length-1 == $(this).index()){ $("body").find(".imgButton>.nextImg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgButton>.prevImg").css("visibility","hidden") } //鍏抽棴 $("body").find(".imgButton>.closeShowPic").click(function(){ $(".imgShowBox").remove(); $("body").removeClass("pos_fixed"); $(window).scrollTop(topH); }); //涓嬩竴寮 $("body").find(".imgButton>.nextImg").click(function(){ $(".imgShowBox img").css("max-height","none"); let len = obj.find("li:has('.imgCont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curPics(); pdSize(); }); //涓婁竴寮 $("body").find(".imgButton>.prevImg").click(function(){ $(".imgShowBox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curPics(); pdSize(); }); }); //鍒囨崲澶у浘 function curPics(){ let that = obj.find("li").eq(num); let curPic = that.find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; let boxImg = picBox.find("img"); let boxIcon = picBox.find(".bbx-new-font"); if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); boxImg.attr("src",curPic); boxImg.show(0); boxIcon.hide(0); }else{ curIcon = that.find(".bbx-new-font").text(); curIconStyle = that.find(".bbx-new-font").attr('style'); boxIcon.text(curIcon); boxIcon.attr('style',curIconStyle); boxImg.hide(0); } } //鍒ゆ柇灞曞紑鏄剧ず鏁堟灉 function pdSize(){ let imgH = picBox.find("img").height(); let winH = $(window).height(); if(imgH>winH){ $("body").addClass("pos_fixed"); picBox.addClass("scroll"); picBox.animate({"scrollTop":"0px"},200); }else{ $("body").removeClass("pos_fixed"); picBox.removeClass("scroll"); $(".imgShowBox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1573631231284 ===// $(function(){ let obj = $("#image_style_11_1573631231284"); let picItems = obj.find("li.imgItems"); let num = 0; let picBox; picItems.click(function(){ let topH = $(window).scrollTop(); let index = $(this).index(); let curPic = $(this).find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); curPicStyle = ''; curIcon = ''; curIconStyle = 'display:none;'; }else{ curPic = ''; curPicStyle = 'display:none;'; curIcon = $(this).find(".bbx-new-font").text(); curIconStyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curIcon+"
"; let picBoxhtml = $(html); //"+""+"涓轰簡韬插紑鍥剧墖寤舵椂鍔犺浇鐨勪唬鐮佹浛鎹 $("body").append(picBoxhtml); picBox = $(".imgShowBox"); pdSize(); //鍒ゆ柇涓嬩竴寮犲拰涓婁竴寮犳寜閽殑鏄剧ず if(picItems.length == 1){ $("body").find(".imgButton>.nextImg,.imgButton>.prevImg").css("visibility","hidden") } if(picItems.length-1 == $(this).index()){ $("body").find(".imgButton>.nextImg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgButton>.prevImg").css("visibility","hidden") } //鍏抽棴 $("body").find(".imgButton>.closeShowPic").click(function(){ $(".imgShowBox").remove(); $("body").removeClass("pos_fixed"); $(window).scrollTop(topH); }); //涓嬩竴寮 $("body").find(".imgButton>.nextImg").click(function(){ $(".imgShowBox img").css("max-height","none"); let len = obj.find("li:has('.imgCont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curPics(); pdSize(); }); //涓婁竴寮 $("body").find(".imgButton>.prevImg").click(function(){ $(".imgShowBox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curPics(); pdSize(); }); }); //鍒囨崲澶у浘 function curPics(){ let that = obj.find("li").eq(num); let curPic = that.find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; let boxImg = picBox.find("img"); let boxIcon = picBox.find(".bbx-new-font"); if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); boxImg.attr("src",curPic); boxImg.show(0); boxIcon.hide(0); }else{ curIcon = that.find(".bbx-new-font").text(); curIconStyle = that.find(".bbx-new-font").attr('style'); boxIcon.text(curIcon); boxIcon.attr('style',curIconStyle); boxImg.hide(0); } } //鍒ゆ柇灞曞紑鏄剧ず鏁堟灉 function pdSize(){ let imgH = picBox.find("img").height(); let winH = $(window).height(); if(imgH>winH){ $("body").addClass("pos_fixed"); picBox.addClass("scroll"); picBox.animate({"scrollTop":"0px"},200); }else{ $("body").removeClass("pos_fixed"); picBox.removeClass("scroll"); $(".imgShowBox img").css("max-height","80%"); } } }) //=== viewid:image_style_11_1573631605837 ===// $(function(){ let obj = $("#image_style_11_1573631605837"); let picItems = obj.find("li.imgItems"); let num = 0; let picBox; picItems.click(function(){ let topH = $(window).scrollTop(); let index = $(this).index(); let curPic = $(this).find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); curPicStyle = ''; curIcon = ''; curIconStyle = 'display:none;'; }else{ curPic = ''; curPicStyle = 'display:none;'; curIcon = $(this).find(".bbx-new-font").text(); curIconStyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curIcon+"
"; let picBoxhtml = $(html); //"+""+"涓轰簡韬插紑鍥剧墖寤舵椂鍔犺浇鐨勪唬鐮佹浛鎹 $("body").append(picBoxhtml); picBox = $(".imgShowBox"); pdSize(); //鍒ゆ柇涓嬩竴寮犲拰涓婁竴寮犳寜閽殑鏄剧ず if(picItems.length == 1){ $("body").find(".imgButton>.nextImg,.imgButton>.prevImg").css("visibility","hidden") } if(picItems.length-1 == $(this).index()){ $("body").find(".imgButton>.nextImg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgButton>.prevImg").css("visibility","hidden") } //鍏抽棴 $("body").find(".imgButton>.closeShowPic").click(function(){ $(".imgShowBox").remove(); $("body").removeClass("pos_fixed"); $(window).scrollTop(topH); }); //涓嬩竴寮 $("body").find(".imgButton>.nextImg").click(function(){ $(".imgShowBox img").css("max-height","none"); let len = obj.find("li:has('.imgCont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curPics(); pdSize(); }); //涓婁竴寮 $("body").find(".imgButton>.prevImg").click(function(){ $(".imgShowBox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curPics(); pdSize(); }); }); //鍒囨崲澶у浘 function curPics(){ let that = obj.find("li").eq(num); let curPic = that.find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; let boxImg = picBox.find("img"); let boxIcon = picBox.find(".bbx-new-font"); if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); boxImg.attr("src",curPic); boxImg.show(0); boxIcon.hide(0); }else{ curIcon = that.find(".bbx-new-font").text(); curIconStyle = that.find(".bbx-new-font").attr('style'); boxIcon.text(curIcon); boxIcon.attr('style',curIconStyle); boxImg.hide(0); } } //鍒ゆ柇灞曞紑鏄剧ず鏁堟灉 function pdSize(){ let imgH = picBox.find("img").height(); let winH = $(window).height(); if(imgH>winH){ $("body").addClass("pos_fixed"); picBox.addClass("scroll"); picBox.animate({"scrollTop":"0px"},200); }else{ $("body").removeClass("pos_fixed"); picBox.removeClass("scroll"); $(".imgShowBox img").css("max-height","80%"); } } }) //=== viewid:prohibitCopy_style_01_1667789418215 ===// document.body.onselectstart=document.body.oncontextmenu=function(){return false;};