//=== viewid:dh_style_35_1575428127413,dh_style_35_1576068068851 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } var is_mobile_boolean = is_mobile(); $(function(){ /*pc,鎵嬫満鏄剧ず闅愯棌*/ }) //=== viewid:dh_style_35_1575428127413 ===// 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_35_1575428127413(){ $("#dh_style_35_1575428127413 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_35_1575428127413(); }) $(function(){ $("#dh_style_35_1575428127413 .fa-navicon").click(function(){ $("#dh_style_35_1575428127413").addClass('clearTransform'); $("#dh_style_35_1575428127413 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_35_1575428127413(); $("#dh_style_35_1575428127413 .subBox").css("top",$("#dh_style_35_1575428127413 .menuUl_box").height()); if($("#dh_style_35_1575428127413 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_35_1575428127413 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_35_1575428127413 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_35_1575428127413 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_35_1575428127413 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_35_1575428127413 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_35_1575428127413 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_35_1575428127413 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_35_1575428127413 .subBox").hide(); }) //椋庢牸41 42 } }) //=== viewid:banner_style_01_1578123244912,banner_style_01_1575439529817,banner_style_04_1576027526590 ===// //=== viewid:banner_style_01_1578123244912 ===// $(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_1578123244912 .bannerStyle_1 .awesome-font").show().siblings().hide(); }else{ $("#banner_style_01_1578123244912 .bannerStyle_1 .awesome-font").hide().siblings().show(); } } }); //=== viewid:banner_style_01_1578123244912 ===// /* * 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 = 3; $url_html[0] = ""; $url_html[1] = ""; $url_html[2] = ""; $('#banner_style_01_1578123244912 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_1578123244912 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_1578123244912 = []; list_banner_style_01_1578123244912.push('https://cdn.yun.sooce.cn/4/50685/jpg/1575439593021e4b2b749fc69db27.jpg?version=1575439597');list_banner_style_01_1578123244912.push('https://cdn.yun.sooce.cn/4/50685/jpg/1575439593022cd73b4b80ed37b3c.jpg?version=1575439597');list_banner_style_01_1578123244912.push('https://cdn.yun.sooce.cn/4/50685/jpg/1575439593023c128eeb0911ccb1e.jpg?version=1575439597'); var banner_banner_style_01_1578123244912; // 杞挱鍥惧璞 $(function(){ // 鍒涘缓杞挱鍥 $arrHref = new Array(); banner_banner_style_01_1578123244912 = new Banner({ 'list':list_banner_style_01_1578123244912, 'view':$('#banner_style_01_1578123244912'), 'duration':parseFloat('3') * 1000, 'animation':parseFloat('0.5') * 1000 }); banner_banner_style_01_1578123244912.animateStyle = 'normal'; banner_banner_style_01_1578123244912.imgs = banner_banner_style_01_1578123244912.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item"); banner_banner_style_01_1578123244912.view.find('a').each(function (i) { $(this).click(function () { if(!$(this).attr('href')) { return false; } }); }); banner_banner_style_01_1578123244912.view.find('a.picSet').each(function(i){ $arrHref[i] = $(this).attr('href'); }); // 鏄剧ず鎸囧畾绱㈠紩鐨勫浘鐗 banner_banner_style_01_1578123244912.showIndex(banner_banner_style_01_1578123244912.config.current); // 鐩戝惉 鐐瑰嚮鍦嗙偣 banner_banner_style_01_1578123244912.config.flick.click(function(){ banner_banner_style_01_1578123244912.animateIndex($(this).index()); $('#banner_style_01_1578123244912 a.img_url').attr('href',$url_html[$(this).index()]); $i = $(this).index(); return false; }); // 鐩戝惉 榧犳爣鎮诞鏃 banner_banner_style_01_1578123244912.view.hover( function(){ banner_banner_style_01_1578123244912.hoverEndAnimate(); banner_banner_style_01_1578123244912.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn(); }, function(){ clearInterval(intervaltimer); banner_banner_style_01_1578123244912.config.timer = setTimeout(function(){ banner_banner_style_01_1578123244912.startAnimateRight(); },banner_banner_style_01_1578123244912.config.duration); banner_banner_style_01_1578123244912.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut() } ); // 鐩戝惉 鐐瑰嚮宸﹀彸鎸夐挳 banner_banner_style_01_1578123244912.view.find(".btn_prev").click(function() { banner_banner_style_01_1578123244912.startAnimateLeft(); }); banner_banner_style_01_1578123244912.view.find(".btn_next").click(function() { banner_banner_style_01_1578123244912.startAnimateRight(); }); // 鐩戝惉 瑙︽懜浜嬩欢 var touchVal = null; document.addEventListener("touchstart", function(e){ if($(e.target).is(banner_banner_style_01_1578123244912.view) || $(e.target).closest("#"+banner_banner_style_01_1578123244912.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_1578123244912.startAnimateLeft(); // 瑙︽懜鐢熸晥 if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } }else if(touchVal.moveX < -30){ banner_banner_style_01_1578123244912.startAnimateRight(); // 瑙︽懜鐢熸晥 if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } } } touchVal = null; }, false); // 杩愯 banner_banner_style_01_1578123244912.config.timer = setTimeout(function(){ banner_banner_style_01_1578123244912.startAnimateRight(); }, banner_banner_style_01_1578123244912.config.duration); }); //=== viewid:tab_style_03_1578124397331 ===// $(function(){ tab_style03_init("div_tab_style_03_1578124397331",5); setHover_Choice("div_tab_style_03_1578124397331"); $("#tab_style_03_1578124397331 .tab_nav").hide(); $("#tab_style_03_1578124397331 .tab_box").css({top:'0px',bottom:'0px',right:'0px',left:'0px',height:'100%',width:'100%'}); }); //=== viewid:tab_style_03_1578124397331,tab_style_03_1578273392171,tab_style_03_1578293314491,tab_style_03_1575962256082 ===// //=== viewid:productList_style_03_1578129079768 ===// //-- $(function(){ var viewid="productList_style_03_1578129079768"; var sys_url="viewid=productList_style_03_1578129079768&name=productList&style=style_03&langid=0&pageid=1816967&viewCtrl=default&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.moreParamsproductList_style_03_1578129079768; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1578129079768,productList_style_03_1578130137454,productList_style_03_1578130196351,productList_style_03_1578130259585,productList_style_03_1578130351683,productList_style_03_1575623541968,productList_style_03_1588132091386 ===// var showSub = '0'; //=== viewid:productList_style_03_1578129079768,productList_style_03_1578130137454,productList_style_03_1578130196351,productList_style_03_1578130259585,productList_style_03_1578130351683,productList_style_03_1575623541968,productList_style_03_1588132091386 ===// //=== viewid:productList_style_03_1578129079768 ===// 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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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_03_1578129079768 .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澶?鏃?鍒?绉?); } } //=== viewid:productList_style_03_1578130137454 ===// //-- $(function(){ var viewid="productList_style_03_1578130137454"; var sys_url="viewid=productList_style_03_1578130137454&name=productList&style=style_03&langid=0&pageid=1816967&viewCtrl=default&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.moreParamsproductList_style_03_1578130137454; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1578130137454 ===// 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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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_03_1578130137454 .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澶?鏃?鍒?绉?); } } //=== viewid:productList_style_03_1578130196351 ===// //-- $(function(){ var viewid="productList_style_03_1578130196351"; var sys_url="viewid=productList_style_03_1578130196351&name=productList&style=style_03&langid=0&pageid=1816967&viewCtrl=default&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.moreParamsproductList_style_03_1578130196351; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1578130196351 ===// 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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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_03_1578130196351 .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澶?鏃?鍒?绉?); } } //=== viewid:productList_style_03_1578130259585 ===// //-- $(function(){ var viewid="productList_style_03_1578130259585"; var sys_url="viewid=productList_style_03_1578130259585&name=productList&style=style_03&langid=0&pageid=1816967&viewCtrl=default&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.moreParamsproductList_style_03_1578130259585; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1578130259585 ===// 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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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_03_1578130259585 .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澶?鏃?鍒?绉?); } } //=== viewid:productList_style_03_1578130351683 ===// //-- $(function(){ var viewid="productList_style_03_1578130351683"; var sys_url="viewid=productList_style_03_1578130351683&name=productList&style=style_03&langid=0&pageid=1816967&viewCtrl=default&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.moreParamsproductList_style_03_1578130351683; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1578130351683 ===// 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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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_03_1578130351683 .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澶?鏃?鍒?绉?); } } //=== viewid:newsList_style_02_1578131322450 ===// //-- $(function(){ var viewid="newsList_style_02_1578131322450"; var sys_url="viewid=newsList_style_02_1578131322450&name=newsList&style=style_02&langid=0&pageid=1816967&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_02_1578131322450; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:tab_style_03_1578273392171 ===// $(function(){ tab_style03_init("div_tab_style_03_1578273392171",5); setClick_Choice("div_tab_style_03_1578273392171"); $("#tab_style_03_1578273392171 .tab_nav").show(); $("#tab_style_03_1578273392171 .tab_box").css({top:'',bottom:'',right:'',left:'',height:'',width:''}); }); //=== viewid:tab_style_03_1578293314491 ===// //-- $(function(){ var viewid="newsList_style_02_1578294414405"; var sys_url="viewid=newsList_style_02_1578294414405&name=newsList&style=style_02&langid=0&pageid=1816967&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_02_1578294414405; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:tab_style_03_1578293314491 ===// //-- $(function(){ var viewid="newsList_style_02_1578295298464"; var sys_url="viewid=newsList_style_02_1578295298464&name=newsList&style=style_02&langid=0&pageid=1816967&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_02_1578295298464; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:tab_style_03_1578293314491 ===// $(function(){ tab_style03_init("div_tab_style_03_1578293314491",5); setClick_Choice("div_tab_style_03_1578293314491"); $("#tab_style_03_1578293314491 .tab_nav").show(); $("#tab_style_03_1578293314491 .tab_box").css({top:'',bottom:'',right:'',left:'',height:'',width:''}); }); //=== viewid:banner_style_01_1575439529817 ===// $(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_1575439529817 .bannerStyle_1 .awesome-font").show().siblings().hide(); }else{ $("#banner_style_01_1575439529817 .bannerStyle_1 .awesome-font").hide().siblings().show(); } } }); //=== viewid:banner_style_01_1575439529817 ===// /* * 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 = 3; $url_html[0] = "[PAGE_URL@1829083@pageid=1829083@PAGE_URL]"; $url_html[1] = "[PAGE_URL@1829299@pageid=1829299@PAGE_URL]"; $url_html[2] = "[PAGE_URL@1829297@pageid=1829297@PAGE_URL]"; $('#banner_style_01_1575439529817 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_1575439529817 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_1575439529817 = []; list_banner_style_01_1575439529817.push('https://cdn.yun.sooce.cn/4/50685/jpg/1575439593021e4b2b749fc69db27.jpg?version=1575439597');list_banner_style_01_1575439529817.push('https://cdn.yun.sooce.cn/4/50685/jpg/1575439593022cd73b4b80ed37b3c.jpg?version=1575439597');list_banner_style_01_1575439529817.push('https://cdn.yun.sooce.cn/4/50685/jpg/1592447908409e42b22213a3d9547.jpg?version=0'); var banner_banner_style_01_1575439529817; // 杞挱鍥惧璞 $(function(){ // 鍒涘缓杞挱鍥 $arrHref = new Array(); banner_banner_style_01_1575439529817 = new Banner({ 'list':list_banner_style_01_1575439529817, 'view':$('#banner_style_01_1575439529817'), 'duration':parseFloat('3') * 1000, 'animation':parseFloat('0.5') * 1000 }); banner_banner_style_01_1575439529817.animateStyle = 'normal'; banner_banner_style_01_1575439529817.imgs = banner_banner_style_01_1575439529817.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item"); banner_banner_style_01_1575439529817.view.find('a').each(function (i) { $(this).click(function () { if(!$(this).attr('href')) { return false; } }); }); banner_banner_style_01_1575439529817.view.find('a.picSet').each(function(i){ $arrHref[i] = $(this).attr('href'); }); // 鏄剧ず鎸囧畾绱㈠紩鐨勫浘鐗 banner_banner_style_01_1575439529817.showIndex(banner_banner_style_01_1575439529817.config.current); // 鐩戝惉 鐐瑰嚮鍦嗙偣 banner_banner_style_01_1575439529817.config.flick.click(function(){ banner_banner_style_01_1575439529817.animateIndex($(this).index()); $('#banner_style_01_1575439529817 a.img_url').attr('href',$url_html[$(this).index()]); $i = $(this).index(); return false; }); // 鐩戝惉 榧犳爣鎮诞鏃 banner_banner_style_01_1575439529817.view.hover( function(){ banner_banner_style_01_1575439529817.hoverEndAnimate(); banner_banner_style_01_1575439529817.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn(); }, function(){ clearInterval(intervaltimer); banner_banner_style_01_1575439529817.config.timer = setTimeout(function(){ banner_banner_style_01_1575439529817.startAnimateRight(); },banner_banner_style_01_1575439529817.config.duration); banner_banner_style_01_1575439529817.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut() } ); // 鐩戝惉 鐐瑰嚮宸﹀彸鎸夐挳 banner_banner_style_01_1575439529817.view.find(".btn_prev").click(function() { banner_banner_style_01_1575439529817.startAnimateLeft(); }); banner_banner_style_01_1575439529817.view.find(".btn_next").click(function() { banner_banner_style_01_1575439529817.startAnimateRight(); }); // 鐩戝惉 瑙︽懜浜嬩欢 var touchVal = null; document.addEventListener("touchstart", function(e){ if($(e.target).is(banner_banner_style_01_1575439529817.view) || $(e.target).closest("#"+banner_banner_style_01_1575439529817.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_1575439529817.startAnimateLeft(); // 瑙︽懜鐢熸晥 if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } }else if(touchVal.moveX < -30){ banner_banner_style_01_1575439529817.startAnimateRight(); // 瑙︽懜鐢熸晥 if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } } } touchVal = null; }, false); // 杩愯 banner_banner_style_01_1575439529817.config.timer = setTimeout(function(){ banner_banner_style_01_1575439529817.startAnimateRight(); }, banner_banner_style_01_1575439529817.config.duration); }); //=== viewid:searchbox_style_01_1575452565870 ===// $("#searchbox_style_01_1575452565870 .search-btn").click(function(){ var kw=$("#searchbox_style_01_1575452565870 .search_input").val(); var gourl = $(this).attr("attrhref"); href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"pkeyword="+kw; window.open(href); }) function searchOne(lname){ var gourl = $(lname).attr("attrhref"); href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"pkeyword="+$(lname).html(); window.open(href); } $("#searchbox_style_01_1575452565870 .search_input").val(decodeURIComponent(Request("pkeyword"))); function goSearch(form) { console.log('form: ', form); $(form).find('.search-btn').trigger('click'); return false; } //=== viewid:productList_style_03_1575623541968 ===// //-- $(function(){ var viewid="productList_style_03_1575623541968"; var sys_url="viewid=productList_style_03_1575623541968&name=productList&style=style_03&langid=0&pageid=1816967&viewCtrl=default&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.moreParamsproductList_style_03_1575623541968; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1575623541968 ===// 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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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_03_1575623541968 .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澶?鏃?鍒?绉?); } } //=== viewid:productList_style_03_1588132091386 ===// //-- $(function(){ var viewid="productList_style_03_1588132091386"; var sys_url="viewid=productList_style_03_1588132091386&name=productList&style=style_03&langid=0&pageid=1816967&viewCtrl=default&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.moreParamsproductList_style_03_1588132091386; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1588132091386 ===// 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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://admin.hxrwl.net/exusers/u_cart.php?idweb=50685&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_03_1588132091386 .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澶?鏃?鍒?绉?); } } //=== viewid:newsList_style_18_1575883047941 ===// //-- $(function(){ var viewid="newsList_style_18_1575883047941"; var sys_url="viewid=newsList_style_18_1575883047941&name=newsList&style=style_18&langid=0&pageid=1816967&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_1575883047941; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_03_1575883327542 ===// //-- $(function(){ var viewid="newsList_style_03_1575883327542"; var sys_url="viewid=newsList_style_03_1575883327542&name=newsList&style=style_03&langid=0&pageid=1816967&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_03_1575883327542; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_04_1575885068735 ===// //-- $(function(){ var viewid="newsList_style_04_1575885068735"; var sys_url="viewid=newsList_style_04_1575885068735&name=newsList&style=style_04&langid=0&pageid=1816967&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_04_1575885068735; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_02_1575882345361 ===// //-- $(function(){ var viewid="newsList_style_02_1575882345361"; var sys_url="viewid=newsList_style_02_1575882345361&name=newsList&style=style_02&langid=0&pageid=1816967&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_02_1575882345361; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_04_1575939729623 ===// //-- $(function(){ var viewid="newsList_style_04_1575939729623"; var sys_url="viewid=newsList_style_04_1575939729623&name=newsList&style=style_04&langid=0&pageid=1816967&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_04_1575939729623; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_18_1575961518144 ===// //-- $(function(){ var viewid="newsList_style_18_1575961518144"; var sys_url="viewid=newsList_style_18_1575961518144&name=newsList&style=style_18&langid=0&pageid=1816967&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_1575961518144; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_03_1575961518147 ===// //-- $(function(){ var viewid="newsList_style_03_1575961518147"; var sys_url="viewid=newsList_style_03_1575961518147&name=newsList&style=style_03&langid=0&pageid=1816967&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_03_1575961518147; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_04_1575961518152 ===// //-- $(function(){ var viewid="newsList_style_04_1575961518152"; var sys_url="viewid=newsList_style_04_1575961518152&name=newsList&style=style_04&langid=0&pageid=1816967&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_04_1575961518152; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_02_1575961518008 ===// //-- $(function(){ var viewid="newsList_style_02_1575961518008"; var sys_url="viewid=newsList_style_02_1575961518008&name=newsList&style=style_02&langid=0&pageid=1816967&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_02_1575961518008; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_18_1575961592417 ===// //-- $(function(){ var viewid="newsList_style_18_1575961592417"; var sys_url="viewid=newsList_style_18_1575961592417&name=newsList&style=style_18&langid=0&pageid=1816967&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_1575961592417; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_03_1575961592420 ===// //-- $(function(){ var viewid="newsList_style_03_1575961592420"; var sys_url="viewid=newsList_style_03_1575961592420&name=newsList&style=style_03&langid=0&pageid=1816967&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_03_1575961592420; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_04_1575961592426 ===// //-- $(function(){ var viewid="newsList_style_04_1575961592426"; var sys_url="viewid=newsList_style_04_1575961592426&name=newsList&style=style_04&langid=0&pageid=1816967&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_04_1575961592426; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_02_1575961592290 ===// //-- $(function(){ var viewid="newsList_style_02_1575961592290"; var sys_url="viewid=newsList_style_02_1575961592290&name=newsList&style=style_02&langid=0&pageid=1816967&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_02_1575961592290; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:tab_style_03_1575962256082 ===// $(function(){ tab_style03_init("div_tab_style_03_1575962256082",5); setHover_Choice("div_tab_style_03_1575962256082"); $("#tab_style_03_1575962256082 .tab_nav").show(); $("#tab_style_03_1575962256082 .tab_box").css({top:'',bottom:'',right:'',left:'',height:'',width:''}); }); //=== viewid:banner_style_04_1576027526590 ===// $(document).stop().ready(function(){ var speed = ""+15+""; var itemMove = document.getElementById("banner_style_04_1576027526590imgMove"); var itemOne = document.getElementById("banner_style_04_1576027526590itemOne"); var itemTwo = document.getElementById("banner_style_04_1576027526590itemTwo"); var itemThree = document.getElementById("banner_style_04_1576027526590itemThree"); 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_1576027526590imgMove img")); }); //=== viewid:newsList_style_04_1576035338852 ===// //-- $(function(){ var viewid="newsList_style_04_1576035338852"; var sys_url="viewid=newsList_style_04_1576035338852&name=newsList&style=style_04&langid=0&pageid=1816967&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_04_1576035338852; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_02_1576051167839 ===// //-- $(function(){ var viewid="newsList_style_02_1576051167839"; var sys_url="viewid=newsList_style_02_1576051167839&name=newsList&style=style_02&langid=0&pageid=1816967&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_02_1576051167839; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_18_1576052799013 ===// //-- $(function(){ var viewid="newsList_style_18_1576052799013"; var sys_url="viewid=newsList_style_18_1576052799013&name=newsList&style=style_18&langid=0&pageid=1816967&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_1576052799013; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_18_1576053649542 ===// //-- $(function(){ var viewid="newsList_style_18_1576053649542"; var sys_url="viewid=newsList_style_18_1576053649542&name=newsList&style=style_18&langid=0&pageid=1816967&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_1576053649542; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_02_1576053958023 ===// //-- $(function(){ var viewid="newsList_style_02_1576053958023"; var sys_url="viewid=newsList_style_02_1576053958023&name=newsList&style=style_02&langid=0&pageid=1816967&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_02_1576053958023; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_26_1576055915199 ===// //-- $(function(){ var viewid="newsList_style_26_1576055915199"; var sys_url="viewid=newsList_style_26_1576055915199&name=newsList&style=style_26&langid=0&pageid=1816967&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_26_1576055915199; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_26_1576055915199 ===// if(false) { $('#newsList_style_26_1576055915199 #boxNewsList1 .sumary_list').each(function (i) { if (i < 6) { $(this).show(); } else { $(this).hide(); } }) } $(function(){ var box1 = $('#newsList_style_26_1576055915199 .bcon'); var box2 = $('#newsList_style_26_1576055915199 .list_lh'); var ul1 = $('#newsList_style_26_1576055915199 #boxNewsList1'); var ul2 = $('#newsList_style_26_1576055915199 #boxNewsList2'); var item_height = 0 ,max_height = 0; if(!false){ //璁$畻楂樺害 function heightFunc(){ box2.css('position','absolute'); $('#newsList_style_26_1576055915199 #boxNewsList1 .sumary_list').each(function(i){ if(i < 6){ item_height += $(this).height() + parseInt($(this).css('paddingBottom')) + parseInt($(this).css('paddingTop')) + parseInt($(this).css('marginBottom')) + parseInt($(this).css('marginTop')); } max_height += $(this).height() + parseInt($(this).css('paddingBottom')) + parseInt($(this).css('paddingTop')) + parseInt($(this).css('marginBottom')) + parseInt($(this).css('marginTop')); if ($(this).height() == 0) { max_height += 100; item_height += 100; } }); box1.height(item_height-5); } heightFunc(); $(window).resize(function(){ item_height = 0; max_height = 0; heightFunc(); }); ul2.html(ul1.html()); var value = 0; var speed = 100; if(0 == 0){ box2.css('top','0px'); }else{ box2.css('top',-max_height+'px'); } //婊氬姩浜嬩欢 function scrollFunc(){ if(0 == 0){ if(parseInt(box2.css('top')) <= -max_height) { box2.css('top','0px'); value = 0; }else{ value --; box2.css('top',value+'px'); } }else{ if(parseInt(box2.css('top')) >= 0) { box2.css('top',-max_height+'px'); value = -max_height; }else{ value = parseInt(box2.css('top')) + 1; box2.css('top',value+'px'); } } } //缂栬緫鐘舵€佷笉婊氬姩 var timer = setInterval(scrollFunc,speed); //榧犳爣浜嬩欢鍋滄瀹氭椂鍣 box1.mouseover(function(){ clearInterval(timer); }).mouseout(function(){ timer = setInterval(scrollFunc,speed); }); } }) //=== viewid:flink_style_01_1616834945074 ===// //=== viewid:dh_style_35_1576068068851 ===// 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_35_1576068068851(){ $("#dh_style_35_1576068068851 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_35_1576068068851(); }) $(function(){ $("#dh_style_35_1576068068851 .fa-navicon").click(function(){ $("#dh_style_35_1576068068851").addClass('clearTransform'); $("#dh_style_35_1576068068851 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_35_1576068068851(); $("#dh_style_35_1576068068851 .subBox").css("top",$("#dh_style_35_1576068068851 .menuUl_box").height()); if($("#dh_style_35_1576068068851 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_35_1576068068851 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_35_1576068068851 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_35_1576068068851 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_35_1576068068851 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_35_1576068068851 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_35_1576068068851 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_35_1576068068851 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_35_1576068068851 .subBox").hide(); }) //椋庢牸41 42 } }) //=== viewid:copyright_style_01_1663640637281,copyright_style_01_1663642368587 ===// //=== viewid:liuyanban_style_05_1578020873492 ===// //-- $(function(){ var viewid="liuyanban_style_05_1578020873492"; var sys_url="viewid=liuyanban_style_05_1578020873492&name=liuyanban&style=style_05&langid=0&pageid=1816967&viewCtrl=default&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.moreParamsliuyanban_style_05_1578020873492; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:liuyanban_style_05_1578020873492 ===// // 寤惰繜閲嶆柊鍒锋柊楠岃瘉鐮 setTimeout(function(){ let umg = "//admin.hxrwl.net/codeimg.php?viewid=liuyanban_style_05_1578020873492&rnd="+Math.floor(Math.random() * ( 1000 + 1)); $("#liuyanban_style_05_1578020873492 .gf_code").css('background',"url("+umg+") right center no-repeat"); },500); $('#liuyanban_style_05_1578020873492 .gformList').each(function(){ $(this).find('input').blur(function(){ var type = $(this).attr('name'); if(type == 'verification_code'){ return; } var check = $(this).attr('check'); var reg = new RegExp(check,"i"); var value = $(this).val(); if(reg.test(value)) { $(this).removeClass('error'); }else { $(this).addClass('error'); } }); });