(function(op){var effect1=function(){var head=$('#xg_header');var an=function(){if(document.documentElement.scrollTop+document.body.scrollTop>head.height()){head.css('opacity',0);}else{head.css('opacity',1);}} head.hover(function(){head.css('opacity',1);},an);page.scroll(an);head.on('mousemove',function(){$(this).css('opacity',1);});$(an);} if(page.currentDevice()==1){if(op.pcEffect==2){effect1();}}else{}})({'pcEffect':0,'mobileEffect':0}); var tMenu={m1:function(obj){var tid=util.queryString('typeid');if(!tid){return;} var active=obj.find('li[data-tid='+tid+']:first');if(active.length==0){var ids=String(obj.children('ul').data('curparents')).split(',');for(var i=0;i0){break;}}} var cssText='';while(active.length>0){if(active.is('li')){var c=active.attr('class')+'-select';active.addClass(c);if(active.css('color')){cssText+='.'+c+' a{color:'+active.css('color')+';}';}} active=active.parent();if(active.is('.xg_tMenu')||active.is('.xg_menu')){break;}} tMenu.aCss(cssText);},m2:function(obj){var tid=util.queryString('typeid');if(!tid){return;} var active=obj.children('ul').children('li[data-tid='+tid+']');if(active.length==0){var ids=String(obj.children('ul').data('curparents')).split(',');for(var i=0;i0){active=active.find('li[data-tid='+tid+']:first');}}} var cssText='';while(active.length>0){if(active.is('li')){var c=active.attr('class')+'-select';active.addClass(c);if(active.css('color')){cssText+='.'+c+' a{color:'+active.css('color')+';}';}} active=active.parent();if(active.is('.xg_tMenu')||active.is('.xg_menu')){break;}} tMenu.aCss(cssText);},m3:function(obj){if(obj.data('urlinlastlevel')=='1'){obj.find('li div').on('click',function(){var thisUl=$(this).siblings('ul');var p=$(this).parent();var className='';p.get(0).className.split(' ').forEach(function(item){if(item.indexOf('xg_')==0){className=item+'-select';}});obj.find('li').each(function(){var _this=$(this);if(this.className.indexOf('-select')>0){this.className.split(' ').forEach(function(item){if(item.indexOf('-select')==-1){return;} _this.removeClass(item);});}});if(thisUl.length==0){p.removeClass(className).addClass(className);return;} p.siblings('li').children('ul').slideUp();thisUl.slideToggle();p.removeClass(className).addClass(className);});};var tid=util.queryString('typeid');if(!tid){return;} var active=obj.find('li[data-tid='+tid+']:first');if(active.length==0){var ids=String(obj.children('ul').data('curparents')).split(',');for(var i=0;i0){break;}}} var cssText='';while(active.length>0){if(active.is('li')){var c=active.attr('class')+'-select';active.addClass(c);if(active.css('color')){cssText+='.'+c+' a{color:'+active.css('color')+';}';} active.children('ul').show();} active=active.parent();if(active.is('.xg_tMenu')||active.is('.xg_menu')){break;}} tMenu.aCss(cssText);},aCss:function(cssText){if(!cssText){return;} var c=document.createElement('style');c.type='text/css';c.innerText=cssText;document.head.appendChild(c);}} var menu=function(obj,options){var cssAColor='';var addClass=function(el,className){el.addClass(className);if(el.css('color')&&cssAColor.indexOf('.'+className)==-1){cssAColor+='.'+className+' a{color:'+el.css('color')+';}';}} var nid=parseInt(util.queryString('nid'));if(isNaN(nid)){nid=0;} if(nid>0){var navi=obj.find('li[data-nid='+nid+']');var tid=parseInt(util.queryString('typeid'));if(isNaN(tid)){tid=parseInt(util.queryString('tid'));} var li=obj.children('.xg_menuUl').children('li[data-tid='+tid+']');if(li.length>0){addClass(li,li.attr('class').split(' ')[0]+'-select');}else if(navi.length>0){addClass(navi,navi.attr('class').split(' ')[0]+'-select');if(tid>0){var li=navi.find('li[data-tid='+tid+']');if(li.length>0){addClass(li,li.attr('class').split(' ')[0]+'-select');li.parentsUntil('.xg_menu','li').each(function(){addClass($(this),$(this).attr('class').split(' ')[0]+'-select');actived=true;return false;});}}}}else{var url=util.createUrl();if(url.replace(document.location.host,'').indexOf('.')==-1||url.indexOf('index.aspx')>0){var home=obj.find('li[home=1]');if(home.length>0){addClass(home,home.attr('class').split(' ')[0]+'-select');}}} if(cssAColor){var style=document.createElement('style');style.type='text/css';style.innerText=cssAColor;document.head.appendChild(style);} var showType=obj.data('mobileshoweffect');obj.find('.xg_menuMobile .xg_memu_btn').on('click',function(){options.mobileMenuEffect.show(obj);if(util.isNullOrEmpty($('body').attr('style'))||(!util.isNullOrEmpty($('body').attr('style')&&$('body').attr('style').indexOf('overflow-y')==-1))){$('body').css('overflow-y','hidden');$('body').attr('data-overflow',true);}else{$('body').attr('data-overflow',false);} if(showType==0||showType==2){$(this).next().css({'left':'0px'});}else if(showType==1||showType==3){$(this).next().css({'top':'0px'});} setTimeout(function(){obj.find('img').lazyload();},300);});obj.find('.xg_menuShade').on('click',function(){if($('body').data('overflow')){$('body').css('overflow-y','');} $('body').removeAttr('data-overflow');var css={};if(showType==0){css={'left':'-100%'};}else if(showType==1){css={'top':'-100%'};}else if(showType==2){css={'left':'100%'};}else if(showType==3){css={'top':'100%'};} $(this).parent().css(css);options.mobileMenuEffect.hide(obj);});var design=util.inDesign();if(design){if(obj.find('.xg_menutop').children().length==0){obj.find('.xg_menutop').html('
可拖动行到此
');} if(obj.find('.xg_menubottom').children().length==0){obj.find('.xg_menubottom').html('
可拖动行到此
');}} var device=page.currentDevice();if(device==2){options.mobileMenuEffect.init(obj);if(obj.data('mobilelisttype')==2){var mobile=obj.find('.xg_menuMobile');mobile.children('.xg_menuPanel').find('ul').show();mobile.find('.xg_menuUl').css({'height':'100%','overflow-y':'auto'});return;}} obj.children('.xg_menuMobile').find('.xg_menuTitle1,.xg_menuTitle2,.xg_menuTitle3,.xg_menuTitle4').on('click',function(e){var ul=$(this).next();if(ul.length==0){return true;} ul.slideToggle();return true;});if(device==1&&obj.data('droptype')=='1'){var ul=obj.children('.xg_menuUl');var needEffect=obj.data('effect');if(!needEffect){needEffect=0;} var menulis=ul.children('li');var droplist=obj.children('.xg_dropdownlist');if(design){var html='';if(droplist.length==0){html='
';} obj.children('.xg_menuUl').children('li').each(function(){var id=$(this).data('nid');var type='n';if(!id){id=$(this).data('tid');type='t';} if($(this).attr('home')||droplist.children('div[data-rid='+id+']').length>0){return;} html+='
当前下拉菜单中无内容,访客访问将不显示当前下拉菜单
';});if(droplist.length==0){html+='
';obj.append(html);droplist=obj.children('.xg_dropdownlist');}else{droplist.append(html);} menulis.on('click',function(){var _this=$(this);setTimeout(function(){if(!selector._element.innerSelect){return;} var id=_this.data('nid');if(!id){id=_this.data('tid');} if(!id){return;} var mWidth=$(this).parents('.xg_header').width();droplist.css({'width':$(document.body).width()+'px','height':'auto','display':'block','min-width':mWidth+'px','position':'absolute','top':ul.height()+'px'});if(droplist.offset().left!=0){var mLeft=parseInt(droplist.css('margin-left'));isNaN(mLeft)&&(mLeft=0);var left=mLeft-droplist.offset().left/(parseFloat($('html').get(0).style.zoom)||1);droplist.css({'margin-left':left+'px'});} var list=droplist.children('[data-rid='+id+']');if(list.length==0){return;} if(list.css('display')=='block'){list.hide();}else{list.show().siblings().hide();}},150);});}else if(droplist.length>0){menulis.hover(function(){clearTimeout($(this).data('menuHide'));var id=$(this).data('nid');if(!id){id=$(this).data('tid');} if(!id){return;} var mWidth=$(this).parents('.xg_header').width();droplist.css({'width':$(document.body).width()+'px','height':'auto','display':'block','min-width':mWidth+'px','position':'absolute','top':ul.height()+'px'});if(droplist.offset().left!=0){var mLeft=parseInt(droplist.css('margin-left'));isNaN(mLeft)&&(mLeft=0);var left=mLeft-droplist.offset().left/(parseFloat($('html').get(0).style.zoom)||1);droplist.css({'margin-left':left+'px'});} var list=droplist.children('[data-rid='+id+']');if(list.length==0){return;} list.siblings().hide();if(needEffect==0){list.show();}else{list.stop().slideDown('fast');}},function(){var _this=$(this);var id=_this.data('nid');if(!id){id=_this.data('tid');} if(!id){return;} var list=droplist.children('[data-rid='+id+']');if(list.length==0){return;} clearTimeout(_this.data('menuHide'));_this.data('menuHide',setTimeout(function(){if(needEffect==0){list.hide();}else{list.stop().slideUp('fast');}},120));});droplist.children('div').hover(function(){var id=$(this).data('rid');menulis.each(function(){var _that=$(this);var mid=_that.data('nid');if(!mid){mid=_that.data('tid');} if(mid==id||mid==id){clearTimeout(_that.data('menuHide'));}});},function(){if(needEffect==0){$(this).hide();}else{$(this).stop().slideUp('fast');}});}}} ;(function(root){/*LayoutRow*/ $(function(){ $("#xg_header,#xg_banner,#xg_footer").hide(); $("section").css({"width":"100vw","height":"100vh","position":"relative"}); $("section .container").css({"width":"100%","position":"relative","overflow":"hidden"}); $("input").click(function(){ window.location.href="/index.aspx"; }) }); /*LayoutRow*/ })($('#rd1ead1984aed2eee')); $(function(){tMenu.m1($('#if17190dd69700aec12d778'))}); $(function(){tMenu.m1($('#if1719086db0f15f9ba0838'))}); $(function(){tMenu.m1($('#if1719075f2f37c7124e624'))}); $(function(){tMenu.m1($('#if171905b40b94fa31adfdf'))}); $(function(){tMenu.m1($('#if171902e46107a4bd50b06'))}); $(function(){tMenu.m1($('#if17190263ed9d49a50ffce'))}); $(function(){tMenu.m1($('#if1719059fcc4df5d6228a4'))}); $(function(){tMenu.m1($('#if171900bcaae6214594580'))}); $(function(){menu($('#'+'if171900a4267fa4b795f79'),{mobileMenuEffect:{init:function(root){},show:function(root){var lis=root.find('.xg_menuMobile').find('li');var count=0;for(var index=0;index0){ $("#if171909c7b9eac72cb303e input[type=text]").val(decodeURIComponent(paras[2])); } }},verify:function(el,val){util.isNullOrEmpty(val)&&(val='');var col='Key';var span=el.find('span.xg_fierror');var error=false;if(!validate[col]){return true;} validate[col].forEach(function(item){if(!error&&!item.reg.test(val)){error=true;span.text(item.msg).show();return false;}});if(error){return!error;$('html,body').scrollTop(el.offset().top);}else{span.text('');} return!error;},getValue:function(el){var inputs=el.find('input[type=text]');var textArea=el.find('textarea');var selects=el.find('select');var val='';if(inputs.length>0){var hid=el.find('input[type=hidden]');if(hid.length>0){type='hidden';}else{type=inputs.eq(0).attr('type');} if(type=='hidden'){val=hid.val();}else if(type=='radio'){inputs.each(function(){if($(this).is(':checked')){val=$(this).val();}});}else if(type=='checkbox'){inputs.each(function(){if($(this).is(':checked')){val+=$(this).val()+',';}});if(val.length>0){val=val.replace(/,$/g,'');}}else{val=inputs.eq(0).val();}}else if(textArea.length>0){val=textArea.val();}else if(selects.length>0){val=selects.find(':selected').val();}else{util.log('未能设别的内容');} if(util.isNullOrEmpty(val)){return val;} return val;},siteSearch:function(){if(util.inDesign()) return;var btn=root.find('#'+root.data('btn'));var inKey=root.find('input[type=text]');if(inKey.length<1){return;} var div=inKey.parent();var verify=div.data('verify');if(!verify||!verify()){return;} var searchVal=encodeURIComponent(inKey.val());search.openUrl(searchVal);},openUrl:function(key){var goUrl=root.data('go');if(goUrl){goUrl=util.createUrl(goUrl,false,['key'],[key]);}else{goUrl=util.createUrl(null,false,['key'],[key]);} if(typeof mySiteSearch!='undefined'){mySiteSearch(root,goUrl);return;} util.openUrl(goUrl,root.data('target'));}} ;var validate={"Key":[{"reg":/\S{1,}/,"msg":"不允许为空"},{"reg":/^.{1,11}$/m,"msg":"允许输入字符数范围是:1到11位"}]} $(search.init);})($('#if171909c7b9eac72cb303e')); animation.config['an17']={"id":"17","clientIndex":"f1719-041189a7dd6583fa8","timingFunction":"","duration":"1","delay":"0","type":10,"name":"金沙js93252集团搜索动画2_经过","anName":"an_tran_17","device":1,"resume":0,"clear":1};animation.config['an18']={"id":"18","clientIndex":"f1719-041189a7dd6583fa8","timingFunction":"","duration":"1","delay":"0","type":10,"name":"金沙js93252集团搜索动画2_默认","anName":"an_tran_18","device":1,"resume":0,"clear":1}; animation.regist("[data-eventid='f1719-041189a7dd6583fa8']",[{"name":"鼠标移出","id":99,"event":"mouseleave","an":[{"id":18,"anName":"an_tran_18","device":1}],"device":1,"doCount":0,"count":0}]);