//=== viewid:searchbox_style_01_1556175892026 ===// $("#searchbox_style_01_1556175892026 .search-btn").click(function(){ var kw=$("#searchbox_style_01_1556175892026 .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_01_1556175892026 .search_input").val(decodeURIComponent(Request("nkeyword"))); function goSearch(form) { console.log('form: ', form); $(form).find('.search-btn').trigger('click'); return false; } //=== viewid:dh_style_28_1556179491274 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } var is_mobile_boolean = is_mobile(); $(function(){ /*pc,鎵嬫満鏄剧ず闅愯棌*/ $("#dh_style_28_1556179491274 li").each(function(){ if($(this).find("ul") && $(this).find("ul").length != 0){ $(this).children("a").removeAttr('href'); if(is_mobile_boolean){ $(this).children("a").attr('onclick','navSwtich(this)'); } } }); }) //=== viewid:dh_style_28_1556179491274 ===// 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_28_1556179491274(){ $("#dh_style_28_1556179491274 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_28_1556179491274(); }) $(function(){ $("#dh_style_28_1556179491274 .fa-navicon").click(function(){ $("#dh_style_28_1556179491274").addClass('clearTransform'); $("#dh_style_28_1556179491274 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_28_1556179491274(); $("#dh_style_28_1556179491274 .subBox").css("top",$("#dh_style_28_1556179491274 .menuUl_box").height()); if($("#dh_style_28_1556179491274 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_28_1556179491274 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_28_1556179491274 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_28_1556179491274 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_28_1556179491274 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_28_1556179491274 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_28_1556179491274 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1556179491274 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_28_1556179491274 .subBox").hide(); }) //椋庢牸41 42 } }) var color = $('#dh_style_28_1556179491274 .menuStyle_28 .menuUl02 .subMenu02').css('background-color'); $('#dh_style_28_1556179491274 .menuStyle_28').append(``); $('#dh_style_28_1556179491274 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){ let that = $(this); setTimeout(function(){ var hoverColor = that.css('background-color'); $('#dh_style_28_1556179491274 .menuStyle_28').append(``); },100); }); //=== viewid:newsList_style_18_1589975418900 ===// //-- $(function(){ var viewid="newsList_style_18_1589975418900"; var sys_url="viewid=newsList_style_18_1589975418900&name=newsList&style=style_18&langid=0&pageid=137955&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_18_1589975418900; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:image_style_11_1589975932905 ===// $(function(){ let obj = $("#image_style_11_1589975932905"); 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:newsList_style_12_1600415531169 ===// // $(function(){ // // 鏍峰紡鎺у埗 // ; // // $('.boxNewsListStyle_12 .newLeft').css("height",""+(parseInt($('.boxNewsListStyle_12 .newLeft').css("width"))*2/3)+"px"); // // 鍒嗗壊绾 // $('.boxNewsListStyle_12 .modSet').first().show(); // $('.boxNewsListStyle_12 .modSet').first().siblings('.boxNewsListStyle_12 .modSet').hide(); // var i=0; // $('.boxNewsListStyle_12 .newsLi').eq(i).css({background:'#eee'}); // var timer = setInterval(function(){ // $('.boxNewsListStyle_12 .modSet').eq(i).stop().show(); // $('.boxNewsListStyle_12 .newsLi').eq(i).css({background:'#eee'}); // $('.boxNewsListStyle_12 .modSet').eq(i).siblings('.boxNewsListStyle_12 .modSet').hide(); // $('.boxNewsListStyle_12 .newsLi').eq(i).siblings('.boxNewsListStyle_12 .newsLi').css({background:''}); // if( i >= $('.boxNewsListStyle_12 .modSet').length-1){ // i = 0; // }else{ // i++; // } // },3000); // }); //=== viewid:newsList_style_12_1600415531169 ===// //-- $(function(){ var viewid="newsList_style_12_1600415531169"; var sys_url="viewid=newsList_style_12_1600415531169&name=newsList&style=style_12&langid=0&pageid=137955&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_12_1600415531169; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_12_1600415531169 ===// $(function(){ var i=0; var timer; var lastnum = $("#newsList_style_12_1600415531169 .boxNewsListStyle_12 .leftLi").length-1; Carousel(1); $("#newsList_style_12_1600415531169 .boxNewsListStyle_12 .prevNews").click(function(){ //鏆傚仠 i閫€涓€鏍 鍐嶅惊鐜 clearInterval(timer); i = i == 0 ? lastnum : i - 1; Carousel(1); }) $("#newsList_style_12_1600415531169 .boxNewsListStyle_12 .nextNews").click(function(){ //鏆傚仠 i杩涗竴鏍 鍐嶅惊鐜 clearInterval(timer); i = i >= lastnum ? 0 : i + 1; Carousel(1); }) function setIntervalFun(){ timer = setInterval(function(){ i = i >= lastnum ? 0 : i + 1; Carousel(0); },3000); } function Carousel(val){ $("#newsList_style_12_1600415531169 .boxNewsListStyle_12 .leftLi").eq(i).stop().show(); $("#newsList_style_12_1600415531169 .boxNewsListStyle_12 .newsLi").eq(i).addClass('cur_item').siblings().removeClass('cur_item'); $("#newsList_style_12_1600415531169 .boxNewsListStyle_12 .leftLi").eq(i).siblings("#newsList_style_12_1600415531169 .boxNewsListStyle_12 .leftLi").hide(); $("#newsList_style_12_1600415531169 .boxNewsListStyle_12 .newsLi").eq(i).siblings("#newsList_style_12_1600415531169 .boxNewsListStyle_12 .newsLi").css({background:''}); if(val === 1) setIntervalFun(); } }); //=== viewid:newsList_style_18_1609287643467 ===// //-- $(function(){ var viewid="newsList_style_18_1609287643467"; var sys_url="viewid=newsList_style_18_1609287643467&name=newsList&style=style_18&langid=0&pageid=137955&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_18_1609287643467; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:banner_style_01_1611752021070,banner_style_04_1592208445650,banner_style_04_1590633899994 ===// //=== viewid:banner_style_01_1611752021070 ===// $(document).ready(function(){ arrowShow(); $(window).resize(function(){ arrowShow(); }); // 绠ご鏄剧ず function arrowShow(){ if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767) || navigator.userAgent.indexOf('Mac OS X') != -1){ $("#banner_style_01_1611752021070 .bannerStyle_1 .awesome-font").show().siblings().hide(); }else{ $("#banner_style_01_1611752021070 .bannerStyle_1 .awesome-font").hide().siblings().show(); } } }); //=== viewid:banner_style_01_1611752021070 ===// /* * Banner 杞挱鍥剧被 */ var intervaltimer; function Banner(config) { this._default = { 'list':[], 'length':0, 'current':0, 'timer':undefined, // 璁℃椂鍣 'view':undefined, // 瑙嗗浘 'flick':undefined, // 鍦嗙偣閫夋嫨鍣 'duration':3, // 鍒囨崲鏃堕棿闂撮殧 'animation':0.5 // 鍔ㄧ敾鏃堕棿 }; config = $.extend(true, this._default, config); this.config = config; this.init(config); } Banner.prototype.init = function(config) { this.animateStyle = 'normal'; // 鍔ㄧ敾鏁堟灉 ( 鏍规嵁鍔ㄧ敾鏁堟灉, 涓嶅悓鐨勬柟娉曟湁涓嶅悓鐨勫疄鐜 ) this.direction = 'right'; // 褰撳墠婊氬姩鏂瑰悜 this.view = this.config.view; this.config.length = this.config.list.length; this.config.flick = this.view ? this.view.find(".bannerStyle_1 .flicking_con > a") : undefined; }; // 璁$畻涓嬩竴涓鏄剧ず鐨勫浘鐗囩殑绱㈠紩 // by: 濡傛灉娌℃湁浼犲叆鍙傛暟, 鍒欎娇鐢ㄩ厤缃腑鐨勬暟鎹畉his.config.current, 鍚﹀垯浣跨敤浼犲叆鐨勫弬鏁 Banner.prototype.nextIndex = function(by) { by === undefined && (by = this.config.current); var next = this.direction == 'right' ? by + 1 : by - 1; next >= this.config.length && (next = 0); next < 0 && (next = this.config.length - 1); return next; }; //鍥剧墖閾炬帴 $url_html = new Array(); $i = 0; $url_len = 5; $url_html[0] = ""; $url_html[1] = ""; $url_html[2] = ""; $url_html[3] = ""; $url_html[4] = ""; $('#banner_style_01_1611752021070 a.img_url').attr('href',$url_html[$i]); // 璺冲埌鎸囧畾鍥剧墖 Banner.prototype.animateIndex = function(index) { this.endAnimate(); if(index >= 0 && index < this.config.length && this.config.current != index) { if(this.config.current < index) { this.direction = 'right'; this.config.current = index - 1; } else { this.direction = 'left'; this.config.current = index + 1; } this.showIndex(this.config.current); this.startAnimate(); } }; // 鍚戝彸鍔ㄧ敾 Banner.prototype.startAnimateRight = function() { this.direction = 'right'; this.startAnimate(); }; // 鍚戝乏鍔ㄧ敾 Banner.prototype.startAnimateLeft = function() { this.direction = 'left'; this.startAnimate(); }; // 缁撴潫鍔ㄧ敾 Banner.prototype.endAnimate = function() { clearTimeout(this.config.timer); }; // 缁撴潫鍔ㄧ敾 Banner.prototype.hoverEndAnimate = function() { var that = this; intervaltimer = setInterval(function(){ clearTimeout(that.config.timer); },100); }; Banner.prototype.startAnimate = function() { switch(this.animateStyle) { case 'normal': // 榛樿鏁堟灉 this.endAnimate(); if(this.config.length > 1) { var prev = this.config.current, next = this.nextIndex(), end = this.direction == 'right' ? {prev:"-100%", current:"100%"} : {prev:"100%", current:"-100%"}; // 鍓嶄竴涓浘鐗囧拰褰撳墠鍥剧墖鐨勬渶鍚庡仠鐣欎綅缃 this.config.flick.eq(next).addClass("on").siblings().removeClass("on"); // 鎵ц鍔ㄧ敾 var banner = this; this.imgs.eq(prev).stop().animate({"left":end.prev}, this.config.animation, function(){ banner.config.timer = setTimeout(function(){ banner.startAnimate(); },banner.config.duration); }); this.imgs.eq(next).css({"left":end.current}).stop().animate({"left":"0%"}, this.config.animation); this.config.current = next; } break; case 'rotate-3d': // 3D鏃嬭浆鏁堟灉 this.endAnimate(); this.updateBgImg(); if(this.config.length > 1) { var prev = this.config.current, next = this.nextIndex(); this.config.flick.eq(next).addClass("on").siblings().removeClass("on"); this.config.current = next; this.parts.css("transform", "rotateX(" + ((this.direction == 'right' ? ++this.rotate : --this.rotate) * 90) + "deg)"); var banner = this; this.config.timer = setTimeout(function(){ banner.startAnimate(); },banner.config.duration); } $('#banner_style_01_1611752021070 a.img_url').attr('href',$url_html[this.config.current]); break; } }; // 鎸囧畾鏄剧ず鐨勫浘鐗 Banner.prototype.showIndex = function(index) { switch(this.animateStyle) { case 'normal': // 榛樿鏁堟灉 this.imgs.eq(index).css("left","0%").siblings(".img-item").css("left","100%"); this.config.flick.eq(index).addClass("on").siblings().removeClass("on"); break; case 'rotate-3d': // 3D鏃嬭浆鏁堟灉 this.updateFaceBottonTopImg(index); this.config.flick.eq(index).addClass("on").siblings().removeClass("on"); break; } }; /* * ******************************************** * 3D鏃嬭浆鏁堟灉 鐗规湁鍑芥暟 begin */ // 姣忔鏃嬭浆鍓嶉兘闇€瑕佹洿鏂拌儗閮ㄧ殑鍥剧墖 Banner.prototype.updateBgImg = function() { // 璁$畻鑳岄儴瑕佹樉绀虹殑鍥剧墖 var bg_image_index = this.nextIndex(this.nextIndex()); // index: 璁$畻鑳屾櫙鍥剧墖褰撳墠鏄剧ず鍦ㄥ摢涓猧mg涓? 鎬诲叡鏈?涓浘鐗? 鍒嗗埆浣嶄簬姝i潰/搴曢儴/鑳岄儴/椤堕儴, 绱㈠紩鍒嗗埆涓?, 1, 2, 3 ) var c, index = (c = (this.rotate + 2) % 4) >= 0 ? c : c + 4; var banner = this; // console.log('绗?,index,'涓潰-浣跨敤鏇存柊涓虹',bg_image_index,'寮犲浘'); this.parts && this.parts.each(function () { $(this).find('.img:eq('+index+')').css({'background-image': 'url("'+banner.config.list[bg_image_index]+'")'}); }); }; // 鏇存柊姝i潰/椤堕儴/搴曢儴鐨勫浘鐗 // index: 瑕佹樉绀哄摢寮犲浘鐗 // 澶囨敞: 鍥犱负鎬诲叡鏈夊洓涓潰鐨勫浘鐗囬渶瑕佹洿鏂? 鍒濆鍖栨椂, 姝i潰/椤堕儴/搴曢儴鐨勫浘鐗囧彧闇€鏇存柊涓€娆″嵆鍙 (鑳岄儴鐨勫浘鐗囧湪姣忔鏃嬭浆鍓嶉兘闇€瑕佹洿鏂? Banner.prototype.updateFaceBottonTopImg = function(index) { // face, bottom, top: 璁$畻姝i潰/椤堕儴/搴曢儴鍥剧墖褰撳墠鏄剧ず鍦ㄥ摢涓猧mg涓? 鎬诲叡鏈?涓浘鐗? 鍒嗗埆浣嶄簬姝i潰/搴曢儴/鑳岄儴/椤堕儴, 绱㈠紩鍒嗗埆涓?, 1, 2, 3 ) var c, face = (c = this.rotate % 4) >= 0 ? c : c + 4, bottom, top; bottom = face + 1; bottom >= this.config.length && (bottom = 0); top = face - 1; top < 0 && (top = this.config.length - 1); var banner = this; this.parts && this.parts.each(function () { // console.log('绗?,face,'涓潰-浣跨敤鏇存柊涓虹',index,'寮犲浘'); $(this).find('.img:eq('+face+')').css({'background-image': 'url("'+banner.config.list[index]+'")'}); // console.log('绗?,bottom,'涓潰-浣跨敤鏇存柊涓虹',index < banner.config.length - 1 ? index + 1 : 0,'寮犲浘'); $(this).find('.img:eq('+bottom+')').css({'background-image': 'url("'+banner.config.list[index < banner.config.length - 1 ? index + 1 : 0]+'")'}); // console.log('绗?,top,'涓潰-浣跨敤鏇存柊涓虹',index > 0 ? index - 1 : banner.config.length - 1,'寮犲浘'); $(this).find('.img:eq('+top+')').css({'background-image': 'url("'+banner.config.list[index > 0 ? index - 1 : banner.config.length - 1]+'")'}); }); }; // 鍒濆鍖栨棆杞儴鍒咜 璁剧疆3d鏃嬭浆鐨勫洓涓潰鐨勫浘鐗? index琛ㄧず榛樿鏄剧ず鍝紶鍥剧墖 Banner.prototype.initImgPart = function(index) { var banner = this; this.parts && this.parts.each(function () { $(this).find('.img').each(function (i) { var j = 0; switch (i) { case 0: j = index; break; // 姝i潰 case 1: j = index + 1; break; // 搴曢儴 case 2: break; // 鑳岄儴 case 3: j = index - 1; break; // 椤堕儴 } j >= banner.config.length && (j = 0); j < 0 && (j = banner.config.length - 1); $(this).css({'background-image': 'url("'+banner.config.list[j]+'")', 'background-repeat':'no-repeat', 'background-color':'#fff'}); }); }); }; // 鏇存柊鏃嬭浆閮ㄥ垎: 涔嬫墍浠ヤ娇鐢ㄥ畾鏃跺櫒, 鏄洜涓烘棤娉曞疄鏃惰幏鍙栨ā鍧楀搴 Banner.prototype.updateImgPart = function() { this.parts && this.parts.each(function(index) { $(this).css({ "left":$(this).width() * index + "px" }); $(this).find(".img").css({ "background-position": -$(this).width() * index + "px" }); }); var banner = this; setTimeout(function () { banner.updateImgPart(); }, 800); }; /* * 3D鏃嬭浆鏁堟灉 鐗规湁鍑芥暟 end * ******************************************** */ // 鍥剧墖鏁版嵁 var list_banner_style_01_1611752021070 = []; list_banner_style_01_1611752021070.push('https://cdn.yun.sooce.cn/1/10359/jpg/1590629181058baf40ff51a327f1c.jpg?version=1590629390');list_banner_style_01_1611752021070.push('https://cdn.yun.sooce.cn/1/10359/JPG/15906291810580601de30c47dd510.JPG?version=1590629417');list_banner_style_01_1611752021070.push('https://cdn.yun.sooce.cn/1/10359/JPG/15943525893156b0131fabd89f683.JPG?version=1594352807');list_banner_style_01_1611752021070.push('https://cdn.yun.sooce.cn/1/10359/JPG/159435260661083fa71f7bee18b7e.JPG?version=1594352823');list_banner_style_01_1611752021070.push('https://cdn.yun.sooce.cn/1/10359/JPG/1594352625489176a67cd1319d4e8.JPG?version=1594352843'); var banner_banner_style_01_1611752021070; // 杞挱鍥惧璞 $(function(){ // 鍒涘缓杞挱鍥 $arrHref = new Array(); banner_banner_style_01_1611752021070 = new Banner({ 'list':list_banner_style_01_1611752021070, 'view':$('#banner_style_01_1611752021070'), 'duration':parseFloat('3') * 1000, 'animation':parseFloat('0.5') * 1000 }); banner_banner_style_01_1611752021070.animateStyle = 'normal'; banner_banner_style_01_1611752021070.imgs = banner_banner_style_01_1611752021070.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item"); banner_banner_style_01_1611752021070.view.find('a').each(function (i) { $(this).click(function () { if(!$(this).attr('href')) { return false; } }); }); banner_banner_style_01_1611752021070.view.find('a.picSet').each(function(i){ $arrHref[i] = $(this).attr('href'); }); // 鏄剧ず鎸囧畾绱㈠紩鐨勫浘鐗 banner_banner_style_01_1611752021070.showIndex(banner_banner_style_01_1611752021070.config.current); // 鐩戝惉 鐐瑰嚮鍦嗙偣 banner_banner_style_01_1611752021070.config.flick.click(function(){ banner_banner_style_01_1611752021070.animateIndex($(this).index()); $('#banner_style_01_1611752021070 a.img_url').attr('href',$url_html[$(this).index()]); $i = $(this).index(); return false; }); // 鐩戝惉 榧犳爣鎮诞鏃 banner_banner_style_01_1611752021070.view.hover( function(){ banner_banner_style_01_1611752021070.hoverEndAnimate(); banner_banner_style_01_1611752021070.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn(); }, function(){ clearInterval(intervaltimer); banner_banner_style_01_1611752021070.config.timer = setTimeout(function(){ banner_banner_style_01_1611752021070.startAnimateRight(); },banner_banner_style_01_1611752021070.config.duration); banner_banner_style_01_1611752021070.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut() } ); // 鐩戝惉 鐐瑰嚮宸﹀彸鎸夐挳 banner_banner_style_01_1611752021070.view.find(".btn_prev").click(function() { banner_banner_style_01_1611752021070.startAnimateLeft(); }); banner_banner_style_01_1611752021070.view.find(".btn_next").click(function() { banner_banner_style_01_1611752021070.startAnimateRight(); }); // 鐩戝惉 瑙︽懜浜嬩欢 var touchVal = null; document.addEventListener("touchstart", function(e){ if($(e.target).is(banner_banner_style_01_1611752021070.view) || $(e.target).closest("#"+banner_banner_style_01_1611752021070.view.attr("id")).length > 0) { touchVal = {}; touchVal.downX = e.touches[0].clientX; // 璁板綍瑙︽懜璧峰浣嶇疆 } }, false); document.addEventListener("touchmove", function(e){ if(touchVal && touchVal.downX) { touchVal.moveX = e.touches[0].clientX - touchVal.downX; // 璁$畻瑙︽懜涓殑鍋忕Щ浣嶇疆 } }, false); document.addEventListener("touchend", function(e){ if(touchVal && touchVal.moveX){ if(touchVal.moveX > 30){ banner_banner_style_01_1611752021070.startAnimateLeft(); // 瑙︽懜鐢熸晥 if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } }else if(touchVal.moveX < -30){ banner_banner_style_01_1611752021070.startAnimateRight(); // 瑙︽懜鐢熸晥 if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } } } touchVal = null; }, false); // 杩愯 banner_banner_style_01_1611752021070.config.timer = setTimeout(function(){ banner_banner_style_01_1611752021070.startAnimateRight(); }, banner_banner_style_01_1611752021070.config.duration); }); //=== viewid:newsList_style_18_1615366304705 ===// //-- $(function(){ var viewid="newsList_style_18_1615366304705"; var sys_url="viewid=newsList_style_18_1615366304705&name=newsList&style=style_18&langid=0&pageid=137955&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_18_1615366304705; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_18_1615366335995 ===// //-- $(function(){ var viewid="newsList_style_18_1615366335995"; var sys_url="viewid=newsList_style_18_1615366335995&name=newsList&style=style_18&langid=0&pageid=137955&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_18_1615366335995; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_18_1615366478645 ===// //-- $(function(){ var viewid="newsList_style_18_1615366478645"; var sys_url="viewid=newsList_style_18_1615366478645&name=newsList&style=style_18&langid=0&pageid=137955&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_18_1615366478645; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_18_1589976533118 ===// //-- $(function(){ var viewid="newsList_style_18_1589976533118"; var sys_url="viewid=newsList_style_18_1589976533118&name=newsList&style=style_18&langid=0&pageid=137955&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_18_1589976533118; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_18_1589976611637 ===// //-- $(function(){ var viewid="newsList_style_18_1589976611637"; var sys_url="viewid=newsList_style_18_1589976611637&name=newsList&style=style_18&langid=0&pageid=137955&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_18_1589976611637; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_18_1589976621975 ===// //-- $(function(){ var viewid="newsList_style_18_1589976621975"; var sys_url="viewid=newsList_style_18_1589976621975&name=newsList&style=style_18&langid=0&pageid=137955&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_18_1589976621975; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:banner_style_04_1592208445650 ===// $(document).stop().ready(function(){ var speed = ""+15+""; var itemMove = document.getElementById("banner_style_04_1592208445650imgMove"); var itemOne = document.getElementById("banner_style_04_1592208445650itemOne"); var itemTwo = document.getElementById("banner_style_04_1592208445650itemTwo"); var itemThree = document.getElementById("banner_style_04_1592208445650itemThree"); itemTwo.innerHTML = itemOne.innerHTML; itemThree.innerHTML = itemOne.innerHTML; var imgScroll=setInterval(Marquee,speed); function Marquee(){ if(itemTwo.offsetWidth - itemMove.scrollLeft <= 0) itemMove.scrollLeft = itemMove.scrollLeft - itemTwo.offsetWidth; else{ itemMove.scrollLeft++; } } if(typeof(imgLazyloadLib)=="function")imgLazyloadLib($("#banner_style_04_1592208445650imgMove img")); }); //=== viewid:banner_style_04_1590633899994 ===// $(document).stop().ready(function(){ var speed = ""+15+""; var itemMove = document.getElementById("banner_style_04_1590633899994imgMove"); var itemOne = document.getElementById("banner_style_04_1590633899994itemOne"); var itemTwo = document.getElementById("banner_style_04_1590633899994itemTwo"); var itemThree = document.getElementById("banner_style_04_1590633899994itemThree"); itemTwo.innerHTML = itemOne.innerHTML; itemThree.innerHTML = itemOne.innerHTML; var imgScroll=setInterval(Marquee,speed); function Marquee(){ if(itemTwo.offsetWidth - itemMove.scrollLeft <= 0) itemMove.scrollLeft = itemMove.scrollLeft - itemTwo.offsetWidth; else{ itemMove.scrollLeft++; } } if(typeof(imgLazyloadLib)=="function")imgLazyloadLib($("#banner_style_04_1590633899994imgMove img")); }); //=== viewid:productList_style_37_1589525372750 ===// var SpecDebug = false; /** * @Content:鑾峰彇鏌愪釜鍖哄煙(div id="#spec_{s_Hash}")鎵€閫夋嫨鐨勫悇涓鏍兼墍閫変腑鐨 * @Author:zhaogh * @Version:10.0.0 * @Param:s_Hash varchar 鍖哄煙鐗瑰緛 * @Return:[{DataIndex:0,DataVal:'#FFFFF'}] */ $.ajaxSetup({ cache: false }); function SpecCurSelect(s_Hash){ var arrReturn = []; var curArea = $("#spec_"+s_Hash); $(".sys_item_spec .sys_item_specpara",curArea).each(function(){ $("li",$(this)).each(function(){ if($(this).hasClass('selected')){ var curData = { 'DataIndex' : $(this).data('index'), 'DataVal' : $(this).data('aid'), }; arrReturn.push(curData); } }); }); return arrReturn; } function SpecGetAttrPrice(s_Hash,is_int){//鏄惁鍙栨暣 if(typeof(is_int)=="undefined") var is_int = 0; var curArea = $("#spec_"+s_Hash); var defaultstats=true; var _val=''; var _resp={ mktprice:".sys_item_mktprice", price:".sys_item_price" } $(".sys_item_spec .sys_item_specpara",curArea).each(function(){ var i=$(this); var v=i.attr("data-attrval"); if(!v){ defaultstats=false; }else{ _val+=_val!=""?"_":""; _val+=v; } }); var curResult = {}; if(!!defaultstats){ if(!sys_item['sys_attrprice'][s_Hash][_val]){ return false; } var curResult = sys_item['sys_attrprice'][s_Hash][_val]; _price = curResult['price']; var backprice = _price; //_price = sys_item['sys_attrprice'][s_Hash][_val]['price']; SpecIDSpecPriceSet(s_Hash,sys_item['sys_attrprice'][s_Hash][_val]['IDSpecPrice']); SpecIDSpecStockSet(s_Hash,sys_item['sys_attrnum'][s_Hash][_val]['num']); if(sys_item['sys_attrnum'][s_Hash][_val]['num']>0){//涓嶆槸涓嶉檺搴撳瓨鐨 var curNum = parseInt($("#"+s_Hash+"_ProdNum").val()); if(!curNum || curNum<1)curNum = 1; var diffNum = sys_item['sys_attrnum'][s_Hash][_val]['num']-sys_item['sys_attrnum'][s_Hash][_val]['nums']; $("#"+s_Hash+"_ProdNum").attr('data-maxnum',diffNum); $('.snum').html('鍓╀綑搴撳瓨'+diffNum+'浠?); if(diffNum > 0){ $('.havnum').show(); $('.nonum').hide(); }else{ $('.havnum').hide(); $('.nonum').show(); } CheckStock(s_Hash); } }else{ var curResult = false; var allNum = 0; $.each(sys_item['sys_attrnum'][s_Hash],function(i,item){ allNum = allNum+parseInt(item.num); }); SpecIDSpecStockSet(s_Hash,allNum); //var curResult = sys_item['price'][s_Hash]; //_price = curResult['price']; //_mktprice = sys_item['mktprice']; _price = sys_item['price'][s_Hash]; var backprice = _price; } _price = price_format(_price); //杈撳嚭浠锋牸 var newPriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPriceNewID']); if(newPriceObj){ if(is_int==1){ if(typeof(_price)=='string') _price = _price.replace(/,/g, ""); _price = parseFloat(_price); _price = Math.round(_price); } newPriceObj.text(_price); } var oldPriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPriceOldID']); if(oldPriceObj){ if(is_int==1){ var oldprice = sys_item['price_old'][s_Hash]; if(typeof(oldprice)=='string') sys_item['price_old'][s_Hash] = oldprice.replace(/,/g, ""); sys_item['price_old'][s_Hash] = parseFloat(sys_item['price_old'][s_Hash]); sys_item['price_old'][s_Hash] = Math.round(sys_item['price_old'][s_Hash]); } oldPriceObj.text(sys_item['price_old'][s_Hash]); } var packagePriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPricePID']); if(packagePriceObj && curResult){ if(curResult['PackagePrice']){ if(is_int==1){ var PackagePrice = curResult['PackagePrice']; if(typeof(PackagePrice)=='string') curResult['PackagePrice'] = PackagePrice.replace(/,/g, ""); curResult['PackagePrice'] = parseFloat(curResult['PackagePrice']); curResult['PackagePrice'] = Math.round(curResult['PackagePrice']);//鏄惁鍙栨暣 } packagePriceObj.text(curResult['PackagePrice']); $(".packageTips").css("display","block"); }else{ packagePriceObj.text("鏃?); $(".packageTips").css("display","none"); } } var memberPriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPriceMID']); if(memberPriceObj && curResult && curResult["mprice"]){ if(curResult['mprice']){ if(is_int==1){ var mprice = curResult['mprice']; if(typeof(mprice)=='string') curResult['mprice'] = mprice.replace(/,/g, ""); curResult['mprice'] = parseFloat(curResult['mprice']); curResult['mprice'] = Math.round(curResult['mprice']);//鏄惁鍙栨暣 } curResult['mprice'] = price_format(curResult['mprice']); memberPriceObj.text(curResult['mprice']); }else{ memberPriceObj.text("鏃?); } } //涓婇潰閭d釜mprice鏈変粈涔堢敤鐨勶紝淇婃澃鐪嬬湅锛屾垜鍏堥噸鍐欎竴涓澶氳鏍艰兘澶熸甯镐娇鐢ㄥ厛 by zhaobin var PriceObj = $("#"+sys_item['price_id'][s_Hash]['HTMLPricePID']); if(PriceObj && curResult && curResult["price"] && !curResult['PackagePrice']){ if(curResult['price']){ if(is_int==1) { var price = curResult['price']; if(typeof(price)=='string') curResult['price'] = price.replace(/,/g, ""); curResult['price'] = parseFloat(curResult['price']); curResult['price'] = Math.round(curResult['price']);//鏄惁鍙栨暣 } curResult['price'] = price_format(curResult['price']); PriceObj.text(curResult['price']); }else{ PriceObj.text("鏃?); } } } function CheckStock(s_Hash){ var prodnumObj = $("#"+s_Hash+"_ProdNum"); var curNum = parseInt(prodnumObj.val()); var maxNum = parseInt(prodnumObj.data('maxnum')); if(!curNum || curNum<1)curNum = 1; if(maxNum{ productList_style_37_1589525372750setup37(); },1000); }else { $('#productList_style_37_1589525372750 .sub_prod_kind #prod_Sub_kind_div').css('height',($('#productList_style_37_1589525372750 .prod_subli_kind').height() - 2)+'px'); } } var clickCount = 1; $('#productList_style_37_1589525372750 .sub_prod_kind .more').click(function(){ if(clickCount == 0){ $(this).parent('.sub_prod_kind').find('#prod_Sub_kind_div').css('height',($('#productList_style_37_1589525372750 .prod_subli_kind').height() - 2)+'px'); clickCount = 1; }else{ $(this).parent('.sub_prod_kind').find('#prod_Sub_kind_div').css('height','auto'); clickCount = 0; } $(this).find('.more_icon').toggleClass('reversal'); }); productList_style_37_1589525372750setup37(); //=== viewid:productList_style_37_1589525372750 ===// if(typeof addcart !== 'function'){ function addcart(pid,is_virtual,idspecprice,idpackage){ var lang=0; if(lang == '0'){ lang = Default_isFT; if(BodyIsFt == '0'){ lang = BodyIsFt; }else if(BodyIsFt == '1'){ lang = BodyIsFt; } } var packStr = ''; if(typeof (idpackage) != 'undefined'){ packStr = "&idpackage="+idpackage; } if(is_mobile()){ var locationUrl = "https://s207js.nicebox.cn/exusers/u_cart.php?idweb=10359&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://s207js.nicebox.cn/exusers/u_cart.php?idweb=10359&lang="+lang+"&act=add&ismobile=1" + pid + (idspecprice ? idspecprice : ""); } var res = "0"; if(res == '1' && is_virtual == 0){ locationUrl+= "&use_ajax=1&callback=?"; $.getJSON(locationUrl,function(ret){ if(ret.i_AddFlag){ $.alerts.dialogClass = 'success'; alert(ret.message); } }); }else{ window.location = locationUrl; } }else{ var locationUrl = "https://s207js.nicebox.cn/exusers/u_cart.php?idweb=10359&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://s207js.nicebox.cn/exusers/u_cart.php?idweb=10359&lang="+lang+"&act=add&ispc=1" + pid + (idspecprice ? idspecprice : ""); } document.getElementById("boxName").innerHTML="鍔犲叆璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src=locationUrl; box.Show({width:"840px",height:"420px"}); } } } function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } $(function(){ $('#productList_style_37_1589525372750 .prod_infos .end_time').each(function(){ purchase_clock(this);//寮€鍚€掕鏃 }); }); //鎷艰喘鍊掕鏃 function purchase_clock(obj) { var time = parseInt($(obj).attr('data-time')); if (time > 0) { var str = ''; var num = 0; num = parseInt(time/86400); if(num > 0)str += num.toString() + '澶?; time -= num * 86400; num = parseInt(time/3600); if(num > 0)str += num.toString() + '鏃?; time -= num * 3600; num = parseInt(time/60); if(num > 0)str += num.toString() + '鍒?; time -= num * 60; if(num > 0)str += time.toString() + '绉?; $(obj).text(str).attr('data-time', parseInt($(obj).attr('data-time')) - 1); setTimeout(function(){ purchase_clock(obj); }, 1000); } else { $(obj).text('0澶?鏃?鍒?绉?); } }