<2o H="4J"><2p><16>16><16> \\5516><16> 16>2p>2o>
\',a,"","
",\'<2W 2X="\',e,\'" 7="E:6G;2w:6H 6I" />\',""].6J(""),1Y:6(){g=8.F.W[0].1y("2W")[0],g.6K(),g.N()},1H:6(a){B c&&c.1e(8,g.2X,a)},1c:!0})},b.6L=6(a,c,e,f){A g=e?6(){8.F.13[0].1j=\'<3B 1b="\'+8.U.2v+"2s/3C/"+e+\'" H="3D"/>\',8.F.13[0].7.G="",f&&(8.U.1d=f)}:6(){8.F.13[0].7.G="O",f&&(8.U.1d=f)};B b({X:"6M",V:d(),R:!1,1c:!1,Y:!0,1t:!1,Z:!1}).W(a).1X(c||1.5,g)}}(8.4w||8.4x,8.2R)',62,421,"||||||function|style|this||||||||||||||||||||||||||||var|return|top|_|width|DOM|display|class|height|if|td|left|px|focus|none|wrap|div|title|max|null|config|zIndex|content|id|fixed|resize||auto|position|icon|iframe|bind|tr||cursor|border|offsetWidth|src|cancel|close|call|Math|end|setting|min|innerHTML|removeClass|offsetHeight|absolute|unbind|_or|doc|html|button|addClass|lock|main|100|cssText|for|getElementsByTagName|list|callback|typeof|ldg_lockmask|href|javascript|length|createElement|ok|size|parseInt|scrollLeft|scrollTop|_lock|parent|_maxState|document|split|try|catch|css|in|drag|block|time|init|opacity||dragEvent|zindex|fn|rb|move|inline||_focus|appendChild|_ie6SelectFix|_autoPositionType|number|setTimeout|_click|visibility|_load|filter|body|else|remove|_minState|_setAbsolute|_minRz|table|tbody|void|indexOf|skins|name|_init|path|padding|apply|show|buttons|_listeners|arguments|hidden|alpha|res|delete|dialog|target|start|clientX|clientY|maxX|maxY|gif|url|new|esc|lhgdialog|skin|cancelVal|data|hide|input|value|disabled|_toNumber|clearTimeout|ui_state_focus|elemFocus|index|_setFixed|attr|_frmTimer|ui_lock_scroll||_maxSize|background|_winResize|dblclick|ldg_dragmask|onstart|onmove|onend|confirm|ActiveXObject|Date|colspan|u6700|u5316|substr|lastIndexOf|documentElement|lhgdialoglink|insertBefore|firstChild|backgroundImage|backgroundAttachment|push|okVal|prototype|test|_getDOM|closed|img|icons|ui_icon_bg|se|_ie6PngFix|_addEvent|elem|ui_state_tips|_iframe|_left|toString|_top|_timer|visible|ui_state_visible|ui_state_lock|unlock|contentWindow|load|_fmLoad|ui_state_full|_removeEvent|className|rc|tc|btn|rzs|location|ui_loading|9999em|cache|FFF|ownerDocument|setExpression|removeExpression|_reset|_winSize|_lockDocW|newWidth|click|keydown|span|u786e|extendDrag|setCapture|mousemove|mouseup|_sClientX|_sClientY|getSelection|losecapture|blur|ui_state_drag|minX|minY|_start|_end|jQuery|lhgcore|alert|prompt|XMLHttpRequest|JDG|ui_border|ui_lt|ui_t|ui_rt|ui_l|ui_c|ui_inner|ui_dialog|ui_title_bar|ui_title|unselectable|on|ui_title_buttons|ui_min|u5c0f|ui_min_b|ui_max|u5927|ui_max_b|ui_res|u8fd8|u539f|ui_res_b|ui_res_t||ui_close|u5173|u95ed|u952e|u00d7|ui_icon|ui_main|ui_content|ui_buttons|ui_r|ui_lb|ui_b|ui_rb|querySelector|getAttribute|break|script|default|self|true|frameset|compatMode|BackCompat|execCommand|BackgroundImageCache|head|link|rel|stylesheet|getElementById|zoom|about|blank|constructor|opener|ui_state_highlight|slice|type|1e3|overflow|hasOwnProperty|get|reload|transparent|getTime|replace|1_|setAttribute|frameborder|lt|marginLeft|api|ui_|currentStyle|png|runtimeStyle|progid|DXImageTransform|Microsoft|AlphaImageLoader|sizingMethod|scale|iframeMask|abs|140|max_b|res_b|res_t|min_b|mousedown|keyCode|unload|loading|u89c6|u7a97|u5b9a|u53d6|u6d88|10px|1976|onlosecapture|removeAllRanges|selection|empty|offsetLeft|offsetTop|releaseCapture|150|pointer|events|307200|u8b66|u544a|Alert|u8ba4|u63d0|u95ee|Prompt|margin|bottom|5px|font|12px|18em|6px|4px|join|select|tips|Tips".split("|"),0,{}));$.extend($.fn,{Tips:function(f){var e=$.extend({type:"load",text:"鍔犺浇涓?..",time:3},f),h=".jquery_tips",d={okay:"#080",warn:"#808",error:"#800",load:"#008"};if($(h).length>0){$(h).remove()}var a=e.text.length*14+65,g=$(document).width()/2-a/2,b=$(document).scrollTop()+200;return $('
'+e.text+"
t){c=t}}this.$tip.add(b).width(c).eq(0).find("td").eq(3).width("100%")}else{if(b[0]){b.width("auto").find("td").eq(3).width("auto").end().end().width(document.defaultView&&document.defaultView.getComputedStyle&&parseFloat(document.defaultView.getComputedStyle(this.$tip[0],null).width)||this.$tip.width()).find("td").eq(3).width("100%")}}this.tipOuterW=this.$tip.outerWidth();this.tipOuterH=this.$tip.outerHeight();this.calcPos();if(d&&this.pos.arrow){this.$arrow[0].className="tip-arrow tip-arrow-"+this.pos.arrow;this.$arrow.css("visibility","inherit")}if(s&&this.opts.refreshAniDuration){this.asyncAnimating=true;var a=this;this.$tip.css(f).animate({left:this.pos.l,top:this.pos.t},this.opts.refreshAniDuration,function(){a.asyncAnimating=false})}else{this.$tip.css({left:this.pos.l,top:this.pos.t})}},display:function(f){var e=this.$tip.data("active");if(e&&!f||!e&&f){return}this.$tip.stop();if((this.opts.slide&&this.pos.arrow||this.opts.fade)&&(f&&this.opts.hideAniDuration||!f&&this.opts.showAniDuration)){var p={},a={};if(this.opts.slide&&this.pos.arrow){var b,o;if(this.pos.arrow=="bottom"||this.pos.arrow=="top"){b="top";o="bottom"}else{b="left";o="right"}var c=parseInt(this.$tip.css(b));p[b]=c+(f?0:(this.pos.arrow==o?-this.opts.slideOffset:this.opts.slideOffset));a[b]=c+(f?(this.pos.arrow==o?this.opts.slideOffset:-this.opts.slideOffset):0)+"px"}if(this.opts.fade){p.opacity=f?this.$tip.css("opacity"):0;a.opacity=f?0:this.opacity}this.$tip.css(p).animate(a,this.opts[f?"hideAniDuration":"showAniDuration"])}f?this.$tip.queue(j.proxy(this.reset,this)):this.$tip.css("visibility","inherit");if(e){var d=this.$elm.data("title.poshytip");if(d!==null){this.$elm.attr("title",d)}}this.$tip.data("active",!e)},disable:function(){this.reset();this.disabled=true},enable:function(){this.disabled=false},destroy:function(){this.reset();this.$tip.remove();delete this.$tip;this.content=null;this.$elm.unbind(".poshytip").removeData("title.poshytip").removeData("poshytip");h.splice(j.inArray(this,h),1)},clearTimeouts:function(){if(this.showTimeout){clearTimeout(this.showTimeout);this.showTimeout=0}if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}},calcPos:function(){var d={l:0,t:0,arrow:""},u=j(window),r={l:u.scrollLeft(),t:u.scrollTop(),w:u.width(),h:u.height()},b,s,e,t,a,v;if(this.opts.alignTo=="cursor"){b=s=e=this.eventX;t=a=v=this.eventY}else{var c=this.$elm.offset(),f={l:c.left,t:c.top,w:this.$elm.outerWidth(),h:this.$elm.outerHeight()};b=f.l+(this.opts.alignX!="inner-right"?0:f.w);s=b+Math.floor(f.w/2);e=b+(this.opts.alignX!="inner-left"?f.w:0);t=f.t+(this.opts.alignY!="inner-bottom"?0:f.h);a=t+Math.floor(f.h/2);v=t+(this.opts.alignY!="inner-top"?f.h:0)}switch(this.opts.alignX){case"right":case"inner-left":d.l=e+this.opts.offsetX;if(this.opts.keepInViewport&&d.l+this.tipOuterW>r.l+r.w){d.l=r.l+r.w-this.tipOuterW}if(this.opts.alignX=="right"||this.opts.alignY=="center"){d.arrow="left"}break;case"center":d.l=s-Math.floor(this.tipOuterW/2);if(this.opts.keepInViewport){if(d.l+this.tipOuterW>r.l+r.w){d.l=r.l+r.w-this.tipOuterW}else{if(d.lr.t+r.h){d.t=t-this.tipOuterH-this.opts.offsetY;if(d.arrow=="top"){d.arrow="bottom"}}break;case"center":d.t=a-Math.floor(this.tipOuterH/2);if(this.opts.keepInViewport){if(d.t+this.tipOuterH>r.t+r.h){d.t=r.t+r.h-this.tipOuterH}else{if(d.t ',"div.",c.className,"{visibility:hidden;position:absolute;top:0;left:0;}","div.",c.className," table.tip-table, div.",c.className," table.tip-table td{margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;vertical-align:middle;}","div.",c.className," td.tip-bg-image span{display:block;font:1px/1px sans-serif;height:",c.bgImageFrameSize,"px;width:",c.bgImageFrameSize,"px;overflow:hidden;}","div.",c.className," td.tip-right{background-position:100% 0;}","div.",c.className," td.tip-bottom{background-position:100% 100%;}","div.",c.className," td.tip-left{background-position:0 100%;}","div.",c.className," div.tip-inner{background-position:-",c.bgImageFrameSize,"px -",c.bgImageFrameSize,"px;}","div.",c.className," div.tip-arrow{visibility:hidden;position:absolute;overflow:hidden;font:1px/1px sans-serif;}",""].join("")).appendTo("head")}if(c.liveEvents&&c.showOn!="none"){var d,b=j.extend({},c,{liveEvents:false});switch(c.showOn){case"hover":d=function(){var n=j(this);if(!n.data("poshytip")){n.poshytip(b).poshytip("mouseenter")}};this.live?this.live("mouseenter.poshytip",d):j(document).delegate(this.selector,"mouseenter.poshytip",d);break;case"focus":d=function(){var n=j(this);if(!n.data("poshytip")){n.poshytip(b).poshytip("showDelayed")}};this.live?this.live("focus.poshytip",d):j(document).delegate(this.selector,"focus.poshytip",d);break}return this}return this.each(function(){new j.Poshytip(this,c)})};j.fn.poshytip.defaults={content:"[title]",className:"tip-yellow",bgImageFrameSize:10,showTimeout:500,hideTimeout:100,timeOnScreen:0,showOn:"hover",liveEvents:false,alignTo:"cursor",alignX:"right",alignY:"top",offsetX:-22,offsetY:18,keepInViewport:true,allowTipHover:true,followCursor:false,fade:true,slide:true,slideOffset:8,showAniDuration:300,hideAniDuration:300,refreshAniDuration:200}})(jQuery); /* layer-v2.0 */ ;!function(a,b){"use strict";var c,d,e={getPath:function(){var a=document.scripts,b=a[a.length-1],c=b.src;if(!b.getAttribute("merge"))return c.substring(0,c.lastIndexOf("/")+1)}(),enter:function(a){13===a.keyCode&&a.preventDefault()},config:{},end:{},btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"]},f={v:"2.0",ie6:!!a.ActiveXObject&&!a.XMLHttpRequest,index:0,path:e.getPath,config:function(a,b){var d=0;return a=a||{},f.cache=e.config=c.extend(e.config,a),f.path=e.config.path||f.path,"string"==typeof a.extend&&(a.extend=[a.extend]),f.use("skin/layer.css",a.extend&&a.extend.length>0?function g(){var c=a.extend;f.use(c[c[d]?d:d-1],d '+(i?f.title[0]:f.title)+"":"";return f.zIndex=g,b([f.shade?'':"",' '+(a&&2!=f.type?"":k)+'"],k),c},g.pt.creat=function(){var a=this,b=a.config,g=a.index,i=b.content,j="object"==typeof i;switch("string"==typeof b.area&&(b.area="auto"===b.area?["",""]:[b.area,""]),b.type){case 0:b.btn="btn"in b?b.btn:e.btn[0],f.closeAll("dialog");break;case 2:var i=b.content=j?b.content:[b.content||"http://sentsin.com?from=layer","auto"];b.content='';break;case 3:b.title=!1,b.closeBtn=!1,-1===b.icon&&0===b.icon,f.closeAll("loading");break;case 4:j||(b.content=[b.content,"body"]),b.follow=b.content[1],b.content=b.content[0]+'',b.title=!1,b.shade=!1,b.fix=!1,b.tips="object"==typeof b.tips?b.tips:[b.tips,!0],b.tipsMore||f.closeAll("tips")}a.vessel(j,function(d,e){c("body").append(d[0]),j?function(){2==b.type||4==b.type?function(){c("body").append(d[1])}():function(){i.parents("."+h[0])[0]||(i.show().addClass("layui-layer-wrap").wrap(d[1]),c("#"+h[0]+g).find("."+h[5]).before(e))}()}():c("body").append(d[1]),a.layero=c("#"+h[0]+g),b.scrollbar||h.html.css("overflow","hidden").attr("layer-full",g)}).auto(g),2==b.type&&f.ie6&&a.layero.find("iframe").attr("src",i[0]),c(document).off("keydown",e.enter).on("keydown",e.enter),4==b.type?a.tips():a.offset(),b.fix&&d.on("resize",function(){a.offset(),(/^\d+%$/.test(b.area[0])||/^\d+%$/.test(b.area[1]))&&a.auto(g),4==b.type&&a.tips()}),b.time<=0||setTimeout(function(){f.close(a.index)},b.time),a.move().callback()},g.pt.auto=function(a){function b(a){a=g.find(a),a.height(i[1]-j-k-2*(0|parseFloat(a.css("padding"))))}var e=this,f=e.config,g=c("#"+h[0]+a);""===f.area[0]&&f.maxWidth>0&&(/MSIE 7/.test(navigator.userAgent)&&f.btn&&g.width(g.innerWidth()),g.outerWidth()>f.maxWidth&&g.width(f.maxWidth));var i=[g.innerWidth(),g.innerHeight()],j=g.find(h[1]).outerHeight()||0,k=g.find("."+h[6]).outerHeight()||0;switch(f.type){case 2:b("iframe");break;default:""===f.area[1]?f.fix&&i[1]>=d.height()&&(i[1]=d.height(),b("."+h[5])):b("."+h[5])}return e},g.pt.offset=function(){var a=this,b=a.config,c=a.layero,e=[c.outerWidth(),c.outerHeight()],f="object"==typeof b.offset;a.offsetTop=(d.height()-e[1])/2,a.offsetLeft=(d.width()-e[0])/2,f?(a.offsetTop=b.offset[0],a.offsetLeft=b.offset[1]||a.offsetLeft):"auto"!==b.offset&&(a.offsetTop=b.offset,"rb"===b.offset&&(a.offsetTop=d.height()-e[1],a.offsetLeft=d.width()-e[0])),b.fix||(a.offsetTop=/%$/.test(a.offsetTop)?d.height()*parseFloat(a.offsetTop)/100:parseFloat(a.offsetTop),a.offsetLeft=/%$/.test(a.offsetLeft)?d.width()*parseFloat(a.offsetLeft)/100:parseFloat(a.offsetLeft),a.offsetTop+=d.scrollTop(),a.offsetLeft+=d.scrollLeft()),c.css({top:a.offsetTop,left:a.offsetLeft})},g.pt.tips=function(){var a=this,b=a.config,e=a.layero,f=[e.outerWidth(),e.outerHeight()],g=c(b.follow);g[0]||(g=c("body"));var i={width:g.outerWidth(),height:g.outerHeight(),top:g.offset().top,left:g.offset().left},j=e.find(".layui-layer-TipsG"),k=b.tips[0];b.tips[1]||j.remove(),i.autoLeft=function(){i.left+f[0]-d.width()>0?(i.tipLeft=i.left+i.width-f[0],j.css({right:12,left:"auto"})):i.tipLeft=i.left},i.where=[function(){i.autoLeft(),i.tipTop=i.top-f[1]-10,j.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",b.tips[1])},function(){i.tipLeft=i.left+i.width+10,i.tipTop=i.top,j.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",b.tips[1])},function(){i.autoLeft(),i.tipTop=i.top+i.height+10,j.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",b.tips[1])},function(){i.tipLeft=i.left-f[0]-10,i.tipTop=i.top,j.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",b.tips[1])}],i.where[k-1](),1===k?i.top-(d.scrollTop()+f[1]+16)<0&&i.where[2]():2===k?d.width()-(i.left+i.width+f[0]+16)>0||i.where[3]():3===k?i.top-d.scrollTop()+i.height+f[1]+16-d.height()>0&&i.where[0]():4===k&&f[0]+16-i.left>0&&i.where[1](),e.find("."+h[5]).css({"background-color":b.tips[1],"padding-right":b.closeBtn?"30px":""}),e.css({left:i.tipLeft,top:i.tipTop})},g.pt.move=function(){var a=this,b=a.config,e={setY:0,moveLayer:function(){var a=e.layero,b=parseInt(a.css("margin-left")),c=parseInt(e.move.css("left"));0===b||(c-=b),"fixed"!==a.css("position")&&(c-=a.parent().offset().left,e.setY=0),a.css({left:c,top:parseInt(e.move.css("top"))-e.setY})}},f=a.layero.find(b.move);return b.move&&f.attr("move","ok"),f.css({cursor:b.move?"move":"auto"}),c(b.move).on("mousedown",function(a){if(a.preventDefault(),"ok"===c(this).attr("move")){e.ismove=!0,e.layero=c(this).parents("."+h[0]);var f=e.layero.offset().left,g=e.layero.offset().top,i=e.layero.outerWidth()-6,j=e.layero.outerHeight()-6;c("#layui-layer-moves")[0]||c("body").append(''),e.move=c("#layui-layer-moves"),b.moveType&&e.move.css({visibility:"hidden"}),e.moveX=a.pageX-e.move.position().left,e.moveY=a.pageY-e.move.position().top,"fixed"!==e.layero.css("position")||(e.setY=d.scrollTop())}}),c(document).mousemove(function(a){if(e.ismove){var c=a.pageX-e.moveX,f=a.pageY-e.moveY;if(a.preventDefault(),!b.moveOut){e.setY=d.scrollTop();var g=d.width()-e.move.outerWidth(),h=e.setY;0>c&&(c=0),c>g&&(c=g),h>f&&(f=h),f>d.height()-e.move.outerHeight()+e.setY&&(f=d.height()-e.move.outerHeight()+e.setY)}e.move.css({left:c,top:f}),b.moveType&&e.moveLayer(),c=f=g=h=null}}).mouseup(function(){try{e.ismove&&(e.moveLayer(),e.move.remove(),b.moveEnd&&b.moveEnd()),e.ismove=!1}catch(a){e.ismove=!1}}),a},g.pt.callback=function(){function a(){var a=g.cancel&&g.cancel(b.index);a===!1||f.close(b.index)}var b=this,d=b.layero,g=b.config;b.openLayer(),g.success&&(2==g.type?d.find("iframe")[0].onload=function(){this.className="",g.success(d,b.index)}:g.success(d,b.index)),f.ie6&&b.IE6(d),d.find("."+h[6]).children("a").on("click",function(){var e=c(this).index();g["btn"+(e+1)]&&g["btn"+(e+1)](b.index,d),0===e?g.yes?g.yes(b.index,d):f.close(b.index):1===e?a():g["btn"+(e+1)]||f.close(b.index)}),d.find("."+h[7]).on("click",a),g.shadeClose&&c("#layui-layer-shade"+b.index).on("click",function(){f.close(b.index)}),d.find(".layui-layer-min").on("click",function(){f.min(b.index,g),g.min&&g.min(d)}),d.find(".layui-layer-max").on("click",function(){c(this).hasClass("layui-layer-maxmin")?(f.restore(b.index),g.restore&&g.restore(d)):(f.full(b.index,g),g.full&&g.full(d))}),g.end&&(e.end[b.index]=g.end)},e.reselect=function(){c.each(c("select"),function(a,b){var d=c(this);d.parents("."+h[0])[0]||1==d.attr("layer")&&c("."+h[0]).length<1&&d.removeAttr("layer").show(),d=null})},g.pt.IE6=function(a){function b(){a.css({top:f+(e.config.fix?d.scrollTop():0)})}var e=this,f=a.offset().top;b(),d.scroll(b),c("select").each(function(a,b){var d=c(this);d.parents("."+h[0])[0]||"none"===d.css("display")||d.attr({layer:"1"}).hide(),d=null})},g.pt.openLayer=function(){var a=this;f.zIndex=a.config.zIndex,f.setTop=function(a){var b=function(){f.zIndex++,a.css("z-index",f.zIndex+1)};return f.zIndex=parseInt(a[0].style.zIndex),a.on("mousedown",b),f.zIndex}},e.record=function(a){var b=[a.outerWidth(),a.outerHeight(),a.position().top,a.position().left+parseFloat(a.css("margin-left"))];a.find(".layui-layer-max").addClass("layui-layer-maxmin"),a.attr({area:b})},e.rescollbar=function(a){h.html.attr("layer-full")==a&&(h.html[0].style.removeProperty?h.html[0].style.removeProperty("overflow"):h.html[0].style.removeAttribute("overflow"),h.html.removeAttr("layer-full"))},f.getChildFrame=function(a,b){return b=b||c("."+h[4]).attr("times"),c("#"+h[0]+b).find("iframe").contents().find(a)},f.getFrameIndex=function(a){return c("#"+a).parents("."+h[4]).attr("times")},f.iframeAuto=function(a){if(a){var b=f.getChildFrame("body",a).outerHeight(),d=c("#"+h[0]+a),e=d.find(h[1]).outerHeight()||0,g=d.find("."+h[6]).outerHeight()||0;d.css({height:b+e+g}),d.find("iframe").css({height:b})}},f.iframeSrc=function(a,b){c("#"+h[0]+a).find("iframe").attr("src",b)},f.style=function(a,b){var d=c("#"+h[0]+a),f=d.attr("type"),g=d.find(h[1]).outerHeight()||0,i=d.find("."+h[6]).outerHeight()||0;(f===e.type[1]||f===e.type[2])&&(d.css(b),f===e.type[2]&&d.find("iframe").css({height:parseFloat(b.height)-g-i}))},f.min=function(a,b){var d=c("#"+h[0]+a),g=d.find(h[1]).outerHeight()||0;e.record(d),f.style(a,{width:180,height:g,overflow:"hidden"}),d.find(".layui-layer-min").hide(),"page"===d.attr("type")&&d.find(h[4]).hide(),e.rescollbar(a)},f.restore=function(a){var b=c("#"+h[0]+a),d=b.attr("area").split(",");b.attr("type");f.style(a,{width:parseFloat(d[0]),height:parseFloat(d[1]),top:parseFloat(d[2]),left:parseFloat(d[3]),overflow:"visible"}),b.find(".layui-layer-max").removeClass("layui-layer-maxmin"),b.find(".layui-layer-min").show(),"page"===b.attr("type")&&b.find(h[4]).show(),e.rescollbar(a)},f.full=function(a){var b,g=c("#"+h[0]+a);e.record(g),h.html.attr("layer-full")||h.html.css("overflow","hidden").attr("layer-full",a),clearTimeout(b),b=setTimeout(function(){var b="fixed"===g.css("position");f.style(a,{top:b?0:d.scrollTop(),left:b?0:d.scrollLeft(),width:d.width(),height:d.height()}),g.find(".layui-layer-min").hide()},100)},f.title=function(a,b){var d=c("#"+h[0]+(b||f.index)).find(h[1]);d.html(a)},f.close=function(a){var b=c("#"+h[0]+a),d=b.attr("type");if(b[0]){if(d===e.type[1]&&"object"===b.attr("conType")){b.children(":not(."+h[5]+")").remove();for(var g=0;2>g;g++)b.find(".layui-layer-wrap").unwrap().hide()}else{if(d===e.type[2])try{var i=c("#"+h[4]+a)[0];i.contentWindow.document.write(""),i.contentWindow.close(),b.find("."+h[5])[0].removeChild(i)}catch(j){}b[0].innerHTML="",b.remove()}c("#layui-layer-moves, #layui-layer-shade"+a).remove(),f.ie6&&e.reselect(),e.rescollbar(a),c(document).off("keydown",e.enter),"function"==typeof e.end[a]&&e.end[a](),delete e.end[a]}},f.closeAll=function(a){c.each(c("."+h[0]),function(){var b=c(this),d=a?b.attr("type")===a:1;d&&f.close(b.attr("times")),d=null})},e.run=function(){c=jQuery,d=c(a),h.html=c("html"),f.open=function(a){var b=new g(a);return b.index}},"function"==typeof define?define(function(){return e.run(),f}):function(){a.layer=f,e.run(),f.use("skin/layer.css")}()}(window); /* ! jQuery UI Core 1.10.3 http://jqueryui.com/ */ (function(f,d){var e=0,c=/^ui-id-\d+$/;f.ui=f.ui||{};f.extend(f.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});f.fn.extend({focus:(function(g){return function(i,h){return typeof i==="number"?this.each(function(){var j=this;setTimeout(function(){f(j).focus();if(h){h.call(j)}},i)}):g.apply(this,arguments)}})(f.fn.focus),scrollParent:function(){var g;if((f.ui.ie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){g=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(f.css(this,"position"))&&(/(auto|scroll)/).test(f.css(this,"overflow")+f.css(this,"overflow-y")+f.css(this,"overflow-x"))}).eq(0)}else{g=this.parents().filter(function(){return(/(auto|scroll)/).test(f.css(this,"overflow")+f.css(this,"overflow-y")+f.css(this,"overflow-x"))}).eq(0)}return(/fixed/).test(this.css("position"))||!g.length?f(document):g},zIndex:function(h){if(h!==d){return this.css("zIndex",h)}if(this.length){var j=f(this[0]),i,g;while(j.length&&j[0]!==document){i=j.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){g=parseInt(j.css("zIndex"),10);if(!isNaN(g)&&g!==0){return g}}j=j.parent()}}return 0},uniqueId:function(){return this.each(function(){if(!this.id){this.id="ui-id-"+(++e)}})},removeUniqueId:function(){return this.each(function(){if(c.test(this.id)){f(this).removeAttr("id")}})}});function b(k,i){var g,l,j,h=k.nodeName.toLowerCase();if("area"===h){g=k.parentNode;l=g.name;if(!k.href||!l||g.nodeName.toLowerCase()!=="map"){return false}j=f("img[usemap=#"+l+"]")[0];return !!j&&a(j)}return(/input|select|textarea|button|object/.test(h)?!k.disabled:"a"===h?k.href||i:i)&&a(k)}function a(g){return f.expr.filters.visible(g)&&!f(g).parents().addBack().filter(function(){return f.css(this,"visibility")==="hidden"}).length}f.extend(f.expr[":"],{data:f.expr.createPseudo?f.expr.createPseudo(function(g){return function(h){return !!f.data(h,g)}}):function(h,g,i){return !!f.data(h,i[3])},focusable:function(g){return b(g,!isNaN(f.attr(g,"tabindex")))},tabbable:function(h){var i=f.attr(h,"tabindex"),g=isNaN(i);return(g||i>=0)&&b(h,!g)}});if(!f("").outerWidth(1).jquery){f.each(["Width","Height"],function(k,i){var j=i==="Width"?["Left","Right"]:["Top","Bottom"],l=i.toLowerCase(),h={innerWidth:f.fn.innerWidth,innerHeight:f.fn.innerHeight,outerWidth:f.fn.outerWidth,outerHeight:f.fn.outerHeight};function g(p,o,n,t){f.each(j,function(){o-=parseFloat(f.css(p,"padding"+this))||0;if(n){o-=parseFloat(f.css(p,"border"+this+"Width"))||0}if(t){o-=parseFloat(f.css(p,"margin"+this))||0}});return o}f.fn["inner"+i]=function(n){if(n===d){return h["inner"+i].call(this)}return this.each(function(){f(this).css(l,g(this,n)+"px")})};f.fn["outer"+i]=function(n,p){if(typeof n!=="number"){return h["outer"+i].call(this,n)}return this.each(function(){f(this).css(l,g(this,n,true,p)+"px")})}})}if(!f.fn.addBack){f.fn.addBack=function(g){return this.add(g==null?this.prevObject:this.prevObject.filter(g))}}if(f("").data("a-b","a").removeData("a-b").data("a-b")){f.fn.removeData=(function(g){return function(h){if(arguments.length){return g.call(this,f.camelCase(h))}else{return g.call(this)}}})(f.fn.removeData)}f.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());f.support.selectstart="onselectstart" in document.createElement("div");f.fn.extend({disableSelection:function(){return this.bind((f.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(g){g.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});f.extend(f.ui,{plugin:{add:function(j,k,h){var i,g=f.ui[j].prototype;for(i in h){g.plugins[i]=g.plugins[i]||[];g.plugins[i].push([k,h[i]])}},call:function(i,k,j){var g,h=i.plugins[k];if(!h||!i.element[0].parentNode||i.element[0].parentNode.nodeType===11){return}for(g=0;g'+(0==f.type&&-1!==f.icon?'':"")+(1==f.type&&a?"":f.content||"")+''+function(){var a=j?'':"";return f.closeBtn&&(a+=''),a}()+""+(f.btn?function(){var a="";"string"==typeof f.btn&&(f.btn=[f.btn]);for(var b=0,c=f.btn.length;c>b;b++)a+=''+f.btn[b]+"";return''+a+""}():"")+"0){return true}h[i]=1;g=(h[i]>0);h[i]=0;return g}})})(jQuery);(function(e,c){var d=0,b=Array.prototype.slice,a=e.cleanData;e.cleanData=function(h){for(var i=0,f;(f=h[i])!=null;i++){try{e(f).triggerHandler("remove")}catch(g){}}a(h)};e.widget=function(f,g,n){var k,l,i,m,h={},j=f.split(".")[0];f=f.split(".")[1];k=j+"-"+f;if(!n){n=g;g=e.Widget}e.expr[":"][k.toLowerCase()]=function(o){return !!e.data(o,k)};e[j]=e[j]||{};l=e[j][f];i=e[j][f]=function(o,p){if(!this._createWidget){return new i(o,p)}if(arguments.length){this._createWidget(o,p)}};e.extend(i,l,{version:n.version,_proto:e.extend({},n),_childConstructors:[]});m=new g();m.options=e.widget.extend({},m.options);e.each(n,function(p,o){if(!e.isFunction(o)){h[p]=o;return}h[p]=(function(){var r=function(){return g.prototype[p].apply(this,arguments)},q=function(s){return g.prototype[p].apply(this,s)};return function(){var u=this._super,s=this._superApply,t;this._super=r;this._superApply=q;t=o.apply(this,arguments);this._super=u;this._superApply=s;return t}})()});i.prototype=e.widget.extend(m,{widgetEventPrefix:l?m.widgetEventPrefix:f},h,{constructor:i,namespace:j,widgetName:f,widgetFullName:k});if(l){e.each(l._childConstructors,function(p,q){var o=q.prototype;e.widget(o.namespace+"."+o.widgetName,i,q._proto)});delete l._childConstructors}else{g._childConstructors.push(i)}e.widget.bridge(f,i)};e.widget.extend=function(h){var i=b.call(arguments,1),f=0,g=i.length,j,k;for(;f 鈥? url, msg); */ String.format = function(str) { var args = arguments, re = new RegExp("%([1-" + args.length + "])", "g"); return String(str).replace(re, function($1, $2) { return args[$2]; }); }; /** 鑾峰彇闅忔満棰滆壊 */ function getRandomColor() { return '#' + ('00000' + (Math.random() * 0x1000000 << 0).toString(16)) .substr(-6); } /** * 鐢熸垚瀵屾枃鏈紪杈戝櫒 * * @param id * @param width * @param height * @return */ function getCkEditor(id, width, height) { var $portaltoolsPortletId=getRootWin().$("#portaltoolsPortletId").val(); var $pageId=getRootWin().$("#eprotalCurrentPageId").val(); var uploadUrl="/eportal/ui?moduleId="+$portaltoolsPortletId+"&pageId="+$pageId+"&struts.portlet.action=/portlet/uploadFile.action&isCkEditor=true"; var ckeditor = CKEDITOR.replace(id, { width : width, height : height, autoUpdateElement : true, skin : 'extGray', enterMode : CKEDITOR.ENTER_BR, filebrowserUploadUrl : uploadUrl+"&uploadType=attach", filebrowserImageUploadUrl : uploadUrl+"&uploadType=image", filebrowserFlashUploadUrl : uploadUrl+"&uploadType=video", resize_enabled : false, ifCheckContent:true, extraPlugins:'iframedialog', toolbar : [ { name : 'document', items : [ 'Source', '-', 'DocProps', 'Print', '-' ] }, { name : 'clipboard', items : [ 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo', '-' ] }, { name : 'editing', items : [ 'Find', 'Replace', '-', 'SelectAll' ] }, { name : 'insert', items : [ 'Image', 'Flash', 'Table', 'HorizontalRule', '-' ] }, // '/', { name : 'basicstyles', items : [ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'RemoveFormat' ] }, { name : 'paragraph', items : [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-' ] }, { name : 'links', items : [ 'Link', 'Unlink', '-' ] }, // 'textindent','textoutdent','textIndentAll','delAllFirstSpaces','delEmptyP','changetext' // '/', { name : 'styles', items : [ 'Font', 'FontSize', '-' ] }, { name : 'colors', items : [ 'TextColor', 'BGColor', '-' ] }, { name : 'tools', items : [ 'ShowBlocks' ] } ] }); return ckeditor; } function getMyCkEditor(id, array, hasTabBar, readOnly,ifCheckContent,isSourceMode) { if (readOnly != null && typeof (readOnly) != 'undefined') { readOnly = readOnly; } else { readOnly = false; } if (ifCheckContent != null && typeof (ifCheckContent) != 'undefined') { ifCheckContent = ifCheckContent; } else { ifCheckContent = false; } var $portaltoolsPortletId=getRootWin().$("#portaltoolsPortletId").val(); var $pageId=getRootWin().$("#eprotalCurrentPageId").val(); var uploadUrl="/eportal/ui?moduleId="+$portaltoolsPortletId+"&pageId="+$pageId+"&struts.portlet.action=/portlet/uploadFile.action&isCkEditor=true"; var isOnlyUseCkeditorSourceMode=$("#isOnlyUseCkeditorSourceMode").val(); var myToolBar=null; var startupMode="wysiwyg"; if("yes"==isOnlyUseCkeditorSourceMode){ myToolBar=[ { name: 'document', items : [ 'DocProps','Print','-'] }, { name: 'clipboard', items : [ 'PasteText','PasteFromWord','uploadWordImg','-','Undo','Redo','-' ] }, // { name: 'clipboard', items : [ // 'PasteText','PasteFromWord','-','Undo','Redo','-' ] }, { name: 'editing', items : [ 'Find','Replace','-','SelectAll'] }, { name: 'insert', items : ['imageUpload','Flash','Table','HorizontalRule','-'] }, // { name: 'insert', items : [ // 'Image','Flash','Table','HorizontalRule','-'] }, // '/', { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','-','RemoveFormat'] }, { name: 'paragraph', items : [ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-'] }, { name: 'links', items : [ 'Link','Unlink','-'] }, // 'textindent','textoutdent','textIndentAll','delAllFirstSpaces','delEmptyP','changetext' // '/', { name: 'styles', items : ['Font','FontSize','-'] }, { name: 'colors', items : [ 'TextColor','BGColor','-'] }, { name: 'tools', items : [ 'ShowBlocks'] } ]; startupMode="source"; }else{ myToolBar=[ { name: 'document', items : ['Source','-','DocProps','Print','-'] }, { name: 'clipboard', items : [ 'PasteText','PasteFromWord','uploadWordImg','-','Undo','Redo','-' ] }, // { name: 'clipboard', items : [ // 'PasteText','PasteFromWord','-','Undo','Redo','-' ] }, { name: 'editing', items : [ 'Find','Replace','-','SelectAll'] }, { name: 'insert', items : ['imageUpload','Flash','Table','HorizontalRule','-'] }, // { name: 'insert', items : [ // 'Image','Flash','Table','HorizontalRule','-'] }, // '/', { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','-','RemoveFormat'] }, { name: 'paragraph', items : [ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-'] }, { name: 'links', items : [ 'Link','Unlink','-'] }, // 'textindent','textoutdent','textIndentAll','delAllFirstSpaces','delEmptyP','changetext' // '/', { name: 'styles', items : ['Font','FontSize','-'] }, { name: 'colors', items : [ 'TextColor','BGColor','-'] }, { name: 'tools', items : [ 'ShowBlocks'] } ]; // 濡傛灉鏄痟tml缂栬緫椤甸潰闇€瑕佹牴鎹郴缁熷弬鏁癷sShowSource鏉ユ帶鍒舵簮鐮佹寜閽殑鏄剧ず var isShowSourceButton=document.getElementById("isShowSourceButton"); if (typeof(isShowSourceButton)!= 'undefined') { try { isShowSourceButton = document.getElementById("isShowSourceButton").value; } catch(e) { isShowSourceButton = "true"; } } else { isShowSourceButton = "true"; } if(isShowSourceButton!="true"){ myToolBar=[ { name: 'document', items : ['DocProps','Print','-'] }, { name: 'clipboard', items : [ 'PasteText','PasteFromWord','uploadWordImg','-','Undo','Redo','-' ] }, // { name: 'clipboard', items : [ // 'PasteText','PasteFromWord','-','Undo','Redo','-' ] // }, { name: 'editing', items : [ 'Find','Replace','-','SelectAll'] }, { name: 'insert', items : ['imageUpload','Flash','Table','HorizontalRule','-'] }, // { name: 'insert', items : [ // 'Image','Flash','Table','HorizontalRule','-'] }, // '/', { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','-','RemoveFormat'] }, { name: 'paragraph', items : [ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-'] }, { name: 'links', items : [ 'Link','Unlink','-'] }, // 'textindent','textoutdent','textIndentAll','delAllFirstSpaces','delEmptyP','changetext' // '/', { name: 'styles', items : ['Font','FontSize','-'] }, { name: 'colors', items : [ 'TextColor','BGColor','-'] }, { name: 'tools', items : [ 'ShowBlocks'] } ]; } } var editor = new myEditor(document.getElementById(id), { toolbar:myToolBar, data : array, hasTabBar : hasTabBar, readOnly : readOnly, hasFormatBar:false, ifCheckContent : ifCheckContent, startupMode :startupMode, enterMode : CKEDITOR.ENTER_BR, filebrowserImageUploadSuffix:["gif","jpg","jpeg","bmp","png","GIF","JPG","JPEG","BMP","PNG"], filebrowserUploadUrl : uploadUrl+"&uploadType=attach", filebrowserFlashUploadUrl : uploadUrl+"&uploadType=video", filebrowserImageUploadUrl : uploadUrl+"&uploadType=image", ImgUploadUrl:uploadUrl+"&imageUpload=true&uploadType=image", filebrowserUploadRename:true }); return editor; } /** * @param element * 瑙﹀彂鐨勫厓绱 * @param url * 鏌ヨ鍦板潃 * @return */ function queryArticleByCondition(element, url) { var $form = $(element).closest("form"); var params = ""; if (typeof ($form[0]) != "undefined") { $form[0].action = url; $form[0].submit(); } else { $forms = $(element).closest(".portlet").find("form"); if (typeof ($forms[0]) != "undefined") { $forms[0].action = url; $forms[0].submit(); } else { jumpToUrl(url); } } } function jumpToUrl(url) { getRootWin().location.href = url; } /** * 鍓嶅彴绯荤粺閫€鍑 * * @param url * @return */ function logoutCms() { var $epsPortletId=$("#epsPortletId").val(); var $pageId=$("#eprotalCurrentPageId").val(); var url="/eportal/ui?moduleId="+$epsPortletId+"&pageId="+$pageId+"&struts.portlet.action=/security/frontLogout.action"; $.ajax( { type : "post", url : url, dataType : "text", success : function(msg) { window.location.reload(); } }); } /** js鏆傚仠鍑芥暟 */ function Pause(obj, iMinSecond) { if (window.eventList == null) window.eventList = new Array(); var ind = -1; for ( var i = 0; i < window.eventList.length; i++) { if (window.eventList[i] == null) { window.eventList[i] = obj; ind = i; break; } } if (ind == -1) { ind = window.eventList.length; window.eventList[ind] = obj; } setTimeout("GoOn(" + ind + ")", iMinSecond); } // js缁х画鍑芥暟 function GoOn(ind) { var obj = window.eventList[ind]; window.eventList[ind] = null; if (obj.NextStep) obj.NextStep(); else obj(); } /** * 鎶曠エ鍑芥暟 * * * @param key:鏂囩珷key * @param isMany:-1浠h〃涓嶉檺鍒舵姇绁ㄦ鏁?涓虹┖鏃朵唬琛ㄦ瘡涓細鍛樺涓€绡囨枃绔犲彧鍏佽鎶曚竴娆★紝>0鏃朵唬琛ㄥ彲浠ユ姇澶氬皯娆 * @return */ function articleVote(key,isMany){ if(key.match(/^\s*$/)){ $.dialog.alert('娌℃湁鑾峰彇鍒颁綔鍝乲ey'); return; } var memeber = $('#currentLoginMemberId').val(); if(memeber.match(/^\s*$/)){// 鏈櫥褰 var bt = window.confirm('鐧诲綍鍚庢墠鑳芥姇绁紝璇峰厛鐧诲綍'); if(bt==true){ var $eportalappPortletId=$("#eportalappPortletId").val(); var $pageId=$("#eprotalCurrentPageId").val(); var memberLoginUrl="/eportal/ui?moduleId="+$eportalappPortletId+"&pageId="+$pageId+"&struts.portlet.action=/app/member!toLogin.action"; openDialog('memberLoginWin', '浼氬憳鐧诲綍', memberLoginUrl, 320, 160); } return; }else{// 宸茬粡鐧诲綍 var $epsPortletId=$("#epsPortletId").val(); var $pageId=$("#eprotalCurrentPageId").val(); var voteUrl="/eportal/ui?moduleId="+$epsPortletId+"&pageId="+$pageId+"&struts.portlet.action=/portlet/article!vote.action"; var url = voteUrl+'&key='+key; if(typeof(isMany)!='undefined'&&!isMany.match(/^\s*$/)){ url = voteUrl+'&key='+key+'&isMany='+isMany; } if(url.match(/^\s*$/)){ $.dialog.alert('娌℃湁璁剧疆鎶曠エ鎺ュ彛(head.vm)'); return; } $.ajax( { type : "post", url : url, dataType : "text", async : false, success : function(response) { var result=eval("("+response+")"); if(result.success==true){ showTipsDialog('鎭枩鎮紝鎶曠エ鎴愬姛锛?, 'okay'); }else{ $.dialog.alert(result.msg); } }, error : function(response) { result=eval("("+response+")"); $.dialog.alert(result.msg); } }); } } /** 鍦ㄥ墠鍙板垹闄ゆ枃绔 */ function deleteArticleFun(entityId,columnId){ var pageId=$("#eprotalCurrentPageId").val(); var moduleId=$("#epsPortletId").val(); var url="/eportal/ui?moduleId="+moduleId+"&pageId="+pageId+"&struts.portlet.action=/portlet/article!deleteArticle.action"; $.dialog.confirm("浣犵‘瀹氳鍒犻櫎鍚?", function() { $.ajax( { type : "post", url : url, dataType : "text", data:{"entityId":entityId,"columnId":columnId}, success : function(msg) { if(msg=="success"){ showTipsDialog('鍒犻櫎鎴愬姛锛?, 'okay'); window.location.reload(); }else{ $.dialog.alert(msg); } }, error : function(response) { $.dialog.alert("鍒犻櫎澶辫触!"+response); } }); }); } /** 鍔ㄦ€佸紩鍏s鏂囦欢 */ function includeJsFile(jsPath,callback) { var flag=false; var scriptTags=document.getElementsByTagName('script'); for(var i=0;i",options:{disabled:false,create:null},_createWidget:function(f,g){g=e(g||this.defaultElement||this)[0];this.element=e(g);this.uuid=d++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=e.widget.extend({},this.options,this._getCreateOptions(),f);this.bindings=e();this.hoverable=e();this.focusable=e();if(g!==this){e.data(g,this.widgetFullName,this);this._on(true,this.element,{remove:function(h){if(h.target===g){this.destroy()}}});this.document=e(g.style?g.ownerDocument:g.document||g);this.window=e(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(k,g){var f=k,h,j,i;if(arguments.length===0){return e.widget.extend({},this.options)}if(typeof k==="string"){f={};h=k.split(".");k=h.shift();if(h.length){j=f[k]=e.widget.extend({},this.options[k]);for(i=0;i 鍔犺浇鏁版嵁涓€傘€傘€傝绋嶅悗锛?/h1>", css : { border : '3px solid #FFFFFF', height : '40px' }, overlayCSS : { backgroundColor : '#E5ECF9' } }); } var html_doc = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); script.setAttribute('src', jsPath); html_doc.appendChild(script); if($.browser.msie){ script.onreadystatechange = function(){ if(this.readyState == 'loaded' || this.readyState == 'complete'){ if(typeof(callback)!="undefined"&&!callback.match(/^\s*$/)){ // 鍏抽棴娴姩灞 $.unblockUI(); eval(callback+"()"); } } } }else{ script.onload = function(){ if(typeof(callback)!="undefined"&&!callback.match(/^\s*$/)){ // 鍏抽棴娴姩灞 $.unblockUI(); eval(callback+"()"); } } } }else{ if(typeof(callback)!="undefined"&&!callback.match(/^\s*$/)){ eval(callback+"()"); } } return false; } /** 鍒锋柊鎵嬫満绔欑偣iframe椤甸潰 */ function refreshMobileViewIframe(){ if($("iframe[class=eps-phone-view]")[0]){ var eprotalCurrentPageId=$("#eprotalCurrentPageId").val(); $("iframe[class=eps-phone-view]").attr("src","/eportal/ui?mobilePreviewMode=true&&pageId="+eprotalCurrentPageId); } } /** 鍒涘缓cookie */ function setCookie(name, value) { var argv = setCookie.arguments; var argc = setCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; if (expires != null) { var LargeExpDate = new Date(); LargeExpDate.setTime(LargeExpDate.getTime() + (expires * 1000 * 3600 * 24)); } document.cookie = name + "=" + escape(value) + ((expires == null) ? "" : ("; expires=" + LargeExpDate .toGMTString())); } /** 鑾峰彇cookie */ function getCookie(Name) { var search = Name + "=" if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset) if (end == -1) end = document.cookie.length return unescape(document.cookie.substring(offset, end)) } else return "" } } /** 鍒ゆ柇http璇锋眰鏄惁鏉ヨ嚜PC璁惧 */ function jumpToPhoneSite(phoneUrl,homePageId){ // 骞冲彴銆佽澶囧拰鎿嶄綔绯荤粺 var system ={ win : false, mac : false, xll : false }; // 妫€娴嬪钩鍙 var p = navigator.platform; system.win = p.indexOf("Win") == 0; system.mac = p.indexOf("Mac") == 0; system.x11 = (p == "X11") || (p.indexOf("Linux") == 0); var flag=system.win||system.mac||system.xll; // 濡傛灉涓嶆槸鏉ヨ嚜鐢佃剳鍒欒浆鍚戞墜鏈哄湴鍧€ if(!flag){ var eprotalCurrentPageId=$("#eprotalCurrentPageId").val(); if(typeof(homePageId)=="undefined"||homePageId==null||homePageId==null){ window.location.href=phoneUrl; }else if(eprotalCurrentPageId==homePageId){ window.location.href=phoneUrl; } } } // 澶勭悊sns鐢ㄦ埛鐧诲綍 function toSnsUserLogin(loginType){ var $eportalappPortletId=$("#eportalappPortletId").val(); var $pageId=$("#eprotalCurrentPageId").val(); var toSnsLoginUrl="/eportal/ui?moduleId="+$eportalappPortletId+"&pageId="+$pageId+"&struts.portlet.action=/app/member-sns-login!toSnsLogin.action"; window.location.href=toSnsLoginUrl+"&loginType="+loginType; } //// 澶勭悊閿欒椤甸潰鎻愮ず //$(document).keyup(function(e){ // try{ // var eprotalCurrentArticleKey= $("input[id='eprotalCurrentArticleKey']").val(); // if(eprotalCurrentArticleKey!=null&&eprotalCurrentArticleKey!=""){ // if(e.ctrlKey && e.which == 13) { // if (window.getSelection) { // var errorDescribe = window.getSelection().toString(); // toErrorCorrectViewPopUp(errorDescribe) // } // else if (document.getSelection) { // var errorDescribe = document.getSelection(); // toErrorCorrectViewPopUp(errorDescribe) // } // else if (document.selection) { // var errorDescribe = document.selection.createRange().text; // toErrorCorrectViewPopUp(errorDescribe) // } // } // } // }catch(err){ // } //}); // 璺宠浆鑷崇籂閿欓〉闈 function toErrorCorrectViewPopUp(errorDescribe){ try{ var moduleId; var pageId = $("input[id='eprotalCurrentPageId']").val() var articleKey = $("input[id='eprotalCurrentArticleKey']").val(); var columnId = $("input[id='eprotalCurrentColumnId']").val() var url = window.location.href; url = url.replace(/&/g, "^"); var title = document.title; jQuery.ajax({ type: "POST", dataType : "text", url:"/eportal/ui?moduleId=3&struts.portlet.action=/portlet/errorCorrectFront!getModuleId.action", async: false, error: function(request) { }, success: function(data) { moduleId = data; var popUrl = "/eportal/ui?mode=popup&columnId="+columnId+"&moduleId="+moduleId +"&channelId="+pageId +"&articleKey="+articleKey+"&url="+url+"&title="+title+"&errorDescribe="+errorDescribe+"&struts.portlet.action=/portlet/errorCorrectFront!toView.action"; openDialog('toErrorCorrectView', '鏂囩珷绾犻敊绠$悊', popUrl, 800, 300) } }); }catch(err){ } } function toErrorCorrectView(){ try{ var id="";; jQuery.ajax({ type: "POST", dataType : "text", url:"/eportal/ui?moduleId=3&struts.portlet.action=/portlet/errorCorrectFront!getPageId.action&pageId="+$("#eprotalCurrentPageId").val(), async: false, error: function(request) { }, success: function(data) { id = data; } }); if(id==""){ alert("鏈壘鍒拌绔欑偣绾犻敊椤甸潰锛?); return; } var pageId = $("input[id='eprotalCurrentPageId']").val() var articleKey = $("input[id='eprotalCurrentArticleKey']").val(); var columnId = $("input[id='eprotalCurrentColumnId']").val() var aform = document.createElement('form'); var url = window.location.href; var title = document.title; aform.method='post'; aform.target='_blank'; aform.action='/eportal/ui?pageId='+id; var a=document.createElement('input'); a.type='hidden'; a.name='channelId'; a.value=pageId; aform.appendChild(a); var b=document.createElement('input'); b.type='hidden'; b.name='articleKey'; b.value=articleKey; aform.appendChild(b); var c=document.createElement('input'); c.type='hidden'; c.name='pageId'; c.value=id; aform.appendChild(c); var d=document.createElement('input'); d.type='hidden'; d.name='url'; d.value=url; aform.appendChild(d); var e=document.createElement('input'); e.type='hidden'; e.name='title'; e.value=title; aform.appendChild(e); var f=document.createElement('input'); f.type='hidden'; f.name='mode'; f.value='common'; aform.appendChild(f); var g=document.createElement('input'); g.type='hidden'; g.name='columnId'; g.value=columnId; aform.appendChild(g); document.body.appendChild(aform); aform.submit(); }catch(err){} } /** * 璁板綍澶栭摼鏂囩珷娴忚娆℃暟 * * @param articleKey * 鏂囩珷key * @return */ function recordLinkArticleHits(articleKey){ if(1==1){ if(articleKey!=null&&articleKey!="undefined"&&articleKey!="null"&&!articleKey.match(/^\s*$/)){ var moduleId = $("#epsPortletId").val(); var url = "/eportal/ui?pageId="+$("#eprotalCurrentPageId").val()+"&moduleId="+moduleId+"&articleKey="+articleKey+"&articleType=yes&struts.portlet.action=/portlet/article-scan!scanSave.action"; $.ajax({ type : "post", url : url, dataType : "text", async : false, success : function(msg) { } }); } } } /** * 璁剧疆cookie * * @param name * cookie鍚嶇О * @param value * cookie鍊 * @param expiresDays * 杩囨湡澶╂暟锛屼负绌洪粯璁ゅ崄澶 * @return */ function setPortalCookie(name, value,expiresDays) { var expDate = new Date(); if (expiresDays != null) { expDate.setTime(expDate.getTime() + (expiresDays * 1000 * 3600 * 24)); }else{ expDate.setTime(expDate.getTime() + (10 * 1000 * 3600 * 24)); } document.cookie = name + "=" + escape(value) + ("; expires=" + expDate .toGMTString()); } /** * 鏍规嵁cookie鐨勫悕绉拌幏鍙朿ookie * * @param Name * @return */ function getPortalCookie(Name) { var search = Name + "=" if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset) if (end == -1){ end = document.cookie.length; } return unescape(document.cookie.substring(offset, end)) } else{ return ""; } } return ""; } /** * 鍓嶅彴妯″潡璁剧疆椤甸潰杩斿洖璺宠浆鍑芥暟 * * @param url * @return */ function jumpToEportalPageUrl(url){ var portalLastRequestUrl=$("#portalLastRequestUrl").val(); if(typeof(portalLastRequestUrl)!="undefined"&&portalLastRequestUrl!=""){ url=portalLastRequestUrl; } window.location.href=url; } // 鑾峰彇浼氬憳淇℃伅 function getMemberLoginInfo(){ var result=""; var url="/eportal/ui?moduleId="+$("#eportalappPortletId").val()+"&pageId="+$("#eprotalCurrentPageId").val()+"&struts.portlet.action=/app/member!getLoginInfo.action&loginType=2"; $.ajax({ type : "post", url : url, async : false,// 璁剧疆涓哄悓姝 dataType:"json", success : function(msg) { result=msg; } }); return result; } /** 鑾峰彇绠$悊鍛樹俊鎭 */ function getManagerLoginInfo(){ var result=""; var url="/eportal/ui?moduleId="+$("#eportalappPortletId").val()+"&pageId="+$("#eprotalCurrentPageId").val()+"&struts.portlet.action=/app/member!getLoginInfo.action&loginType=1"; $.ajax({ type : "post", url : url, async : false,// 璁剧疆涓哄悓姝 dataType:"json", cache: true, timeout : 15000, success : function(msg) { result=msg; } }); return result; } /** 浼氬憳閫€鍑哄嚱鏁 */ function memberLogoutEasysite() { var url="/eportal/ui?moduleId="+$("#eportalappPortletId").val()+"&pageId="+$("#eprotalCurrentPageId").val()+"&struts.portlet.action=/app/member!logout.action"; $.ajax( { type : "post", url : url, dataType : "text", timeout : 15000, cache: true, success : function(msg) { msg=eval("("+msg+")"); if (msg.success) { showTipsDialog('閫€鍑烘垚鍔燂紒', 'okay'); window.location.reload(); } else { showTipsDialog('閫€鍑哄嚭閿欙紒', 'error'); } }, error : function() { showTipsDialog('閫€鍑哄嚭閿欙紒', 'error'); flag = false; } }); }