天博电竞协同办公平台 V7.0SP3
合作伙伴 :站长工具 - 天博电竞_天博最新官网_天博体育网页版登录
"); if(rowList == "qrCode" || rowList == "qrCode,blank"){ $("#login_text_div").css("visibility", "hidden"); $(".qrCodeBtn").css("visibility", "show"); }else if(rowList == "productInfo" || rowList == "productInfo,blank"){ $(".qrCodeBtn").css("visibility", "hidden"); $("#login_text_div").css("visibility", "show"); }else if(rowList == "qrCode,productInfo,blank" || rowList == "qrCode,productInfo"){ $("#login_text_div").css("visibility", "show"); $(".qrCodeBtn").css("visibility", "show"); }else if(rowList == "blank"){ $("#login_text_div").css("visibility", "hidden"); $(".qrCodeBtn").css("visibility", "hidden"); } var topValue= ""; qrcodeSet(); if(rowList == "blank"){ $('body').append(""); } }); var sendSMSCodeTime = 119; function loginCallback() { return true; } function retrievePassword(){ $.ajax({ sync : true, type: "POST", url: _ctxPath+"/personalBind.do?method=isCanUse", dataType : 'text', success : function(data) { var isCanUse = jQuery.parseJSON(data); if(isCanUse=="true" || isCanUse==true){ ; }else{ var msg = "管理员未设置系统邮箱,也未启用短信插件,
不能使用密码找回功能,请联系管理员!" ; retrievePwdMsg = $.messageBox({ 'id':"retrievePwdMessageBox", 'type': 0, 'msg': "
" + msg + "
" }); } }, error : function(XMLHttpRequest, textStatus, errorThrown) { alert("失败"); } }); } function doLoginSubmit(){ if(false && "iTrus"==""){// chooseCert(); }else{ $("#submit_button").click(); } } //只有登录前门户用 function doAjaxLogin(){ var loginFlag = onLoginSubmit(); if(!loginFlag){ return; } var formObj=$("#login_form").formobj(); formObj["loginFrom"] = "loginPortal"; formObj["login.timezone"] = $("#timezone").val(); formObj["login.VerifyCode"] = $("#VerifyCode").val(); $.ajax({ sync : true, type: "POST", url: "/seeyon/main.do?method=login", data : formObj, dataType : 'text', success : function(data) { if(data.indexOf("ok")==0){ window.top.; }else{ if(data.indexOf("ok")==0){ window.top.; }else{ if(data.indexOf("0;url=")>=0){ alert("登录异常,请重试!"); reloadLoginPage(); }else{ alert(data); reloadLoginPage(); } } } }, error : function(XMLHttpRequest, textStatus, errorThrown) { alert("天博体育网页版登录和密码不正确!"); reloadLoginPage(); } }); } function reloadLoginPage(){ window.top.; } function loginButtonOnClickHandler() { var leaveTime = new Date().getTime(); //暂无重新请求session的登录前接口,简单处理一下,因session会在30分钟后失效,排除网速等因素,如果页面停留超过29分钟就刷新,将来再加上每5分钟刷新一次session的功能 if(_SecuritySeed !== "" && leaveTime - entryTime > 1000 * 60 * 29) { alert("会话已过期,请重新登录"); window.location.reload(); return; } var timeZoneId = getTimeZoneId(); $("#timezone").val(timeZoneId); var login_username = $("#login_username").val(); if ($.trim(login_username) == "") { doLoginSubmit(); } else { var smsVerifyCode = ""; if ($("#smsLoginInputDiv").length == 1) { smsVerifyCode = $.trim($("#smsVerifyCode").val()); } var isCanUseSMS = true; if (!isCanUseSMS || ($("#smsLoginInputDiv").length == 1 && smsVerifyCode != "")) { doLoginSubmit(); } else { //进行短信登录验证 new portalManager().smsLoginEnabled(login_username, { success: function(telNumber) { if (telNumber && $.trim(telNumber).length > 0) { if ($("#smsLoginInputDiv").length == 0) { var smsHtml = "
"; if ($.browser.msie && $.browser.version < 9) { smsHtml += "
"; }else{ smsHtml += "
"; } smsHtml += ""; smsHtml += "
"; smsHtml += "
获取验证码
"; smsHtml += "
"; $(".captcha").after(smsHtml); if(loginFromBol){ $("#smsVerifyCode").focus(function(){ $(this).parent().css("background-color","#FFF"); }).blur(function(){ if(_layout == "center"){ $(this).parent().css("background-color","transparent"); }else{ $(this).parent().css("background-color","rgba(255, 255, 255, 0.7)"); } }); } $("#sendSMSCodeButton").click(function() { if (sendSMSCodeTime != 119) { return; } var login_username = $("#login_username").val(); new portalManager().sendSMSLoginCode(login_username, { success: function(msg) { if (msg == "success") { $("#smsVerifyCode").val(""); var interval = setInterval(function() { sendSMSCodeTime--; if (sendSMSCodeTime == 0) { $("#sendSMSCodeButton").html("获取验证码").removeClass('smsLogin_btn_disable'); sendSMSCodeTime = 119; clearInterval(interval); } else { $("#sendSMSCodeButton").html(sendSMSCodeTime + " " + "重新获取").addClass('smsLogin_btn_disable'); } }, 1000); $("#sendSMSCodeButton").html(sendSMSCodeTime + " " + "重新获取").addClass('smsLogin_btn_disable'); } else { $("#login_error").css("background-image", "none"); $("#login_error").find("div").html(msg); $("#login_error").show(); } } }); }); $("#smsLoginInputDiv").show(); } else { doLoginSubmit(); } } else { $("#smsVerifyCode").val(""); doLoginSubmit(); } }, error: function() { doLoginSubmit(); } }); } } } function getTimeZoneId(){ //获取客户端时区 var d = new Date(); var timezoneOffset = 0 - d.getTimezoneOffset(); var gmtHours = (timezoneOffset/60).toString(); //8 -8:30 8:45 var gmtHoursArr = gmtHours.split("."); var h = gmtHoursArr[0]; if(h>=0){ h = "+"+h; } var m = "00"; if(gmtHoursArr.length>1){ m = Number("0."+gmtHoursArr[1]) * 60; } return "GMT"+h+":"+m; } var commonProgressbar = null; //开始进度条 function startProc(title) { try { var options = { title: title }; if (title == undefined) { options = {}; } if (commonProgressbar != null) { commonProgressbar.start(); } else { commonProgressbar = new MxtProgressBar(options); } } catch (e) {} } //结束进度条 function endProc() { try { if (commonProgressbar) { commonProgressbar.close(); } commonProgressbar = null; } catch (e) {} } function openAssistantSetup() { var myhost= window.location.host; var myport= window.location.port; if(myport==""){ myport= "80"; } var ucUrl= "/"+myhost+"/"+myhost+"/"+myport; var obj = null; try { obj = new ActiveXObject("SeeyonActivexInstall.SeeyonInstall"); var ele = document.getElementById("login_locale"); var locale = ele != null ? ele.value : ''; if( ele == null){ locale = navigator.browserLanguage.replace(/([a-z]{2})(-)*([A-Z|a-z]{2})*/,function($0,$1,$2,$3){ var s = $1; if( '-' == $2){ s += '_'; s += $3.toUpperCase(); } return s; }); } startProc("请稍候,正在初始化程序..."); var result = obj.Startup(_ctxServer + "/autoinstall/A8", locale + ucUrl, "@videoconf@identificationDog@U8Reg@wizard@zhixin"); endProc(); } catch (e) { getA8Top().alterWin = $.dialog({ htmlId: 'alert', title: "自动安装", url: "/seeyon/genericController.do?ViewPage=apps/autoinstall/downLoadIESet", isClear: false, width: 420, height: 200 }); } } function calSelecterHeight(){ var topValue = ""; var languageSize = $("#login_locale_dropdown_content a").length; var languageTop = languageSize*30; if(topValue =="21"){ var languageTopStr= "-"+languageTop+"px"; $("#login_locale_dropdown_content_iframe").css("top", languageTopStr).css("right", "0"); $("#login_locale_dropdown_content").css("top",languageTopStr).css("right", "0"); }else{ var select_h = $("#login_area_div").offset().top + $("#login_area_div").height() + languageTop; if (select_h >= $(window).height()) { $("#login_locale_dropdown_content_iframe").css("top", "-"+ $("#login_locale_dropdown_content").height() + "px").css("right", "0"); $("#login_locale_dropdown_content").css("top","-"+ $("#login_locale_dropdown_content").height() +"px").css("right", "0"); }else{ $("#login_locale_dropdown_content_iframe").css("top","25px").css("right", "0"); $("#login_locale_dropdown_content").css("top","25px").css("right", "0"); }; } } function checkPwdStrength(){ var login_validatePwdStrength =4; var login_password = $("#login_password").val(); if ($.trim(login_password) == "") { }else{ login_validatePwdStrength = getPwdStrongForLoginPage(login_password); $("#login_validatePwdStrength").val(login_validatePwdStrength); } return true; } //调整登录框的位置 function adjustLoginPosition(){ var window_h = $(window).height(); var login_h = $("#login_area_div").height(); var login_top = $("#login_area_div").offset().top; var login_left = $("#login_area_div").offset().left; if (_layout == "all" || _layout == "center") {//第一套和第四套布局只判断bottom和left if (login_left <= 0) { $("#login_area_div").css({ "left":"0px", "right":"inherit" }); } if (window_h - login_top < login_h) { if(loginFromBol){ $("#login_area_div").css({ "bottom":"0px", "top":"inherit" }); } } }else if(_layout=="center_big") {//第五套水平和垂直都居中 $("#login_area_div").css({ "top":"50%", "left":"50%", "margin-top": "-290px", "margin-left": "-280px" }); }else if (_layout == "t_b") {//天博电竞套布局只判断top if (login_top <= 0) { $("#login_area_div").css({ "top":"0px", "bottom":"inherit" }); } }else if (_layout == "l_r"){//第四套布局只判断left if (login_left <= 0) { $("#login_area_div").css({ "left":"0px", "right":"inherit" }); } } } function qrcodeSet(){ if($("#qrcode3").find("img").length == 0){ if(_layout == "all"){ $('body').append(""); $('body').append(""); }else if(_layout == "center_big" ){ $('body').append(""); }else if( _layout == "loginPre"){ $('body').append("" + ""); }else if(_layout == "l_r"){ $('body').append(""); $('body').append(""); }else if(_layout == "center"){ $('body').append(""); $('body').append(""); } }else{ if(_layout == "loginPre"){ $('body').append(""); } } } function loginBttomSet(){ //if(_layout == "loginPre"){ /* $('body').append(""); */ /* $('body').append(""); */ /* $('body').append(""); */ /* $('body').append(""); */ //} }