//=== 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,video_style_02_1681184982194,video_style_02_1603843709494 ===// $(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=301583&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,qqol_style_05_1605081629390 ===// // 瀵硅緭鍏ュ唴瀹逛腑鐨勫皷鎷彿銆佸紩鍙风瓑杩涜杞箟 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:newsKind_style_03_1659161205903 ===// // 宸﹀彸婊戝姩 var mySwiper3 = new Swiper ('#newsKind_style_03_1659161205903 .swiper-container', { direction: 'horizontal', slidesPerView: 'auto', slidesOffsetAfter : 40, }) //=== viewid:newsKind_style_04_1603713096155 ===// // 宸﹀彸婊戝姩 var mySwiper4 = new Swiper ('#newsKind_style_04_1603713096155 .swiper-container', { direction: 'horizontal', slidesPerView: 'auto', slidesOffsetAfter : 40, }) //=== viewid:newsDetail_style_01_1506318095542 ===// // var content_div = ''; // var show_div = ''; // var flag=""; // var lang=""; // var show_style=""; // var page_length = ""; var content_length = 0; var page_num = 1; var start_flag = 0; var end_flag = 0; var content_arr = ''; // var total_lenth = 0; // var page_count = 0; function getPage(hideNewsContent) { if(flag == 2){ var content = $(hideNewsContent).html(); content_arr = content.split(/]*>/); page_count = content_arr.length; } else{ total_lenth = $(hideNewsContent).text().trim().length; page_count = Math.ceil(total_lenth / page_length); content_arr = $(hideNewsContent).html(); } $(hideNewsContent).empty(); } function goto(page,newsText,view_id,obj='', showAllText = '') { if(obj && !newsText && !view_id){ view_id = $(obj).parents('.newsDetail').attr("id"); newsText = '#'+view_id+' .newsText.contSet'; } if(page != -1 && !is_login && need_check_login == 1){ checkLogin(); } if(page == -1 || is_login || need_check_login == 0){ content_length = 0; start_flag = 0; end_flag = 0; if(page < 1) page_num = 1; else if(page > page_count) page_num = page_count; else page_num = page; if(flag == 1){ $(newsText).html(content_arr); getChildren(newsText); } else{ $(newsText).html(content_arr[page_num - 1]); } pagebutton(newsText, view_id, showAllText); if(page != -1){ location.href = newsText; } setDivHeight(newsText) } } function getChildren(el) { var child = $(el).children(); if(child.length > 0){ child.each(function () { if(end_flag == 1) return false; content += $(this).contents().filter(function() { return this.nodeType === 3; }).text(); content_length += $(this).contents().filter(function() { return this.nodeType === 3; }).text().length; //鑾峰彇涓婁竴椤电粨灏 if(start_flag == 0 && content_length >= (page_num - 1) * page_length){ var parents = $(this).parentsUntil(el); start_flag = 1; var need_length = content_length - ((page_num - 1) * page_length); //灏嗗綋鍓嶉〉寮€澶村埌涓婁竴椤电粨灏句负姝㈠鍑烘潵鐨勫唴瀹瑰幓鎺 if(need_length > 0){ var now_html = $(this).html(); var now_text_length = $(this).contents().filter(function() { return this.nodeType === 3; }).text().length; now_html = now_html.substring(now_text_length - need_length, now_html.length); $(this).html(now_html); } parents.each(function () { $(this).prevAll().remove(); }); } //鑾峰彇褰撳墠椤电粨灏 if(content_length >= page_num * page_length){ var parents = $(this).parentsUntil(el); var need_length = content_length - (page_num * page_length); if(need_length == 0){ parents.each(function () { $(this).nextAll().remove(); }); } else{ var now_text = $(this).contents().filter(function() { return this.nodeType === 3; }).text(); var need_text = now_text.substring(0, now_text.length - need_length); $(this).text(need_text); parents.each(function () { $(this).nextAll().remove(); }); } end_flag = 1; return false; } else { var flag = getChildren(this); } }); } } function showAll() { if(need_check_login == 1){ checkLogin(); } if(is_login == true || need_check_login == 0){ $('.news_pagination').remove(); if(flag == 2){ $(show_div).html(content_arr.join('')); } else{ $(show_div).html(content_arr); } location.href = show_div; setDivHeight(show_div) } } function pagebutton(newsText,view_id, showAllText = '') { $('#'+view_id+' .news_pagination').remove(); if (!showAllText) { showAllText = '鏄剧ず鍏ㄩ儴'; } var button_html = '
'; if(show_style == 1){ for(var i = 1; i <= page_count; i++){ if(i > page_count) break; if(i != page_num){ button_html += '` + i + ''; } else{ button_html += '' + i + ''; } } } else if(show_style == 2){ button_html += `'; } else { var show_button = page_count > 8 ? 8 : page_count; var button_text = 1; if(page_num > 5){ button_html += '<`; button_text = page_num - 4; } for(var i = 1; i <= show_button; i++){ if(button_text > page_count) break; if(button_text != page_num){ button_html += '` + button_text + ''; } else{ button_html += '' + button_text + ''; } button_text++; } if(page_num < page_count){ button_html += '>`; } } button_html += '' + showAllText + ''; button_html += '
'; $(newsText).after(button_html); } function checkLogin(errorText = '', loginText = '') { var serverUrl = '//' + diy_js_server + '/sysTools.php?mod=viewsConn&act=checkUserLogin&idweb=' + id_web; if (!errorText) { errorText = '浜诧紝鎮ㄥ繀椤荤櫥褰曚簡鎵嶅彲缁х画鏌ョ湅璇ユ枃绔?; } if (!loginText) { loginText = '椹笂鐧诲綍'; } //鑾峰彇鏁版嵁 xhrFields瑙e喅浼犺緭cookie闂 $.ajax({ type: 'get', cache: false, dataType: 'json', async: false, url: serverUrl, xhrFields: { withCredentials: true }, crossDomain: true, success: function(result){ if(result.is_login == false){ var fun_str = is_mobile() ? 'OnLogin(' + lang +', 0, \'' + location.href + '\')' : 'OnLogin(' + lang +', 0)'; var html = '
' + '
' + '
' + errorText + '锛? + '' + '
' + '
'; $('body').css({overflowY:'hidden',height:'100%'}); $('body').append(html); } else { is_login = true } } }); } function hideLogin() { $('.mustlogin').remove(); } //=== viewid:newsDetail_style_01_1506318095542 ===// //-- $(function(){ var viewid="newsDetail_style_01_1506318095542"; var sys_url="viewid=newsDetail_style_01_1506318095542&name=newsDetail&style=style_01&langid=0&pageid=301583&viewCtrl=newsDetail&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.moreParamsnewsDetail_style_01_1506318095542; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsDetail_style_01_1506318095542 ===// $(function(){ $('title').html('鏂伴椈鏍囬 - 涓滆帪甯傚闃虫柊鏉愭枡鏈夐檺鍏徃'); $('meta[name=keywords]').attr('content','鏂伴椈鍏抽敭瀛?); $('meta[name=description]').attr('content','鏂伴椈绠€浠?); }); //=== viewid:newsDetail_style_01_1506318095542 ===// detailHeightAuto("newsDetail_style_01_1506318095542", "璇︽儏鍔犺浇涓?); //=== viewid:newsList_style_09_1680485922777 ===// //-- $(function(){ var viewid="newsList_style_09_1680485922777"; var sys_url="viewid=newsList_style_09_1680485922777&name=newsList&style=style_18&langid=0&pageid=301583&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_09_1680485922777; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:homelink_style_04_1657165063060 ===// function mobileFunc() { $('#homelink_style_04_1657165063060 .link_ul').removeClass('slideUp').removeClass('slideDown'); $('#homelink_style_04_1657165063060 .home-icon,#homelink_style_04_1657165063060 .bbx-iconfont').click(function(){ if($('#homelink_style_04_1657165063060 .link_ul').hasClass('slideDown')) { $('#homelink_style_04_1657165063060 .link_ul').removeClass('slideDown').addClass('slideUp'); }else { $('#homelink_style_04_1657165063060 .link_ul').removeClass('slideUp').addClass('slideDown'); } }); } mobileFunc(); //=== viewid:homelink_style_04_1657165063060 ===// //-- $(function(){ var viewid="homelink_style_04_1657165063060"; var sys_url="viewid=homelink_style_04_1657165063060&name=homelink&style=style_04&langid=0&pageid=301583&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_1657165063060; } } 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,homelink_style_04_1652861014468,prodKind_style_08_1652860790553,prodKind_style_08_1653442579594,homelink_style_04_1657165063060 ===// //=== 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%"); } } })