//=== viewid:qqol_style_04_1616752224036 ===// $('#qqol_style_04_1616752224036 .item_box.backup').click(function(){ $('html , body').animate({scrollTop: 0},'slow'); }); //=== viewid:qqol_style_04_1616752224036 ===// //璐墿杞 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=35785&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=35785&act=show&lang="+langid+"&v=9"; box.Show({width:'1000px', height:'600px'}); } } } //鍒ゆ柇鏄惁鏄墜鏈?鐢ㄤ簬澶勭悊QQ鐢佃剳绔強鎵嬫満绔摼鎺ヤ笉涓€鑷撮棶棰 var mobile_flag = isMobile(); if(mobile_flag){ $('#qqol_style_04_1616752224036 .qq_pc').hide(); $('#qqol_style_04_1616752224036 .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_04_1616752224036 ===// // 瀵硅緭鍏ュ唴瀹逛腑鐨勫皷鎷彿銆佸紩鍙风瓑杩涜杞箟 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_28_1676170751137 ===// /*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_1676170751137 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_1676170751137 ===// 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_1676170751137(){ $("#dh_style_28_1676170751137 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_28_1676170751137(); }) $(function(){ $("#dh_style_28_1676170751137 .fa-navicon").click(function(){ $("#dh_style_28_1676170751137").addClass('clearTransform'); $("#dh_style_28_1676170751137 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_28_1676170751137(); $("#dh_style_28_1676170751137 .subBox").css("top",$("#dh_style_28_1676170751137 .menuUl_box").height()); if($("#dh_style_28_1676170751137 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_28_1676170751137 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_28_1676170751137 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_28_1676170751137 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_28_1676170751137 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_28_1676170751137 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_28_1676170751137 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1676170751137 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_28_1676170751137 .subBox").hide(); }) //椋庢牸41 42 } }) var color = $('#dh_style_28_1676170751137 .menuStyle_28 .menuUl02 .subMenu02').css('background-color'); $('#dh_style_28_1676170751137 .menuStyle_28').append(``); $('#dh_style_28_1676170751137 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){ let that = $(this); setTimeout(function(){ var hoverColor = that.css('background-color'); $('#dh_style_28_1676170751137 .menuStyle_28').append(``); },100); }); //=== viewid:lang_style_13_1704784910934,video_style_02_1676190846673 ===// $(document).ready(function(){ }); //=== viewid:lang_style_13_1704784910934 ===// $('#lang_style_13_1704784910934 .lang_main').mousemove(function(){ $('#lang_style_13_1704784910934 .lang_content').show(); }).mouseout(function(){ $('#lang_style_13_1704784910934 .lang_content').hide(); }); //=== viewid:banner_style_01_1680747940763 ===// $(document).ready(function () { autoBannerHeight('banner_style_01_1680747940763', 1, 1, 1); }); function changeBannerHeight(tabId){ let obj = $('#'+tabId+' .niceTabShow .bannerStyle_1'); let viewId = obj.attr('viewId'); let autoPc = obj.attr('autoPc'); let autoPad = obj.attr('autoPad'); let autoMobile = obj.attr('autoMobile'); autoBannerHeight(viewId, autoPc, autoPad, autoMobile); } function autoBannerHeight(viewid, pc, pad, mobile){ if (!viewid) return; $(window).resize(function(){ if (!autoBannerHeightOk(pc, pad, mobile)) return; let bannerHeight = $('#'+viewid+' .img-item:eq(0) .hide_img').height(); if (bannerHeight == 0) return; $('#'+viewid).height(bannerHeight); }); if (!autoBannerHeightOk(pc, pad, mobile)) return; let bannerHeight = $('#'+viewid+' .img-item:eq(0) .hide_img').height(); if (bannerHeight == 0) return; $('#'+viewid).height(bannerHeight); } function autoBannerHeightOk(pc, pad, mobile){ if ($(window).width() >= 1200 && !pc) return false; if ($(window).width() >= 641 && $(window).width() < 1200 && !pad) return false; if ($(window).width() <= 640 && !mobile) return false; return true; } //=== viewid:banner_style_01_1680747940763 ===// $(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_1680747940763 .bannerStyle_1 .awesome-font").show().siblings().hide(); }else{ $("#banner_style_01_1680747940763 .bannerStyle_1 .awesome-font").hide().siblings().show(); } } }); //=== viewid:banner_style_01_1680747940763 ===// /* * 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 = 1; $url_html[0] = ""; $('#banner_style_01_1680747940763 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_1680747940763 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_1680747940763 = []; list_banner_style_01_1680747940763.push('https://cdn.yun.sooce.cn/6/35785/jpg/1672885924130226445243362edd0.jpg?version=1672885925'); var banner_banner_style_01_1680747940763; // 杞挱鍥惧璞 $(function(){ // 鍒涘缓杞挱鍥 $arrHref = new Array(); banner_banner_style_01_1680747940763 = new Banner({ 'list':list_banner_style_01_1680747940763, 'view':$('#banner_style_01_1680747940763'), 'duration':parseFloat('3') * 1000, 'animation':parseFloat('0.5') * 1000 }); banner_banner_style_01_1680747940763.animateStyle = 'normal'; banner_banner_style_01_1680747940763.imgs = banner_banner_style_01_1680747940763.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item"); banner_banner_style_01_1680747940763.view.find('a').each(function (i) { $(this).click(function () { if(!$(this).attr('href')) { return false; } }); }); banner_banner_style_01_1680747940763.view.find('a.picSet').each(function(i){ $arrHref[i] = $(this).attr('href'); }); // 鏄剧ず鎸囧畾绱㈠紩鐨勫浘鐗 banner_banner_style_01_1680747940763.showIndex(banner_banner_style_01_1680747940763.config.current); // 鐩戝惉 鐐瑰嚮鍦嗙偣 banner_banner_style_01_1680747940763.config.flick.click(function(){ banner_banner_style_01_1680747940763.animateIndex($(this).index()); $('#banner_style_01_1680747940763 a.img_url').attr('href',$url_html[$(this).index()]); $i = $(this).index(); return false; }); // 鐩戝惉 榧犳爣鎮诞鏃 banner_banner_style_01_1680747940763.view.hover( function(){ banner_banner_style_01_1680747940763.hoverEndAnimate(); banner_banner_style_01_1680747940763.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn(); }, function(){ clearInterval(intervaltimer); banner_banner_style_01_1680747940763.config.timer = setTimeout(function(){ banner_banner_style_01_1680747940763.startAnimateRight(); },banner_banner_style_01_1680747940763.config.duration); banner_banner_style_01_1680747940763.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut() } ); // 鐩戝惉 鐐瑰嚮宸﹀彸鎸夐挳 banner_banner_style_01_1680747940763.view.find(".btn_prev").click(function() { banner_banner_style_01_1680747940763.startAnimateLeft(); }); banner_banner_style_01_1680747940763.view.find(".btn_next").click(function() { banner_banner_style_01_1680747940763.startAnimateRight(); }); // 鐩戝惉 瑙︽懜浜嬩欢 var touchVal = null; document.addEventListener("touchstart", function(e){ if($(e.target).is(banner_banner_style_01_1680747940763.view) || $(e.target).closest("#"+banner_banner_style_01_1680747940763.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_1680747940763.startAnimateLeft(); // 瑙︽懜鐢熸晥 if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } }else if(touchVal.moveX < -30){ banner_banner_style_01_1680747940763.startAnimateRight(); // 瑙︽懜鐢熸晥 if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } } } touchVal = null; }, false); // 杩愯 banner_banner_style_01_1680747940763.config.timer = setTimeout(function(){ banner_banner_style_01_1680747940763.startAnimateRight(); }, banner_banner_style_01_1680747940763.config.duration); }); //=== 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 ===// detailHeightAuto("newsDetail_style_01_1506318095542", "璇︽儏鍔犺浇涓?); //=== viewid:copyright_style_01_1616665328602 ===// //=== viewid:footerCustom_footerDh_01_1676019213718 ===// $(function(){ if($("#footerCustom_footerDh_01_1676019213718 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#footerCustom_footerDh_01_1676019213718 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) } }) //=== viewid:footerCustom_footerDh_01_1676019213718 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } function _checkWindwo(){ if(is_mobile()){ $("#footerCustom_footerDh_01_1676019213718 .showmobile").show(); $("#footerCustom_footerDh_01_1676019213718 .showpc").hide(); }else{ $("#footerCustom_footerDh_01_1676019213718 .showmobile").hide(); $("#footerCustom_footerDh_01_1676019213718 .showpc").show(); } } _checkWindwo(); $(window).resize(function() { _checkWindwo(); })