提交 922ba9b1 编写于 作者: doc_wei's avatar doc_wei

解决首次加载背景为空的问题

上级 29aa16b8
......@@ -34,19 +34,29 @@ if(isNull(localStorage.getItem("sysMainMation"))){
jsGetJsonFile("../../configRation.json", function(data){
sysMainMation = data;
localStorage.setItem("sysMainMation", JSON.stringify(sysMainMation));
initBaseParams();
});
}else{
sysMainMation = JSON.parse(unescape(localStorage.getItem("sysMainMation")));
initBaseParams();
}
var skyeyeVersion = sysMainMation.skyeyeVersion;
var skyeyeVersion;
// 文件路径
var fileBasePath = sysMainMation.fileBasePath;
var fileBasePath;
// 接口请求地址
var reqBasePath = sysMainMation.reqBasePath; // 总项目
var shopBasePath = sysMainMation.shopBasePath; // 商城项目
var reqBasePath; // 总项目
var shopBasePath; // 商城项目
var webSocketPath = sysMainMation.webSocketPath;//聊天socket-开发
var webSocketPath;//聊天socket-开发
function initBaseParams(){
skyeyeVersion = sysMainMation.skyeyeVersion;
fileBasePath = sysMainMation.fileBasePath;
reqBasePath = sysMainMation.reqBasePath;
shopBasePath = sysMainMation.shopBasePath;
webSocketPath = sysMainMation.webSocketPath;
}
// 编辑加载自定义的js文件
layui.each(customerJS, function(key, jsPath){
......
......@@ -51,10 +51,10 @@ layui.config({
// 修改版权
$(".copyright-content").html(sysMainMation.copyright);
$(".lock-body").css({'background-image': 'url("' + fileBasePath + '/images/upload/winbgpic/default.jpg")'});
$(".lock-body").css({'background-image': 'url("/images/upload/winbgpic/default.jpg")'});
$.cookie('userToken', "", {path: '/' });
matchingLanguage();
form.on('submit(login)', function (data) {
if (winui.verifyForm(data.elem)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册