//=== viewid:dh_style_28_1662515309473 ===// $(function(){ $("#dh_style_28_1662515309473 li a").attr("target","_blank"); }) //=== viewid:dh_style_28_1662515309473 ===// /*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_1662515309473 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_1662515309473 ===// 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_1662515309473(){ $("#dh_style_28_1662515309473 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_28_1662515309473(); }) $(function(){ $("#dh_style_28_1662515309473 .fa-navicon").click(function(){ $("#dh_style_28_1662515309473").addClass('clearTransform'); $("#dh_style_28_1662515309473 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_28_1662515309473(); $("#dh_style_28_1662515309473 .subBox").css("top",$("#dh_style_28_1662515309473 .menuUl_box").height()); if($("#dh_style_28_1662515309473 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_28_1662515309473 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_28_1662515309473 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_28_1662515309473 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_28_1662515309473 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_28_1662515309473 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_28_1662515309473 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1662515309473 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_28_1662515309473 .subBox").hide(); }) //椋庢牸41 42 } }) var color = $('#dh_style_28_1662515309473 .menuStyle_28 .menuUl02 .subMenu02').css('background-color'); $('#dh_style_28_1662515309473 .menuStyle_28').append(``); $('#dh_style_28_1662515309473 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){ let that = $(this); setTimeout(function(){ var hoverColor = that.css('background-color'); $('#dh_style_28_1662515309473 .menuStyle_28').append(``); },100); }); //=== viewid:clock_style_1_1662516122036 ===// $(document).ready(function(){ }); //=== viewid:clock_style_1_1662516122036 ===// //-- $(function(){ var viewid="clock_style_1_1662516122036"; var sys_url="viewid=clock_style_1_1662516122036&name=clock&style=style_1&langid=0&pageid=483689&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.moreParamsclock_style_1_1662516122036; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:clock_style_1_1662516122036 ===// var timeclock_style_1_1662516122036 = "2024-03-12 23:59:59"; var endDayclock_style_1_1662516122036 = new Date(Date.parse(timeclock_style_1_1662516122036)); // var weekNum = endDayclock_style_1_1662516122036.getDay(); //杩斿洖0-6 0瀵瑰簲鐨勬槸鍛ㄦ棩 var starttimeclock_style_1_1662516122036 = timeclock_style_1_1662516122036.replace(new RegExp("-","gm"),"/"); var dayArrclock_style_1_1662516122036 = new Array(),hourArrclock_style_1_1662516122036 = new Array(),minuteArrclock_style_1_1662516122036 = new Array(),secondArrclock_style_1_1662516122036 = new Array(); function getTimeFunc_clock_style_1_1662516122036() { var endTimeclock_style_1_1662516122036 = (new Date(starttimeclock_style_1_1662516122036)).getTime(); var nowTimeclock_style_1_1662516122036 = new Date(); nowTimeclock_style_1_1662516122036 = nowTimeclock_style_1_1662516122036.getTime(); var centerTimeclock_style_1_1662516122036 = endTimeclock_style_1_1662516122036 - nowTimeclock_style_1_1662516122036; let daysclock_style_1_1662516122036 = Math.floor(centerTimeclock_style_1_1662516122036 / (1000 * 60 * 60 * 24)); 銆€銆€let hoursclock_style_1_1662516122036 = Math.floor((centerTimeclock_style_1_1662516122036 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 銆€銆€let minutesclock_style_1_1662516122036 = Math.floor((centerTimeclock_style_1_1662516122036 % (1000 * 60 * 60)) / (1000 * 60)); 銆€銆€let secondsclock_style_1_1662516122036 = Math.floor(centerTimeclock_style_1_1662516122036 % (1000 * 60) / 1000); var timerclock_style_1_1662516122036 = ''; if( centerTimeclock_style_1_1662516122036 <= 0 && timerclock_style_1_1662516122036) { clearInterval(timerclock_style_1_1662516122036); daysclock_style_1_1662516122036 = hoursclock_style_1_1662516122036 = minutesclock_style_1_1662516122036 = secondsclock_style_1_1662516122036 = 0; } if( centerTimeclock_style_1_1662516122036 <= 0) { daysclock_style_1_1662516122036 = hoursclock_style_1_1662516122036 = minutesclock_style_1_1662516122036 = secondsclock_style_1_1662516122036 = 0; } // 椋庢牸6娓叉煋 // 椋庢牸7娓叉煋 var html_days = '',html_hours = '',html_minutes = '',html_seconds = ''; } getTimeFunc_clock_style_1_1662516122036(); var timerclock_style_1_1662516122036 = setInterval(getTimeFunc_clock_style_1_1662516122036,1000); //=== viewid:clock_style_1_1662516122036 ===// $(function () { start_clock_clock_style_1_1662516122036(); }); function start_clock_clock_style_1_1662516122036() { setTimeout(update_clock_clock_style_1_1662516122036, 1000); } function update_clock_clock_style_1_1662516122036() { var clock = $('#clock_style_1_1662516122036 .clock'), options = { 'timezone':clock.attr('data-timezone'), 'with_leading_zeros':clock.attr('data-with_leading_zeros'), 'hour_format':clock.attr('data-hour_format'), 'template':clock.attr('data-template') }, time = get_time_info(options); clock.find('.year').html(time['year']); clock.find('.month').html(time['month']); clock.find('.date').html(time['date']); clock.find('.hours').html(time['hours']); clock.find('.minutes').html(time['minutes']); clock.find('.seconds').html(time['seconds']); clock.find('.am-pm').html(time['am-pm']); clock.find('.year').html(time['year']); setTimeout(update_clock_clock_style_1_1662516122036, 1000); } function get_time_info(options) { var date = get_time_in_zone(options.timezone), result; result = { 'year' : date.getFullYear(), 'month' : _val(date.getMonth() + 1, options.with_leading_zeros), 'date' : _val(date.getDate(), options.with_leading_zeros), 'hours' : _val(options.hour_format == 12 && date.getHours() > 12 ? date.getHours() % 12 : date.getHours(), options.with_leading_zeros), 'minutes' : _val(date.getMinutes(), true), 'seconds' : _val(date.getSeconds(), true), 'am-pm' : date.getHours() < 12 ? 'AM' : 'PM', 'week-index' : date.getDay() }; var weeks, months, am_pm; switch(options.template) { case 'english': weeks = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec']; result['month'] = months[result['month'] - 1]; break; case 'default': default: weeks = ['鏄熸湡澶?, '鏄熸湡涓€', '鏄熸湡浜?, '鏄熸湡涓?, '鏄熸湡鍥?, '鏄熸湡浜?, '鏄熸湡鍏?]; am_pm = ['涓婂崍', '涓嬪崍']; result['am-pm'] = result['am-pm'] == 'am' || result['am-pm'] == 'AM' ? am_pm[0] : am_pm[1]; break; } result['week-name'] = weeks ? weeks[result['week-index']] : ''; return result; } function get_timezone_offset(timezone) { var timezone_list = { 'Etc/GMT+5': -5, 'UTC': 0, 'GMT+0': 0, 'Etc/GMT-8': 8, 'PRC': 8, 'Etc/GMT-9': 9 }; return timezone_list[timezone] !== undefined ? timezone_list[timezone] : 0; } function get_utc_time() { var date = new Date(), local = date.getTime(), offset = date.getTimezoneOffset() * 60000; return local + offset; } function get_time_in_zone(timezone) { return new Date(get_utc_time() + 3600000 * get_timezone_offset(timezone)); } function _val(val, with_leading_zeros) { return '' + (val < 10 && with_leading_zeros ? '0' : '') + val; } //=== viewid:text_style_04_1662516323615 ===// //=== viewid:text_style_04_1662516323615 ===// if(false) { if(0 == 2 || 0 == 3){ $('#text_style_04_1662516323615 #listUl1 li').each(function (i) { if (i < 1) { $(this).show(); } else { $(this).hide(); } }) } } $(function(){ var box1 = $('#text_style_04_1662516323615 .conDiv'); var box2 = $('#text_style_04_1662516323615 .listDiv'); var ul1 = $('#text_style_04_1662516323615 #listUl1'); var ul2 = $('#text_style_04_1662516323615 #listUl2'); var item_num = 0, main_num = 0, padding_num = 0, margin_num = 0, type_num = 0; var direction = 0; var rollDirection = 'left'; if(!false){ function heightFunc(){ $('#text_style_04_1662516323615 #listUl1 li').each(function(i){ if( direction == 2 || direction == 3) { padding_num = parseFloat($(this).css('paddingBottom')) + parseFloat($(this).css('paddingTop')); margin_num = parseFloat($(this).css('marginBottom')) + parseFloat($(this).css('marginBottom')); type_num = $(this).height(); }else{ padding_num = parseFloat($(this).css('paddingLeft')) + parseFloat($(this).css('paddingRight')); margin_num = parseFloat($(this).css('marginLeft')) + parseFloat($(this).css('marginRight')); $(this).width('auto'); ul2.find('li').eq(i).width('auto'); type_num = $(this).width(); } if (i < 1) { item_num += type_num + padding_num + margin_num; } main_num += type_num + padding_num + margin_num; }); if( direction == 2 || direction == 3 ) { rollDirection = 'top'; box1.height(item_num); }else{ rollDirection = 'left'; ul1.css('width','auto'); ul2.css('width','auto'); box2.width(main_num*2+5); if(main_num <= $('#text_style_04_1662516323615 .scrollDiv').width()){ ul1.width($('#text_style_04_1662516323615 .scrollDiv').width()); ul2.width($('#text_style_04_1662516323615 .scrollDiv').width()); box2.width($('#text_style_04_1662516323615 .scrollDiv').width()*2+5); main_num = $('#text_style_04_1662516323615 .scrollDiv').width(); } } } heightFunc(); $(window).resize(function(){ item_num = 0; main_num = 0; heightFunc(); }); ul2.html(ul1.html()); var value = 0; var speed = 40; if( direction == 0 || direction == 3) { box2.css(rollDirection,'0px'); }else{ box2.css(rollDirection,-main_num+'px'); } function scrollFunc(){ if(direction == 0 || direction == 3){ if(parseInt(box2.css(rollDirection)) <= -main_num) { value = 0; }else{ value --; } }else{ if(parseInt(box2.css(rollDirection)) >= 0) { value = -main_num; }else{ value = parseInt(box2.css(rollDirection)) + 1; } } box2.css(rollDirection,value+'px'); } var timer = setInterval(scrollFunc,speed); box1.mouseover(function(){ clearInterval(timer); }).mouseout(function(){ timer = setInterval(scrollFunc,speed); }); } }); //=== viewid:qqol_style_05_1662543356067 ===// $('#qqol_style_05_1662543356067 .item_box.backup').click(function(){ $('html , body').animate({scrollTop: 0},'slow'); }); //=== viewid:qqol_style_05_1662543356067 ===// //璐墿杞 if(typeof showcart !== 'function'){ function showcart(){ var langid = 0; if (langid==0 && BodyIsFt) langid = 1; if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767)){ location.href = "//s143js.nicebox.cn/exusers/u_cart.php?idweb=25415&act=show&lang="+langid+"&ismobile=1"; }else{ document.getElementById("boxName").innerHTML="鏌ョ湅璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src="//s143js.nicebox.cn/exusers/u_cart.php?idweb=25415&act=show&lang="+langid+"&v=9"; box.Show({width:'1000px', height:'600px'}); } } } //鍒ゆ柇鏄惁鏄墜鏈?鐢ㄤ簬澶勭悊QQ鐢佃剳绔強鎵嬫満绔摼鎺ヤ笉涓€鑷撮棶棰 var mobile_flag = isMobile(); if(mobile_flag){ $('#qqol_style_05_1662543356067 .qq_pc').hide(); $('#qqol_style_05_1662543356067 .qq_mobile').show(); } function isMobile() { var userAgentInfo = navigator.userAgent; var mobileAgents = [ "Android", "iPhone", "SymbianOS", "Windows Phone", "iPad","iPod"]; var mobile_flag = false; //鏍规嵁userAgent鍒ゆ柇鏄惁鏄墜鏈 for (var v = 0; v < mobileAgents.length; v++) { if (userAgentInfo.indexOf(mobileAgents[v]) > 0) { mobile_flag = true; break; } } var screen_width = window.screen.width; var screen_height = window.screen.height; //鏍规嵁灞忓箷鍒嗚鲸鐜囧垽鏂槸鍚︽槸鎵嬫満 if(screen_width < 500 && screen_height < 800){ mobile_flag = true; } return mobile_flag; } //=== viewid:qqol_style_05_1662543356067 ===// // 瀵硅緭鍏ュ唴瀹逛腑鐨勫皷鎷彿銆佸紩鍙风瓑杩涜杞箟 function html_encode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(//g, ">"); s = s.replace(/ /g, " "); s = s.replace(/\'/g, "'"); s = s.replace(/\"/g, """); s = s.replace(/\n/g, "
"); return s; } function html_decode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(//g, ">"); s = s.replace(/ /g, " "); s = s.replace(/'/g, "\'"); s = s.replace(/"/g, "\""); s = s.replace(/
/g, "\n"); return s; } //=== viewid:dh_style_47_1691244610968 ===// $(function(){ //涓嬬骇鏍忕洰灞曞紑鏀剁缉 $('.menuStyle_47 .mainMenuText,.menuStyle_47 .subMenu02Text').unbind('click').click(function(){ $(this).siblings('.menuUl').slideToggle(); $(this).children('.fa.fa-angle-down').toggleClass('open'); $(this).parent().siblings().children('.menuUl').slideUp(); $(this).parent().siblings().children('.mainMenuText,.subMenu02Text').children('.fa.fa-angle-down').removeClass('open'); }); //鐐瑰嚮鏍忕洰鏁翠綋灞曞紑 $('.menuStyle_47 .menuBtn .menuIcon').unbind('click').click(function(){ $(this).parent().siblings('.bgView').show(); $(this).parents('.style_47.dh').addClass('clearTransform'); }); //鐐瑰嚮鏍忕洰鏁翠綋鏀剁缉 $('.menuStyle_47 .bgView,.menuStyle_47 .closeBtn').unbind('click').click(function(){ hideDhFunc($(this).parents('.menuStyle_47')); }); //鏍忕洰鏁翠綋鏀剁缉浜嬩欢 function hideDhFunc(parentObj){ parentObj.find('.bgView').hide(); } //鐐瑰嚮璺宠浆 $('.menuStyle_47 .menuLink').unbind('click').click(function(){ let modelParent = $(this).parents('.menuStyle_47'); let newWinShow = modelParent.attr('newWinShow'); //on let sonLength = $(this).siblings('.fa-angle-down').length; if(newWinShow != 'on' || sonLength==0){ stopPropagation(); window.open($(this).attr('url'),modelParent.attr('target')); } }); $('.menuStyle_47 .hideBgView').unbind('click').click(function(){ stopPropagation(); }); //闃绘鍐掓场 function stopPropagation(e) { e = e ||window.event; if(e.stopPropagation) { //W3C闃绘鍐掓场鏂规硶 e.stopPropagation(); } else{ e.cancelBubble = true; //IE闃绘鍐掓场鏂规硶 } } }); //=== viewid:dh_style_47_1691244610968 ===// $(function(){ $("#dh_style_47_1691244610968 li a").attr("target","_blank"); }) //=== viewid:dh_style_47_1691244610968 ===// /*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_47_1691244610968 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_47_1691244610968 ===// 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_47_1691244610968(){ $("#dh_style_47_1691244610968 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_47_1691244610968(); }) $(function(){ $("#dh_style_47_1691244610968 .fa-navicon").click(function(){ $("#dh_style_47_1691244610968").addClass('clearTransform'); $("#dh_style_47_1691244610968 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_47_1691244610968(); $("#dh_style_47_1691244610968 .subBox").css("top",$("#dh_style_47_1691244610968 .menuUl_box").height()); if($("#dh_style_47_1691244610968 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_47_1691244610968 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_47_1691244610968 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_47_1691244610968 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_47_1691244610968 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_47_1691244610968 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_47_1691244610968 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_47_1691244610968 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_47_1691244610968 .subBox").hide(); }) //椋庢牸41 42 } }) //=== viewid:searchbox_style_02_1627885080055 ===// $("#searchbox_style_02_1627885080055 .search-btn").click(function(){ var kw=$("#searchbox_style_02_1627885080055 .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_02_1627885080055 .search_input").val(decodeURIComponent(Request("pkeyword"))); function goSearch(form) { console.log('form: ', form); $(form).find('.search-btn').trigger('click'); return false; } //=== viewid:homelink_style_04_1653449196702 ===// function mobileFunc() { $('#homelink_style_04_1653449196702 .link_ul').removeClass('slideUp').removeClass('slideDown'); $('#homelink_style_04_1653449196702 .home-icon,#homelink_style_04_1653449196702 .bbx-iconfont').click(function(){ if($('#homelink_style_04_1653449196702 .link_ul').hasClass('slideDown')) { $('#homelink_style_04_1653449196702 .link_ul').removeClass('slideDown').addClass('slideUp'); }else { $('#homelink_style_04_1653449196702 .link_ul').removeClass('slideUp').addClass('slideDown'); } }); } mobileFunc(); //=== viewid:homelink_style_04_1653449196702 ===// //-- $(function(){ var viewid="homelink_style_04_1653449196702"; var sys_url="viewid=homelink_style_04_1653449196702&name=homelink&style=style_04&langid=0&pageid=483689&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.moreParamshomelink_style_04_1653449196702; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:homelink_style_04_1652857544761,productList_style_03_1603591718715,prodKind_style_17_1603676322074,prodKind_style_08_1652858864913,productList_style_03_1657622201010,homelink_style_04_1653449196702,productList_style_03_1603677961657,prodKind_style_08_1691245504003,prodKind_style_08_1691245504024 ===// //=== viewid:prodKind_style_17_1603676322074,prodKind_style_09_1653450313573 ===// $(document).ready(function(){ }); //=== viewid:prodKind_style_09_1653450313573,prodKind_style_09_1691466088659 ===// function clickli(){ var pid=""; var pgids='0'; $(".level1[pid="+pgids+"]").find("em").trigger("click"); if($(".level1[pid="+pgids+"]").length==0) $(".le2[pid="+pgids+"]").parents(".level1").find("em").trigger("click"); } window.onload = function() { var pid=""; var pgids='0'; if(!pgids) pgids=Request('pgid'); console.log("pid:"+pid); console.log("pgids:"+pgids); setTimeout('clickli()', 1000); if(pgids) $(".level1[pid="+pgids+"]").find("em").trigger("click"); if($(".level1[pid="+pgids+"]").length==0) $(".le2[pid="+pgids+"]").parents(".level1").find("em").trigger("click"); } //=== viewid:prodKind_style_09_1653450313573 ===// //-- $(function(){ var viewid="prodKind_style_09_1653450313573"; var sys_url="viewid=prodKind_style_09_1653450313573&name=prodKind&style=style_09&langid=0&pageid=483689&viewCtrl=prodKind&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.moreParamsprodKind_style_09_1653450313573; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1603677961657 ===// var sys_url_productList_style_03_1603677961657="viewid=productList_style_03_1603677961657&name=productList&style=style_03&langid=0&pageid=483689&viewCtrl=default&father_width=100%25"; //=== viewid:productList_style_03_1603677961657 ===// //-- $(function(){ var viewid="productList_style_03_1603677961657"; var sys_url="viewid=productList_style_03_1603677961657&name=productList&style=style_03&langid=0&pageid=483689&viewCtrl=default&father_width=100%25&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_1603677961657; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:productList_style_03_1603591718715,productList_style_03_1657622201010,productList_style_03_1603677961657 ===// var showSub = '0'; //=== viewid:productList_style_03_1603677961657 ===// 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://s143js.nicebox.cn/exusers/u_cart.php?idweb=25415&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://s143js.nicebox.cn/exusers/u_cart.php?idweb=25415&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://s143js.nicebox.cn/exusers/u_cart.php?idweb=25415&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "https://s143js.nicebox.cn/exusers/u_cart.php?idweb=25415&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_1603677961657 .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:prodKind_style_08_1691245504003 ===// //-- $(function(){ var viewid="prodKind_style_08_1691245504003"; var sys_url="viewid=prodKind_style_08_1691245504003&name=prodKind&style=style_08&langid=0&pageid=483689&viewCtrl=prodSKind&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.moreParamsprodKind_style_08_1691245504003; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:prodKind_style_08_1691245504003 ===// var is_show = 0; //鍒ゆ柇鑿滃崟鏄剧ず鐨勫彉閲 //鍒濆鍙婃仮澶嶆牱寮 function chushi(){ $('#prodKind_style_08_1691245504003 .prodcateStyle_8').css({position:'relative',top:'none',left:'none',width:'auto',height:'auto'}); $('#prodKind_style_08_1691245504003 .cate_scroll').css({height:'auto',overflowY:'auto'}); $('#prodKind_style_08_1691245504003').parents().css('zIndex','10'); $('html,body').css('overflow','auto'); } //鐐瑰嚮璁╁垎绫昏彍鍗曟樉绀洪殣钘 $('#prodKind_style_08_1691245504003 .cate_title').click(function(){ if( is_show == 0){ $('#prodKind_style_08_1691245504003 .catebg').show(); var cate_title_height = $('#prodKind_style_08_1691245504003 .cate_title').height(); //鑾峰彇鑿滃崟鏍囬楂樺害 if(Number($('.bottomMenu.123').length) == 1){ //鍒ゆ柇搴曢儴瀵艰埅鏄惁瀛樺湪 var bottomheight = $('.bottomMenu').height() + cate_title_height; //瀛樺湪灏卞姞涓婅彍鍗曟爣棰樺拰搴曢儴瀵艰埅鐨勯珮搴 $('#prodKind_style_08_1691245504003 .cate_scroll').css('height','calc(100% - '+bottomheight+'px)'); //绠楀嚭婊氬姩鏄剧ず鐨勯珮搴 }else{ $('#prodKind_style_08_1691245504003 .cate_scroll').css('height','calc(100% - '+cate_title_height+'px)'); //娌℃湁搴曢儴瀵艰埅鐨勬椂鍊欙紝绠楀嚭婊氬姩鏄剧ず鐨勯珮搴 } //婊氬姩锛屽浐瀹氬畾浣嶏紝灞傜骇锛宐ody绂佹婊氬姩 $('#prodKind_style_08_1691245504003 .cate_scroll').css('overflowY','scroll'); $('#prodKind_style_08_1691245504003 .prodcateStyle_8').css({position:'fixed',top:0,left:0,width:'100%',height:'100%'}); $('#prodKind_style_08_1691245504003').parents().css('zIndex','99999'); $('html,body').css('overflow','hidden'); is_show = 1; }else{ $('#prodKind_style_08_1691245504003 .catebg').hide(); chushi(); is_show = 0; } }); //鏂囨。瀹藉害鍙樺寲鏃?鑿滃崟鐨勬樉绀洪殣钘 $(window).resize(function(){ if( $('html,body').width() > 640 ){ $('#prodKind_style_08_1691245504003 .catebg').show(); chushi(); }else{ if(is_show = 1){ $('#prodKind_style_08_1691245504003 .catebg').hide(); chushi(); is_show = 0; } } }); //=== viewid:prodKind_style_08_1691245504024 ===// //-- $(function(){ var viewid="prodKind_style_08_1691245504024"; var sys_url="viewid=prodKind_style_08_1691245504024&name=prodKind&style=style_08&langid=0&pageid=483689&viewCtrl=prodSKind&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.moreParamsprodKind_style_08_1691245504024; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:prodKind_style_08_1691245504024 ===// var is_show = 0; //鍒ゆ柇鑿滃崟鏄剧ず鐨勫彉閲 //鍒濆鍙婃仮澶嶆牱寮 function chushi(){ $('#prodKind_style_08_1691245504024 .prodcateStyle_8').css({position:'relative',top:'none',left:'none',width:'auto',height:'auto'}); $('#prodKind_style_08_1691245504024 .cate_scroll').css({height:'auto',overflowY:'auto'}); $('#prodKind_style_08_1691245504024').parents().css('zIndex','10'); $('html,body').css('overflow','auto'); } //鐐瑰嚮璁╁垎绫昏彍鍗曟樉绀洪殣钘 $('#prodKind_style_08_1691245504024 .cate_title').click(function(){ if( is_show == 0){ $('#prodKind_style_08_1691245504024 .catebg').show(); var cate_title_height = $('#prodKind_style_08_1691245504024 .cate_title').height(); //鑾峰彇鑿滃崟鏍囬楂樺害 if(Number($('.bottomMenu.123').length) == 1){ //鍒ゆ柇搴曢儴瀵艰埅鏄惁瀛樺湪 var bottomheight = $('.bottomMenu').height() + cate_title_height; //瀛樺湪灏卞姞涓婅彍鍗曟爣棰樺拰搴曢儴瀵艰埅鐨勯珮搴 $('#prodKind_style_08_1691245504024 .cate_scroll').css('height','calc(100% - '+bottomheight+'px)'); //绠楀嚭婊氬姩鏄剧ず鐨勯珮搴 }else{ $('#prodKind_style_08_1691245504024 .cate_scroll').css('height','calc(100% - '+cate_title_height+'px)'); //娌℃湁搴曢儴瀵艰埅鐨勬椂鍊欙紝绠楀嚭婊氬姩鏄剧ず鐨勯珮搴 } //婊氬姩锛屽浐瀹氬畾浣嶏紝灞傜骇锛宐ody绂佹婊氬姩 $('#prodKind_style_08_1691245504024 .cate_scroll').css('overflowY','scroll'); $('#prodKind_style_08_1691245504024 .prodcateStyle_8').css({position:'fixed',top:0,left:0,width:'100%',height:'100%'}); $('#prodKind_style_08_1691245504024').parents().css('zIndex','99999'); $('html,body').css('overflow','hidden'); is_show = 1; }else{ $('#prodKind_style_08_1691245504024 .catebg').hide(); chushi(); is_show = 0; } }); //鏂囨。瀹藉害鍙樺寲鏃?鑿滃崟鐨勬樉绀洪殣钘 $(window).resize(function(){ if( $('html,body').width() > 640 ){ $('#prodKind_style_08_1691245504024 .catebg').show(); chushi(); }else{ if(is_show = 1){ $('#prodKind_style_08_1691245504024 .catebg').hide(); chushi(); is_show = 0; } } }); //=== viewid:prodKind_style_09_1691466088659 ===// //-- $(function(){ var viewid="prodKind_style_09_1691466088659"; var sys_url="viewid=prodKind_style_09_1691466088659&name=prodKind&style=style_09&langid=0&pageid=483689&viewCtrl=prodKind&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.moreParamsprodKind_style_09_1691466088659; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:image_style_11_1604972721248 ===// $(function(){ let obj = $("#image_style_11_1604972721248"); 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%"); } } })