main
kgdxpr 1 year ago
parent 1ce716d988
commit 4707a84673

@ -166,8 +166,10 @@
var loginPersonInfo = getPersonLoginInfo($);
$("#personName").html(" " + loginPersonInfo.person_name);
var globalInfo = getGlobalInfo($, Base64.encode("system_name,copy_right"));
$('title').text(getGlobalInfo($, Base64.encode("title,copy_right")));
$('title').text(globalInfo.data[0].global_value);
});

@ -19,6 +19,7 @@
<link href="./tbcss/SignIn.css" rel="stylesheet" type="text/css">
<script src="./component/pear/jsencrypt.min.js"></script>
<script src="./admin/js/jquery-3.6.0.min.js"></script>
<script src="./component/pear/base64.js"></script>
<!--添加对公用函数库的引用-->
<!-- <script src="lib/common.js"></script>-->
</head>
@ -155,22 +156,23 @@
getPageInfo();
//获取页面信息
function getPageInfo() {
$.ajax({
type: "POST",
type: "GET",
dataType: "json",
url: "/baseService/global/getGlobalValueByKey",
url: "/QingLong/global/getGlobalByCodes",
data: {
"key": "title,copy_right"
"global_codes": Base64.encode("title,copy_right")
},
async: false,
success: function (result) {
if (result.success) {
$("#system_name").html(result.title);
$("#copyright").html(result.copy_right);
$('title').html(result.title);
}
// $("#system_name").html(result.title);
// $("#copyright").html(result.copy_right);
$('title').html(result.data[0].global_value);
}
});
}

Loading…
Cancel
Save