|
@@ -8,6 +8,7 @@ const WarningIcon = require("./../images/icon-Warning.png")
|
|
|
const warnIcon = require("./../images/warn.png")
|
|
|
const openEye = require("./../images/open-eye.png")
|
|
|
const closeEye = require("./../images/close-eye.png")
|
|
|
+const adLogo = require("../images/adlogo.png")
|
|
|
|
|
|
const {api} = require('./api.js')
|
|
|
const {post,pageMap,delCookie,setCookie,setLocal,getCookie,focusMenuItem,getUrlArgObject} = require('./utils.js');
|
|
@@ -15,6 +16,7 @@ let userInfo={};
|
|
|
let isPlacefile = getCookie('isPlacefile')||1
|
|
|
let passwordComplexity = getCookie('passwordComplexity')
|
|
|
const hideLogo = getUrlArgObject("hideLg");
|
|
|
+const otherLogo = getUrlArgObject("adLg");
|
|
|
const modalDom = `
|
|
|
<p class="tips"><img src=${WarningIcon} /><span>为确保账号安全,请及时修改初始密码</span></p>
|
|
|
<div class="modalAction">
|
|
@@ -34,7 +36,14 @@ const psdChecker = `<div class="psd-checkbox">
|
|
|
$(function () {
|
|
|
//无logo演示隐藏logo
|
|
|
if(hideLogo){
|
|
|
- $(".copy-right,.logo img").hide();
|
|
|
+ $(".copy-right,.logo img").remove();
|
|
|
+ $(".menu-mini .logo").text("");
|
|
|
+ }
|
|
|
+ const otherLogo = getUrlArgObject("adLg");
|
|
|
+ if(otherLogo){
|
|
|
+ $(".logo img").attr("src",adLogo);
|
|
|
+ $(".menu-mini .logo").text("艾登");
|
|
|
+ $(".copy-right").remove();
|
|
|
}
|
|
|
hideDropdown();
|
|
|
getOwnDept();
|
|
@@ -497,7 +506,9 @@ $(".login-out").click(function(){
|
|
|
delCookie('accessToken')
|
|
|
setCookie('behosDateStart','')
|
|
|
setCookie('behosDateEnd','')
|
|
|
- window.location.href = hideLogo?'/login.html?hideLg=true':'login.html';
|
|
|
+ const otherLogoPm = otherLogo?'?adLg=1':'';
|
|
|
+ const hideLogoPm = hideLogo?'?hideLg=1':'';
|
|
|
+ window.location.href = 'login.html'+otherLogoPm+hideLogoPm;
|
|
|
})
|
|
|
|
|
|
//时间获取
|