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

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

上级 29aa16b8
...@@ -34,19 +34,29 @@ if(isNull(localStorage.getItem("sysMainMation"))){ ...@@ -34,19 +34,29 @@ if(isNull(localStorage.getItem("sysMainMation"))){
jsGetJsonFile("../../configRation.json", function(data){ jsGetJsonFile("../../configRation.json", function(data){
sysMainMation = data; sysMainMation = data;
localStorage.setItem("sysMainMation", JSON.stringify(sysMainMation)); localStorage.setItem("sysMainMation", JSON.stringify(sysMainMation));
initBaseParams();
}); });
}else{ }else{
sysMainMation = JSON.parse(unescape(localStorage.getItem("sysMainMation"))); 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 reqBasePath; // 总项目
var shopBasePath = sysMainMation.shopBasePath; // 商城项目 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文件 // 编辑加载自定义的js文件
layui.each(customerJS, function(key, jsPath){ layui.each(customerJS, function(key, jsPath){
......
...@@ -51,10 +51,10 @@ layui.config({ ...@@ -51,10 +51,10 @@ layui.config({
// 修改版权 // 修改版权
$(".copyright-content").html(sysMainMation.copyright); $(".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: '/' }); $.cookie('userToken', "", {path: '/' });
matchingLanguage(); matchingLanguage();
form.on('submit(login)', function (data) { form.on('submit(login)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册