//=== viewid:dh_style_28_1615272854031 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } $(function(){ $("#dh_style_28_1615272854031 li").each(function(){ }); }) //=== viewid:dh_style_28_1615272854031 ===// 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_1615272854031(){ $("#dh_style_28_1615272854031 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_28_1615272854031(); }) $(function(){ $("#dh_style_28_1615272854031 .fa-navicon").click(function(){ $("#dh_style_28_1615272854031 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_28_1615272854031(); $("#dh_style_28_1615272854031 .subBox").css("top",$("#dh_style_28_1615272854031 .menuUl_box").height()); if($("#dh_style_28_1615272854031 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_28_1615272854031 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_28_1615272854031 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_28_1615272854031 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_28_1615272854031 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_28_1615272854031 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_28_1615272854031 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1615272854031 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_28_1615272854031 .subBox").hide(); }) //椋庢牸41 42 } }) var color = $('#dh_style_28_1615272854031 .menuStyle_28 .menuUl02 .subMenu02').css('background-color'); $('#dh_style_28_1615272854031 .menuStyle_28').append(``); $('#dh_style_28_1615272854031 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){ let that = $(this); setTimeout(function(){ var hoverColor = that.css('background-color'); $('#dh_style_28_1615272854031 .menuStyle_28').append(``); },100); }); //=== viewid:productList_style_05_1498112766363,productList_style_04_1498112543032,productList_style_23_1615275846734,productList_style_03_1615521132674,productList_style_23_1615530796698,homelink_style_02_1615297784792,homelink_style_02_1615702173413,homelink_style_02_1615300040936,productList_style_23_1615682599561,homelink_style_02_1613097067094,homelink_style_02_1615272736117,productList_style_01_1578574977319,homelink_style_02_1615296931119,productList_style_23_1615296989000 ===// //=== viewid:image_style_01_1578479329820 ===// function gomodel_div_a_includeBlock_1615645348819(obj){//杩欎釜鏄烦杞ā鍧楃殑 var viewid = "div_a_includeBlock_1615645348819"; //绌虹殑璇濆氨涓嶈繘鍏ヤ簡锛岄槻姝㈡姤閿 if(viewid) $("html,body").stop().animate({scrollTop:$("#"+viewid).offset().top+"px"},window.scrollTime); } //=== viewid:video_style_02_1615704095398,video_style_02_1578479329828 ===// $(document).ready(function(){ }); //=== viewid:video_style_02_1578479329828 ===// $(function(){ if('true' == 'true' || '0' == '1'){ //鑷姩鎾斁鎴栭€夋嫨棣栧抚鍋氬皝闈 let u = navigator.userAgent; let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android缁堢 let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios if(isAndroid){ setTimeout(function(){ document.getElementById("myVideovideo_style_02_1578479329828").addEventListener("durationchange", androidShow());},300); }else if(isiOS){ iosShow(); } } function androidShow(){ let $videovideo_style_02_1578479329828 = $("#myVideovideo_style_02_1578479329828"); setTimeout(function(){ $videovideo_style_02_1578479329828[0].play(true); if('true' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 let time = 0; let timer = setInterval(function(){ $videovideo_style_02_1578479329828[0].pause(true); time++; if($videovideo_style_02_1578479329828[0].paused && time>=6 ){ clearInterval(timer); } },100); } },50); } function iosShow(){ if (window.WeixinJSBridge) { doPlayvideo_style_02_1578479329828(); if('true' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1578479329828(); },50); } } else { document.addEventListener("WeixinJSBridgeReady", function(){ doPlayvideo_style_02_1578479329828(); if('true' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1578479329828(); },50); } }, false); } } function doPlayvideo_style_02_1578479329828(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1578479329828 = $("#myVideovideo_style_02_1578479329828") $videovideo_style_02_1578479329828[0].play(true) }) } function doPausevideo_style_02_1578479329828(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1578479329828 = $("#myVideovideo_style_02_1578479329828") $videovideo_style_02_1578479329828[0].pause(true) }) } $("#myVideovideo_style_02_1578479329828")[0].addEventListener("play", function(){//鎾斁浜嬩欢 $("#myVideovideo_style_02_1578479329828")[0].setAttribute('poster', ''); }); }) //=== viewid:video_style_02_1578479329828 ===// var video = $("#video_style_02_1578479329828 video")[0]; if(video) { video.addEventListener('playing',function(){ var this1 = this; this1.play(); for(var j=$('video').length-1; j>=0; j--) { var this2 = $('video')[j]; if(this1 !== this2) { this2.pause(); } } }); if(typeof WeixinJSBrdgeReady=="object" && typeof WeixinJSBridge.invoke == "function"){ video.play() }else{ if (document.addEventListener) { document.addEventListener("WeixinJSBridgeReady", function () { if(video.currentTime == 0 || video.currentTime == 0.01){ video.play(); } }, false); document.addEventListener('touchstart', function () { if(video.currentTime == 0 || video.currentTime == 0.01){ video.play(); } }, false); document.addEventListener('touchend', function () { if(video.currentTime == 0 || video.currentTime == 0.01){ video.play(); } }, false); } else if (document.attachEvent) { document.attachEvent("WeixinJSBridgeReady", function () { video.play(); }); document.attachEvent("onWeixinJSBridgeReady", function () { video.play(); }); } } } //=== viewid:newsList_style_27_1615700824938 ===// //-- $(function(){ var viewid="newsList_style_27_1615700824938"; var sys_url="viewid=newsList_style_27_1615700824938&name=newsList&style=style_27&langid=0&pageid=2378477&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_27_1615700824938; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:newsList_style_27_1615700824938 ===// if(false) { $('#newsList_style_27_1615700824938 #boxNewsList .sumary_list').each(function (i) { if (i < 12) { $(this).show(); } else { $(this).hide(); } }) } $(function(){ var box1 = $('#newsList_style_27_1615700824938 .bcon'); var box2 = $('#newsList_style_27_1615700824938 .list_lh'); var ul1 = $('#newsList_style_27_1615700824938 #boxNewsList'); var ul2 = $('#newsList_style_27_1615700824938 #boxNewsList2'); var max_width = 0; if(!false){ //璁$畻楂樺害 function heightFunc(){ $('#newsList_style_27_1615700824938 #boxNewsList .sumary_list').each(function(i){ if(i < 12){ max_width += $(this).outerWidth(true); $(this).show(); }else{ $(this).hide(); } }) } heightFunc(); $(window).resize(function(){ item_height = 0; max_width = 0; heightFunc(); }); ul2.html(ul1.html()); var value = 0; var rolltimes = 200*25; var liwidth1 = $('#newsList_style_27_1615700824938 #boxNewsList .sumary_list:last').width(); var liwidth2 = $('#newsList_style_27_1615700824938 #boxNewsList .sumary_list:last').css('marginRight'); if(!liwidth2){ return; } liwidth2=liwidth2.substring(0,liwidth2.length-2); var liwidth = parseInt(liwidth1) + parseInt(liwidth2); var speed = rolltimes/liwidth; if(0 == 0){ box2.css('left','0px'); }else{ box2.css('left',-max_width+'px'); } //婊氬姩浜嬩欢 function scrollFunc(){ if(0 == 0){ if(value <= -max_width) { value = 0; }else{ value --; } box2.css('left',value+'px'); }else{ if(parseInt(box2.css('left')) >= 0) { box2.css('left',-max_width+'px'); value = -max_width; }else{ value = parseInt(box2.css('left')) + 1; box2.css('left',value+'px'); } } } var timer = setInterval(scrollFunc,speed); //榧犳爣浜嬩欢鍋滄瀹氭椂鍣 box1.mouseover(function(){ clearInterval(timer); }).mouseout(function(){ timer = setInterval(scrollFunc,speed); }); } }) //=== viewid:counter_style_3_1615286037086 ===// //-- $(function(){ var viewid="counter_style_3_1615286037086"; var sys_url="viewid=counter_style_3_1615286037086&name=counter&style=style_3&langid=0&pageid=2378477&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.moreParamscounter_style_3_1615286037086; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:counter_style_3_1615286037086 ===// $(function(){ if(!false){ function Timeing(config) { this._default = { 'arrayObj':[], //鎬绘暟瀛 'arrayTimeObj':[], //姣?.1绉掗€掑鏁板瓧 'arrayIndexObj':[], //鍒濆鍊? 'arrayLockObj':[], //鏄惁璁$畻瀹屾垚锛屽畬鎴愬悗涓簍rue 'timeNum':30, //璁$畻鎵€闇€鏃堕棿锛岄粯璁や负3绉 'begin':new Date(), //寮€濮嬫椂闂达紝鐢ㄦ潵璁$畻鑰楁椂澶氬皯 'timer':undefined, //瀹氭椂鍣 'id':'', //瑙嗗浘id 'start':false //閬垮厤婊氬睆鏃堕噸澶嶈Е鍙戠敓鎴愯鏁板櫒 }; config = $.extend(true, this._default, config); this.config = config; this.init(config); } //鍒濆鍖栧悇鏁扮粍 Timeing.prototype.init = function(config) { var _this = this; $('#'+_this.config.id+' .numberLi').each(function(i){ _this.config.arrayObj.push($(this).find('.num').html()); _this.config.arrayTimeObj.push($(this).find('.num').html()/_this.config.timeNum); _this.config.arrayIndexObj.push(0); _this.config.arrayLockObj.push(false); $(this).find('.num').html(0); }); } //瑙勫畾鏃堕棿璁$畻瀹屾暟瀛 Timeing.prototype.getNumFun = function(config){ var _this = this; let time_in = new Date().getTime(); let time_in_id = new Date().getTime()+'counter_style_3_1615286037086'; let setIntervalTime = 0; if (!_this.config.arrayLockObj.every(item => {return item})) { window.counterTimer[time_in_id] = setInterval(function () { for(let key in window.counterTimer){ let keyArr = key.split('counter'); let modelId = 'counter'+keyArr[1]; if(modelId == 'counter_style_3_1615286037086' && keyArr[0] > time_in){ clearInterval(window.counterTimer[key]); } } for (var i = 0; i < _this.config.arrayObj.length; i++) { if(_this.config.arrayLockObj[i]){ continue } _this.config.arrayIndexObj[i] += _this.config.arrayTimeObj[i]; if (Math.abs(_this.config.arrayIndexObj[i]) < Math.abs(_this.config.arrayObj[i])) { $('#'+_this.config.id+' .numberLi').eq(i).find('.num').html(Math.ceil(_this.config.arrayIndexObj[i])); } if (Math.abs(_this.config.arrayIndexObj[i]) - Math.abs(_this.config.arrayObj[i]) >= 0) { //console.info(_this.config.arrayIndexObj[i],_this.config.arrayTimeObj[i],new Date()-_this.config.begin);//璁$畻鏃堕棿 $('#'+_this.config.id+' .numberLi').eq(i).find('.num').html(_this.config.arrayObj[i]); _this.config.arrayLockObj[i] = true; } } if (_this.config.arrayLockObj.every(item => {return item}) && window.counterTimer) { clearInterval(window.counterTimer[time_in_id]); } }, 100); } } //缁戝畾婊氬姩浜嬩欢瑙﹀彂锛岃繘鍏ュ彲瑙嗚寖鍥村悗寮€濮嬭鏁板姛鑳 Timeing.prototype.bindLoad = function(config){ var _this = this; if(($(window).height() + $(window).scrollTop()) > $("#"+_this.config.id).offset().top) { _this.getNumFun(); } $("#"+_this.config.id).one("appear", function() { _this.getNumFun(); }); let fullpageObj = $("#"+_this.config.id).parents('.fullpage_div'); if(fullpageObj &&fullpageObj.length>0 && !fullpageObj.hasClass('active')){ //瀛樺湪浜庢粴灞忛〉闈㈠苟涓斾笉鏄涓€灞 if(!_this.config.start){ //娌″紑濮嬭繃 // 婊氬睆--榧犳爣婊氬姩鏃 $(window).on("mousewheel DOMMouseScroll", function (e) { var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // chrome & ie (e.originalEvent.detail && (e.originalEvent.detail > 0 ? -1 : 1)); // firefox if(fullpageObj.hasClass('active')){ _this.triggerScroll(); } }) // 婊氬睆--榧犳爣鐐瑰嚮鍒囨崲鏃 $("#fp-nav>ul>li").click(function(){ console.log('鐐瑰嚮鐐瑰嚮'); setTimeout(function(){ if(fullpageObj.hasClass('active')){ _this.triggerScroll(); } },50); }); // 婊氬睆--鎵嬫満婊戝姩 $('body').on('touchmove',function(){ if(fullpageObj.hasClass('active')){ _this.triggerScroll(); } }); } } $(window).bind("scroll", function(event) { var fold; if(!_this.config.start){ fold = $(window).height() + $(window).scrollTop(); if(fold >= $("#"+_this.config.id).offset().top) { _this.triggerScroll(); } } }); } //婊氬睆瑙﹀彂浜嬩欢 Timeing.prototype.triggerScroll = function(config){ var _this = this; _this.config.begin = new Date(); _this.config.start = true; _this.getNumFun(); } var timeingcounter_style_3_1615286037086 = new Timeing({ 'timeNum':30, 'id':'counter_style_3_1615286037086'}); timeingcounter_style_3_1615286037086.init(); timeingcounter_style_3_1615286037086.bindLoad(); } }); //=== viewid:image_style_23_1615723950636,image_style_11_1578479360573 ===// //=== viewid:text_default_1579405177282 ===// var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1278583868'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s9.cnzz.com/z_stat.php%3Fid%3D1278583868%26show%3Dpic' type='text/javascript'%3E%3C/script%3E")); //=== viewid:qqol_style_01_1575620923404 ===// /* * *************************************************************** * 鐗囨鍒楄〃绫 */ function FragmentList(config) { this._default = { 'prefix':'fragment-', 'css':{} }; config = $.extend(true, this._default, config); this.config = config; this.list = []; this.object = $('
'); // 鎵ц閰嶇疆 this.init(config); } /* * 鍒濆鍖 */ FragmentList.prototype.init = function(config) { config.css && this.object.css(config.css); }; /* * 娣诲姞 */ FragmentList.prototype.append = function (fragment) { this.list.push(fragment); }; /* * 鑾峰彇jquery瀵硅薄 */ FragmentList.prototype.get = function () { this.object.addClass(this.config.prefix + 'list').children().remove(); for(var i = 0, len = this.list.length, html = ''; i < len; ++i) { html += this.list[i].html(); } return this.object.html(html); }; /* * 杈撳嚭 */ FragmentList.prototype.html = function () { return this.get().prop('outerHTML'); }; /* * *************************************************************** * 鐗囨绫 */ Fragment.prototype.prefix = 'fragment-'; function Fragment(config) { (!config.init || Util.prototype.type(config.init) != 'function') && (config.init = function () {}); !config.html && (config.html = '
'); this._default = { 'name':'item' }; config = $.extend(true, this._default, config); // 鍒涘缓jquery瀵硅薄 config.data && (config.html = Util.prototype.replace(config.html, Util.prototype.toArray(config.data))); this.object = $(config.html).addClass((config.name != 'item' ? this.prefix + 'item': '') + ' ' + this.prefix + config.name); config.init(this.object); delete config.html; // jquery瀵硅薄鍒涘缓鍚? config.html 涓嶅啀浣跨敤 this.config = config; // 鎵ц閰嶇疆 this.init(config); } /* * 澶嶅埗 */ Fragment.prototype.clone = function () { return new Fragment($.extend(true, {}, this.config)); }; /* * 鍒濆鍖 */ Fragment.prototype.init = function(config) { config.css && this.object.css(config.css); }; /* * 淇敼鏍峰紡 */ Fragment.prototype.css = function(css) { css && this.object.css(css); return this; }; /* * 杈撳嚭 */ Fragment.prototype.html = function () { return this.object.prop('outerHTML'); }; /* * 浣跨敤鎸囧畾鏁版嵁鏇存柊鑷繁 */ Fragment.prototype.data = function (data) { this.object.html(Util.prototype.replace(this.html(), Util.prototype.toArray(data))); return this; }; /* * *************************************************************** * 杈规爮绫 */ function Sidebar(config) { this._default = { // 榛樿閰嶇疆, 甯搁噺, 涓嶅簲璇ヤ慨鏀? 瀵硅薄鍒濆鍖栨椂鍙鐩 'template':'sidebar', 'expand':true, // 榛樿灞曞紑杩樻槸闅愯棌 'css':undefined, 'main':{'width':'120px', 'position':'right'}, 'border':{'width':'1px', 'color':'#ccc', 'radius':'2px'}, 'button':{'width':'26px', 'color':'#333', 'font-size':'12px', 'background-color':'#ececec', 'radius':'5px'}, 'close':{'hide':false, 'height':'25px', 'font-size':'12px', 'padding':'0 .6em 0 .3em'}, 'show':{'start':undefined, 'end':undefined}, // 鏄剧ず寮€濮嬪拰缁撴潫鏃惰鎵ц鐨勫嚱鏁 'end':{'start':undefined, 'end':undefined} // 闅愯棌寮€濮嬪拰缁撴潫鏃惰鎵ц鐨勫嚱鏁 }; config = $.extend(true, this._default, config); this.config = config; // dom 缁撴瀯 var temp = $('.'+config.template+':first'); temp.hide(); this.main = temp.clone().removeClass(config.template).show(); this.main.data('instance', this); // dom 缁撴瀯鐨 data 涓繚瀛樼被瀵硅薄 config.css && this.main.addClass(config.css); // 涓昏灞炴€ this.width = config.main.width; this.position = config.main.position; this.main.addClass(this.position); this.position_rev = this.position == 'right' ? 'left' : 'right'; this.wrapper = this.main.children('.wrapper'); this._close = this.wrapper.children('.close'); this.button = this.main.children('.button'); // 瀛愬厓绱犵殑 dom 缁撴瀯鐨 data 涓繚瀛樼被瀵硅薄 this._close.data('parent', this); this.button.data('parent', this); // 鎵ц閰嶇疆 this.init(config); } /* * 鍒濆鍖 */ Sidebar.prototype.init = function(config) { this.initMain(); this.initWrapper(config); this.initButton(config); // 鍨傜洿灞呬腑鍚? 绉诲姩鍒癰ody鏈€鍚 this.verticalCenter().appendTo('body'); config.expand ? this.show(false) : this.hide(false); this.main.show(); // 瀛樺偍鎵€鏈夌殑瀵硅薄鍒皐indow涓 (鍚庢湡浼氫娇鐢? !window.online_service_list && (window.online_service_list = []); window.online_service_list.push(this); $(window).resize(this.onWindowResize); }; /* * 鍒濆鍖 - main */ Sidebar.prototype.initMain = function() { this.main.hide().css({ 'height':'auto', 'position':'fixed', 'z-index':'100000000', 'top':'0px', 'width':this.width }); this.main.css(this.position, '0px'); // 绉诲叆绉诲嚭鏃 this.main.hover( function () { $(this).data('instance').show(); }, function () { if(!$(this).hasClass('animate-showing')) { $(this).data('instance').hide(); } } ); }; /* * 鍒濆鍖 - wrapper */ Sidebar.prototype.initWrapper = function(config) { this.wrapper.css({ 'border': config.border.width +' solid ' + config.border.color, 'border-radius':config.border.radius, '-moz-border-radius':config.border.radius }); this._close.css({ 'display':config.close.hide ? 'none' : 'block', 'position':'absolute', 'top':'0px', 'right':'0px', 'height':config.close.height, 'line-height':config.close.height, 'font-size':config.close['font-size'], 'padding':config.close.padding, 'cursor':'pointer' }).click(function () { var instance = $(this).data('parent'); Sidebar.prototype.hide.call(instance); if(typeof($("img").lazyload)=="function"){ //寮傛鍔犺浇鍥剧墖 setTimeout(function(){ $("img").lazyload({effect: "fadeIn",threshold:0,failure_limit:20,skip_invisible:false}); },500); } }).attr({'onselectstart':'return false', 'unselectable':'on'}); // [鍏煎]绂佹閫夋嫨鏂囨湰 }; /* * 闅愯棌Sidebar * animate: 鏄惁甯﹀姩鐢 */ Sidebar.prototype.hide = function (animate) { animate === undefined && (animate = true); var instance = this, width = '-'+this.width, end = this.position == 'right' ? {right :width} : {left :width}, btn_width = '-'+instance.config.button.width, btn_end = instance.position == 'right' ? {left :btn_width} : {right :btn_width}; instance.onHide('start'); if(animate) { instance.main.animate(end, 'fast', function() { instance.button.show().animate(btn_end, 'fast'); instance.onHide('end'); }); } else { instance.main.css(end); instance.button.show().css(btn_end); instance.onHide('end'); } }; /* * 闅愯棌Sidebar寮€濮嬪拰缁撴潫鏃 */ Sidebar.prototype.onHide = function (status) { var func; if(this.config.hide) { switch(status) { case 'start': Util.prototype.type(func = this.config.hide.start) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁 break; case 'end': Util.prototype.type(func = this.config.hide.end) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁 break; } } }; /* * 鍒濆鍖 - button */ Sidebar.prototype.initButton = function(config) { var width = config.button.width; this.button.hide().css({ 'position':'absolute', 'top':'0%', 'width':width, 'line-height':'1.35em', 'padding':'.5em 0', 'font-size':config.close['font-size'], 'color':config.button.color, 'background-color':config.button['background-color'], 'cursor':'pointer', 'word-wrap':'break-word', 'word-break':'break-all' }); var radius = config.button.radius; if(this.position == 'right') { this.button.css({ 'border-top-left-radius':radius, 'border-bottom-left-radius':radius }); } else { this.button.css({ 'border-top-right-radius':radius, 'border-bottom-right-radius':radius }); } this.button.css(this.position_rev, '0px'); // 鐐瑰嚮鏃 this.button.click(function () { var instance = $(this).data('parent'); Sidebar.prototype.show.call(instance); }).attr({'onselectstart':'return false', 'unselectable':'on'}); // [鍏煎]绂佹閫夋嫨鏂囨湰 }; /* * 鏄剧ずSidebar * animate: 鏄惁甯﹀姩鐢 */ Sidebar.prototype.show = function (animate) { animate === undefined && (animate = true); var instance = this, end = instance.position == 'right' ? {right :0} : {left :0}; instance.onShow('start'); if(animate) { instance.onAnimate('showing'); instance.main.animate(end, 'fast', function() { instance.onAnimate(); instance.button.hide(); // Bug淇: 棰濆闅愯棌涓€娆 instance.onShow('end'); }); } else { instance.main.css(end); instance.onShow('end'); } // 鏄剧ず寮€濮嬪悗, 涓嶇鏄惁鏈夊姩鐢? 鎸夐挳搴旇椹笂闅愯棌 instance.button.hide(); instance.button.css(instance.position_rev,'0px'); }; /* * 鏄剧ずSidebar寮€濮嬪拰缁撴潫鏃 */ Sidebar.prototype.onShow = function (status) { var func; if(this.config.show) { switch (status) { case 'start': Util.prototype.type(func = this.config.show.start) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁 break; case 'end': Util.prototype.type(func = this.config.show.end) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁 break; } } }; /* * 璁剧疆瀹炴椂鍔ㄧ敾鐘舵€ * status: 涓虹┖鏃惰〃绀哄姩鐢荤粨鏉 */ Sidebar.prototype.onAnimate = function(status) { Util.prototype.removeClass(this.main, 'animate-'); status && this.main.addClass('animate-'+status); }; /* * 绐楀彛澶у皬鏀瑰彉鏃 */ Sidebar.prototype.onWindowResize = function() { for(var i = 0, len = window.online_service_list.length; i < len; ++i) { window.online_service_list[i].verticalCenter(); } }; /* * 鍦ㄧ獥鍙e瀭鐩村眳涓 */ Sidebar.prototype.verticalCenter = function() { var h1 = this.main.height(), h2 =$(window).height(); if(h1 && h2) { this.main.css('top', ((h2 - h1) / 2) + 'px'); } return this.main; }; /* * 娣诲姞鍐呭 */ Sidebar.prototype.append = function(obj) { this.wrapper.append(obj); this.verticalCenter(); }; /* * *************************************************************** * 宸ュ叿绫 */ function Util() { } /* * 杩斿洖瀵硅薄绫诲瀷 */ Util.prototype.type = function(obj) { var type = obj === undefined ? 'undefined' : (obj === null ? 'null' : undefined); // 鍏煎鏃х増js瑙f瀽鍣 return type ? type : Object.prototype.toString.call(obj).slice(8, -1).toLowerCase(); }; /* * 妫€娴嬪璞$被鍨 */ Util.prototype.is = function(obj, type) { var cls = this.type(obj); return obj !== undefined && obj !== null && cls.toLowerCase() === type.toLowerCase(); }; /* * 灞炴€ф墿灞? 澧炲己鐗 ) * 娉ㄦ剰: 涓€鑸繁搴﹀鍒? 鍙洿鎺ヤ娇鐢 $.extend(true, target, source) */ Util.prototype.extend = function(target, source, is_deep, is_add) { is_deep === undefined && (is_deep = true); // 濡傛灉鍊间篃鏄璞? 鏄惁瀵瑰€间篃璋冪敤extend is_add === undefined && (is_add = true); // 濡傛灉鐩爣瀵硅薄涓病鏈夋簮瀵硅薄鐨勯敭, 鏄惁鍏佽鏂板閿€ for (var p in source) { if (source.hasOwnProperty(p) && (is_add || target.hasOwnProperty(p))) { // 鎵цextend if(is_deep && this.is(target[p], 'object') && this.is(source[p], 'object')) { this.extend(target[p], source[p]); } else { target[p] = source[p]; } } } return target; }; /* * 鍒犻櫎class( 鍒犻櫎鎸囧畾鍚嶇О鐨刢lass鍜屾墍鏈変互鎸囧畾鍚嶇О寮€澶寸殑class ) */ Util.prototype.removeClass = function(obj, rm) { obj.attr('class', function () { var regExp = new RegExp(rm + '\\S*', 'g'); return Util.prototype.clear($(this).attr('class').replace(regExp, '')); }); return obj; }; /* * 鍒犻櫎鍓嶅悗绌虹櫧 */ Util.prototype.trim = function(s){ return s.replace(/(^\s*)|(\s*$)/g,''); }; /* * 鍚堝苟涓棿澶氫釜绌虹櫧涓轰竴涓 */ Util.prototype.clear = function(s){ return s.replace(/(^\s*)|(\s*$)|(\s{2,})/g,''); }; /* * 瀵硅薄杞暟缁 */ Util.prototype.toArray = function(obj) { var array = [], p, item; for (p in obj) { if (obj.hasOwnProperty(p)) { item = [p]; item.push(this.is(obj[p], 'object') ? this.toArray(obj[p]) : obj[p]); array.push(item); } } return array; }; /* * 浣跨敤鎸囧畾鐨勯敭鍊兼暟缁勬浛鎹竴涓瓧绗︿覆 * 澶囨敞: 瀛楃涓蹭腑閿互{{}}鏍囪 * 澶囨敞: data: 浜岀淮鏁扮粍, 涓€缁存暟缁勭殑姣忎竴椤规槸涓€涓暱搴︿负浜岀殑鍐呭眰鏁扮粍, 鍐呭眰鏁扮粍鐨勭涓€椤逛负閿? 绗簩椤逛负鍊 */ Util.prototype.replace = function(s, data) { var i, len, reg_str = [], reg; for(i = 0, len = data.length; i < len; ++i) { reg_str.push('({{' + data[i][0] + '}})'); } // 姝e垯鏇挎崲 reg = new RegExp(reg_str.join('|'), 'g'); return s.replace(reg, replace); // 鎵ц鏇挎崲鐨勫嚱鏁 function replace(){ // arguments 涓寘鍚殑鏄? 瀛楃涓蹭腑褰撳墠浣嶇疆鍖归厤鍒扮殑瀛楃涓? 绗?涓?)鍖归厤鍒扮殑瀛楃涓? ..., 绗琻-1涓?)鍖归厤鍒扮殑瀛楃涓? 褰撳墠鍖归厤鐨勪綅缃? 鏁翠釜瀛楃涓 // 浠庣储寮曚负1寮€濮? 绗竴涓笉涓簎ndefined鐨勯」鐨勭储寮曞€煎噺涓€鍗充负鍖归厤鍒扮殑閿殑绱㈠紩 for(var i = 1, len = arguments.length; i < len; ++i) { if(arguments[i] !== undefined) { return data[--i][1]; } } } }; //=== viewid:qqol_style_01_1575620923404 ===// //璐墿杞 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 = "//admin.mifwl.com/exusers/u_cart.php?idweb=70757&act=show&lang="+langid+"&ismobile=1"; }else{ document.getElementById("boxName").innerHTML="鏌ョ湅璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src="//admin.mifwl.com/exusers/u_cart.php?idweb=70757&act=show&lang="+langid+"&v=9"; box.Show({width:'1000px', height:'600px'}); } } } //鍒ゆ柇鏄惁鏄墜鏈?鐢ㄤ簬澶勭悊QQ鐢佃剳绔強鎵嬫満绔摼鎺ヤ笉涓€鑷撮棶棰 var mobile_flag = isMobile(); if(mobile_flag){ $('#qqol_style_01_1575620923404 .qq-btn-pc').hide(); $('#qqol_style_01_1575620923404 .qq-btn-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_01_1575620923404 ===// function remove_qqol_qqol_style_01_1575620923404(){ $('body > .online-service.qqol-qqol_style_01_1575620923404').remove(); } // 鍒涘缓鍦ㄧ嚎瀹㈡湇 $(function () { // 娓呯悊鏃х殑 remove_qqol_qqol_style_01_1575620923404(); // 鍒涘缓杈规爮 var sidebar = new Sidebar({ 'template': 'online-template', 'css': 'qqol-qqol_style_01_1575620923404', 'expand': false, 'main': {'width':'200px', 'position': 'right'}, 'border': {'color': '#273272', 'width': '3px', 'radius': '10px'}, 'button': {'color': '#fff', 'background-color': '#273272', 'radius': '5px'}, 'close': {'hide': false} }); // 鐗囨妯℃澘 var qqOnlineStr = '
' + '' + '{{title}}' + '{{text}}' + '' + '{{title}}' + '{{text}}' + '
'; // 鍥炬爣涓嶈兘鏄剧ず鏃? 鏇存崲QQ鍙风爜璁╁叾鏄剧ず // 鍒涘缓鐗囨 Fragment.prototype.prefix = 'ol-'; // 鍒涘缓鐗囨鍒楄〃 var fragmentList = new FragmentList({ 'prefix':'ol-', 'css':{'padding':'0 12px'} }); fragmentList.append(new Fragment({ 'name': 'text', 'html': '
宸ヤ綔鏃堕棿
', 'css':{'margin':'.5em 0'} })); fragmentList.append(new Fragment({ 'name': 'text', 'html': '
鍛ㄤ竴鑷冲懆鏃 锛?:00-18:00
', 'css':{'margin':'.5em 0'} })); fragmentList.append(new Fragment({ 'name':'separator', 'css':{'height':'1px', 'background-color':'#4c4c4c'} })); fragmentList.append(new Fragment({ 'name': 'text', 'html': '
鑱旂郴鏂瑰紡
', 'css':{'margin':'.5em 0'} })); fragmentList.append(new Fragment({ 'name': 'text', 'html': '
鐢佃瘽锛?00-000-0000
', 'css':{'margin':'.5em 0'} })); // 娣诲姞鍒拌竟鏍 var list = fragmentList.get(); !list.children().length && list.html('

鍐呭鍒楄〃涓虹┖锛?/p>'); sidebar.append(list); if(typeof($("img").lazyload)=="function"){ $("img").lazyload({effect: "fadeIn",threshold:0,failure_limit:20,skip_invisible:false}); } }); //=== viewid:qqol_style_01_1575620923404 ===// // 瀵硅緭鍏ュ唴瀹逛腑鐨勫皷鎷彿銆佸紩鍙风瓑杩涜杞箟 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:button_style_04_1578627329765 ===// function btnTop(){$("html,body").animate({scrollTop:"0px"},1000);}function btnBottom(){var bodyH = $("html,body").height();$("html,body").animate({scrollTop:bodyH},1000);} //=== viewid:copyright_style_01_1615860657799 ===//