修改默认条数
This commit is contained in:
parent
730a6dc84a
commit
6dd7f53bd5
|
|
@ -1,16 +1,18 @@
|
||||||
let aqEnnable = true // 参数加密开关
|
let aqEnnable = true // 参数加密开关
|
||||||
//后端路径
|
//后端路径
|
||||||
const commonUrl = "http://36.33.26.201:19090/zhgd/";
|
// const commonUrl = "http://27.50.49.56:18080/zhgd/";
|
||||||
//前端路径
|
// const URL_IP="http://27.50.49.56:21624/zhgd-web"
|
||||||
const URL_IP="http://36.33.26.201:21624/zhgd-web"
|
//前端
|
||||||
|
const URL_IP="http://127.0.0.1:63343/ah_jjzhgd_webscreen"
|
||||||
// const commonUrl = "http://127.0.0.1:18080/zhgd/";
|
const commonUrl = "http://127.0.0.1:18080/zhgd/";
|
||||||
// //前端路径
|
// //前端路径
|
||||||
// const URL_IP="http://10.138.225.233:21624/zhgd-web"
|
let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service=";
|
||||||
/* 登录相关 */
|
/* 登录相关 */
|
||||||
const login_url = commonUrl + "auth/login"; // 登录url
|
const login_url = commonUrl + "auth/login"; // 登录url
|
||||||
const login_out = commonUrl + "auth/logout"; // 登出url
|
const login_out = commonUrl + "auth/logout"; // 登出url
|
||||||
const page_jump = commonUrl + "auth/pageJump"; // 登出url
|
const page_jump = commonUrl + "auth/pageJump"; // 登出url
|
||||||
|
|
||||||
|
|
||||||
const login_sg_page = URL_IP+"/sg_login.html" // 施工大屏登录页面
|
const login_sg_page = URL_IP+"/sg_login.html" // 施工大屏登录页面
|
||||||
const login_sc_page = URL_IP+"/sc_login.html" // 省侧大屏登录页面
|
const login_sc_page = URL_IP+"/sc_login.html" // 省侧大屏登录页面
|
||||||
const login_sg_index = URL_IP+"/pages/home/navigation.html" // 施工大屏首页
|
const login_sg_index = URL_IP+"/pages/home/navigation.html" // 施工大屏首页
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
let form, layer;
|
let form, layer;
|
||||||
layui.use(function () {
|
layui.use(function () {
|
||||||
|
let logUrl="http://27.50.49.56:21624/zhgd-web/scIndex.html";
|
||||||
|
let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service=";
|
||||||
|
window.location.href =isc_login+logUrl;
|
||||||
|
return false;
|
||||||
form = layui.form;
|
form = layui.form;
|
||||||
layer = layui.layer;
|
layer = layui.layer;
|
||||||
form.on('submit(demo-login)', function (data) {
|
form.on('submit(demo-login)', function (data) {
|
||||||
|
|
@ -17,6 +21,7 @@ layui.use(function () {
|
||||||
"loginType": loginType
|
"loginType": loginType
|
||||||
}
|
}
|
||||||
let encryptStr = encryptCBC(JSON.stringify(params));
|
let encryptStr = encryptCBC(JSON.stringify(params));
|
||||||
|
console.log(encryptStr)
|
||||||
ajaxRequest(login_url, "POST", encryptStr, true, function () {
|
ajaxRequest(login_url, "POST", encryptStr, true, function () {
|
||||||
// $('.layui-btn-fluid').empty().append('<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>登录中,请稍后...').attr("disabled", true);
|
// $('.layui-btn-fluid').empty().append('<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>登录中,请稍后...').attr("disabled", true);
|
||||||
}, function (result) {
|
}, function (result) {
|
||||||
|
|
@ -28,6 +33,7 @@ layui.use(function () {
|
||||||
const us = JSON.parse(result.data.us);
|
const us = JSON.parse(result.data.us);
|
||||||
localStorage.setItem("zhgd_type-noLogin",us.jumpType);
|
localStorage.setItem("zhgd_type-noLogin",us.jumpType);
|
||||||
sessionStorage.setItem("zhgd_type", us.jumpType);
|
sessionStorage.setItem("zhgd_type", us.jumpType);
|
||||||
|
// window.location.href = "http://localhost:9528/#/ywgllogin?ticket=5555";
|
||||||
if (us.jumpType === '2') {
|
if (us.jumpType === '2') {
|
||||||
window.location.href = "pages/home/navigation.html";
|
window.location.href = "pages/home/navigation.html";
|
||||||
} else if (us.jumpType === '1') {
|
} else if (us.jumpType === '1') {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,63 @@
|
||||||
|
let form, layer;
|
||||||
|
layui.use(function () {
|
||||||
|
let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service=";
|
||||||
|
let logUrl="http://27.50.49.56:21624/zhgd-web/sgIndex.html";
|
||||||
|
// window.location.href =isc_login+logUrl;
|
||||||
|
// return false;
|
||||||
|
form = layui.form;
|
||||||
|
layer = layui.layer;
|
||||||
|
form.on('submit(demo-login)', function (data) {
|
||||||
|
let field = data.field;
|
||||||
|
let loginType = "";
|
||||||
|
let hrefUrl = window.location.href;
|
||||||
|
if (hrefUrl && hrefUrl.indexOf("sg_login") > 0) {
|
||||||
|
loginType = "2"
|
||||||
|
} else if (hrefUrl && hrefUrl.indexOf("sc_login") > 0) {
|
||||||
|
loginType = "1"
|
||||||
|
}
|
||||||
|
const params = {
|
||||||
|
"username": field.username,
|
||||||
|
"password": field.password,
|
||||||
|
"loginType": loginType
|
||||||
|
}
|
||||||
|
let encryptStr = encryptCBC(JSON.stringify(params));
|
||||||
|
ajaxRequest(login_url, "POST", encryptStr, true, function () {
|
||||||
|
// $('.layui-btn-fluid').empty().append('<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>登录中,请稍后...').attr("disabled", true);
|
||||||
|
}, function (result) {
|
||||||
|
// $('.layui-btn-fluid').empty().append(' <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="demo-login">登 录</button>');
|
||||||
|
if (result.code === 200) {
|
||||||
|
top.layer.msg(result.msg, { icon: 1, time: 500 }, function () {
|
||||||
|
sessionStorage.setItem("zhgd_token", result.data.access_token);
|
||||||
|
sessionStorage.setItem("zhgd_us", result.data.us);
|
||||||
|
const us = JSON.parse(result.data.us);
|
||||||
|
localStorage.setItem("zhgd_type-noLogin",us.jumpType);
|
||||||
|
sessionStorage.setItem("zhgd_type", us.jumpType);
|
||||||
|
// window.location.href = "http://localhost:9528/#/ywgllogin?ticket=5555";
|
||||||
|
if (us.jumpType === '2') {
|
||||||
|
window.location.href = "pages/home/navigation.html";
|
||||||
|
} else if (us.jumpType === '1') {
|
||||||
|
window.location.href = "pages/web/index.html";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else if (result.code === 500) {
|
||||||
|
layer.msg(result.msg, { icon: 2 });
|
||||||
|
}else if (result.code === 201) {
|
||||||
|
layer.msg(result.msg, { icon: 2 });
|
||||||
|
}
|
||||||
|
}, function (xhr, status, error) {
|
||||||
|
errorFn(xhr, status, error)
|
||||||
|
$('.layui-btn-fluid').empty().append('登 录');
|
||||||
|
}, "application/json", aqEnnable);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
/* 请求错误 */
|
||||||
|
function errorFn(xhr, status, error) {
|
||||||
|
if (xhr.status === 0) {
|
||||||
|
// 网络连接失败
|
||||||
|
console.error("网络连接失败,请检查网络是否正常");
|
||||||
|
} else {
|
||||||
|
// 请求出现其他错误
|
||||||
|
console.error("ajax请求错误:" + error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -14,7 +14,7 @@ layui.use(['layer', 'element', 'table'], function () {
|
||||||
DaylightDisplacementList('');
|
DaylightDisplacementList('');
|
||||||
DaylightDisplacementApi();
|
DaylightDisplacementApi();
|
||||||
//和风天气API调用
|
//和风天气API调用
|
||||||
zephyrineWeather();
|
// zephyrineWeather();
|
||||||
//有限空间
|
//有限空间
|
||||||
LimitedSpaceApi();
|
LimitedSpaceApi();
|
||||||
//GPS安装检测
|
//GPS安装检测
|
||||||
|
|
|
||||||
|
|
@ -199,10 +199,10 @@ function setMenusData(data) {
|
||||||
} else if (index !== 0 && item.menuName !== '数据操作') {
|
} else if (index !== 0 && item.menuName !== '数据操作') {
|
||||||
html += '<li class="layout nocheck" hrefValue="' + item.url + '"><p>' + item.menuName + '</p></li>'
|
html += '<li class="layout nocheck" hrefValue="' + item.url + '"><p>' + item.menuName + '</p></li>'
|
||||||
} else if (item.menuName === '数据操作') {
|
} else if (item.menuName === '数据操作') {
|
||||||
html += '<li class="layout nocheck" onclick="goBackground()"><p>' + item.menuName + '</p></li>'
|
// html += '<li class="layout nocheck" onclick="goBackground()"><p>' + item.menuName + '</p></li>'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
html += '<li class="layout nocheck" hrefValue="../safetyHat/index.html"><p>安全帽</p></li>'
|
// html += '<li class="layout nocheck" hrefValue="../safetyHat/index.html"><p>安全帽</p></li>'
|
||||||
}
|
}
|
||||||
$('#nav-right ul').empty().append(html);
|
$('#nav-right ul').empty().append(html);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ layui.use(['layer', 'element', 'table', 'tree'], function () {
|
||||||
window.location.href = "../personnelControl/personnelControlList.html";
|
window.location.href = "../personnelControl/personnelControlList.html";
|
||||||
});
|
});
|
||||||
|
|
||||||
mapInit();
|
// mapInit();
|
||||||
|
|
||||||
//人员列表
|
//人员列表
|
||||||
PersonnelList();
|
PersonnelList();
|
||||||
|
|
|
||||||
|
|
@ -58,10 +58,11 @@ function loginout(type) {
|
||||||
sessionStorage.removeItem("zhgd_token");
|
sessionStorage.removeItem("zhgd_token");
|
||||||
sessionStorage.removeItem("zhgd_us");
|
sessionStorage.removeItem("zhgd_us");
|
||||||
sessionStorage.removeItem("zhgd_type");
|
sessionStorage.removeItem("zhgd_type");
|
||||||
|
let iscId=localStorage.getItem("iscKey");
|
||||||
if (zhgd_type === "2") {
|
if (zhgd_type === "2") {
|
||||||
top.location.href = login_sg_page;
|
window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sg_login.html';
|
||||||
} else if (zhgd_type === "1") {
|
} else if (zhgd_type === "1") {
|
||||||
top.location.href = login_sc_page;
|
window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sc_login.html';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (result.code === 500) {
|
} else if (result.code === 500) {
|
||||||
|
|
@ -87,12 +88,15 @@ function errorFn(xhr, status, error) {
|
||||||
|
|
||||||
/* 返回登录页 */
|
/* 返回登录页 */
|
||||||
function backLoginPage() {
|
function backLoginPage() {
|
||||||
|
let iscId=localStorage.getItem("iscKey");
|
||||||
if (zhgd_type === "2") {
|
if (zhgd_type === "2") {
|
||||||
top.location.href = login_sg_page;
|
window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sg_login.html';
|
||||||
|
|
||||||
} else if (zhgd_type === "1") {
|
} else if (zhgd_type === "1") {
|
||||||
top.location.href = login_sc_page;
|
window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sc_login.html';
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
top.location.href = login_sc_page;
|
window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:21624/zhgd-web/sc_login.html';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//判断字符是否为空的方法
|
//判断字符是否为空的方法
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<script src="../../plugin/layui-v2.9.7/layui/layui.js"></script>
|
<script src="../../plugin/layui-v2.9.7/layui/layui.js"></script>
|
||||||
<script src="../../api/commonRequest.js" type="text/javascript"></script>
|
<script src="../../api/commonRequest.js" type="text/javascript"></script>
|
||||||
<script src="../../js/publics/aescbc.js"></script>
|
<script src="../../js/publics/aescbc.js"></script>
|
||||||
<script type="text/javascript" src="//api.map.baidu.com/api?v=3.0&ak==s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B"></script>
|
<!-- <script type="text/javascript" src="//api.map.baidu.com/api?v=3.0&ak==s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B"></script>-->
|
||||||
<script src="../../js/operEnvironment/operEnvironment.js"></script>
|
<script src="../../js/operEnvironment/operEnvironment.js"></script>
|
||||||
<title>作业环境</title>
|
<title>作业环境</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@
|
||||||
<script src="../../plugin/layui-v2.9.7/layui/layui.js"></script>
|
<script src="../../plugin/layui-v2.9.7/layui/layui.js"></script>
|
||||||
<script src="../../api/commonRequest.js" type="text/javascript"></script>
|
<script src="../../api/commonRequest.js" type="text/javascript"></script>
|
||||||
<script src="../../js/publics/aescbc.js"></script>
|
<script src="../../js/publics/aescbc.js"></script>
|
||||||
<script src="//bj.bcebos.com/v1/mapopen/cms/bmapgldemo/custom/customgreen.js"></script>
|
<!-- <script src="//bj.bcebos.com/v1/mapopen/cms/bmapgldemo/custom/customgreen.js"></script>-->
|
||||||
|
<!-- <script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B"></script>-->
|
||||||
<!-- <script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B"></script>-->
|
<!-- <script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B"></script>-->
|
||||||
<script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B"></script>
|
|
||||||
<!-- <script src="http://api.map.baidu.com/api?v=3.0&ak=s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B" type="text/javascript"></script>-->
|
<!-- <script src="http://api.map.baidu.com/api?v=3.0&ak=s0zhKgClIXRG8hQp3HB4KtiXPWw1dP8B" type="text/javascript"></script>-->
|
||||||
<!-- <script src="https://api.map.baidu.com/library/DrawingManager/1.4/src/DrawingManager_min.js" type="text/javascript"></script>-->
|
<!-- <script src="https://api.map.baidu.com/library/DrawingManager/1.4/src/DrawingManager_min.js" type="text/javascript"></script>-->
|
||||||
<!-- <link href="https://api.map.baidu.com/library/DrawingManager/1.4/src/DrawingManager_min.css" rel="stylesheet" />-->
|
<!-- <link href="https://api.map.baidu.com/library/DrawingManager/1.4/src/DrawingManager_min.css" rel="stylesheet" />-->
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,246 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Loading Page</title>
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
#app {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
.chromeframe {
|
||||||
|
margin: 0.2em 0;
|
||||||
|
background: #ccc;
|
||||||
|
color: #000;
|
||||||
|
padding: 0.2em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
width: 150px;
|
||||||
|
height: 150px;
|
||||||
|
margin: -75px 0 0 -75px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 3px solid transparent;
|
||||||
|
border-top-color: #FFF;
|
||||||
|
-webkit-animation: spin 2s linear infinite;
|
||||||
|
-ms-animation: spin 2s linear infinite;
|
||||||
|
-moz-animation: spin 2s linear infinite;
|
||||||
|
-o-animation: spin 2s linear infinite;
|
||||||
|
animation: spin 2s linear infinite;
|
||||||
|
z-index: 1001;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader:before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 5px;
|
||||||
|
left: 5px;
|
||||||
|
right: 5px;
|
||||||
|
bottom: 5px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 3px solid transparent;
|
||||||
|
border-top-color: #FFF;
|
||||||
|
-webkit-animation: spin 3s linear infinite;
|
||||||
|
-moz-animation: spin 3s linear infinite;
|
||||||
|
-o-animation: spin 3s linear infinite;
|
||||||
|
-ms-animation: spin 3s linear infinite;
|
||||||
|
animation: spin 3s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 15px;
|
||||||
|
left: 15px;
|
||||||
|
right: 15px;
|
||||||
|
bottom: 15px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 3px solid transparent;
|
||||||
|
border-top-color: #FFF;
|
||||||
|
-moz-animation: spin 1.5s linear infinite;
|
||||||
|
-o-animation: spin 1.5s linear infinite;
|
||||||
|
-ms-animation: spin 1.5s linear infinite;
|
||||||
|
-webkit-animation: spin 1.5s linear infinite;
|
||||||
|
animation: spin 1.5s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@-webkit-keyframes spin {
|
||||||
|
0% {
|
||||||
|
-webkit-transform: rotate(0deg);
|
||||||
|
-ms-transform: rotate(0deg);
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
-webkit-transform: rotate(360deg);
|
||||||
|
-ms-transform: rotate(360deg);
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% {
|
||||||
|
-webkit-transform: rotate(0deg);
|
||||||
|
-ms-transform: rotate(0deg);
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
-webkit-transform: rotate(360deg);
|
||||||
|
-ms-transform: rotate(360deg);
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#loader-wrapper .loader-section {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 51%;
|
||||||
|
height: 100%;
|
||||||
|
background: #7171C6;
|
||||||
|
z-index: 1000;
|
||||||
|
-webkit-transform: translateX(0);
|
||||||
|
-ms-transform: translateX(0);
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper .loader-section.section-left {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper .loader-section.section-right {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.loaded #loader-wrapper .loader-section.section-left {
|
||||||
|
-webkit-transform: translateX(-100%);
|
||||||
|
-ms-transform: translateX(-100%);
|
||||||
|
transform: translateX(-100%);
|
||||||
|
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
|
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
|
}
|
||||||
|
|
||||||
|
.loaded #loader-wrapper .loader-section.section-right {
|
||||||
|
-webkit-transform: translateX(100%);
|
||||||
|
-ms-transform: translateX(100%);
|
||||||
|
transform: translateX(100%);
|
||||||
|
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
|
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
|
}
|
||||||
|
|
||||||
|
.loaded #loader {
|
||||||
|
opacity: 0;
|
||||||
|
-webkit-transition: all 0.3s ease-out;
|
||||||
|
transition: all 0.3s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loaded #loader-wrapper {
|
||||||
|
visibility: hidden;
|
||||||
|
-webkit-transform: translateY(-100%);
|
||||||
|
-ms-transform: translateY(-100%);
|
||||||
|
transform: translateY(-100%);
|
||||||
|
-webkit-transition: all 0.3s 1s ease-out;
|
||||||
|
transition: all 0.3s 1s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-js #loader-wrapper {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-js h1 {
|
||||||
|
color: #222222;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper .load_title {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 19px;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
z-index: 9999999999999;
|
||||||
|
position: absolute;
|
||||||
|
top: 60%;
|
||||||
|
opacity: 1;
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper .load_title span {
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 13px;
|
||||||
|
color: #FFF;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app">
|
||||||
|
<div id="loader-wrapper">
|
||||||
|
<div id="loader"></div>
|
||||||
|
<div class="loader-section section-left"></div>
|
||||||
|
<div class="loader-section section-right"></div>
|
||||||
|
<div class="load_title">正在加载系统资源,请耐心等待</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="js/publics/jquery-3.6.0.min.js" type="text/javascript"></script>
|
||||||
|
<script src="plugin/layui-v2.9.7/layui/layui.js"></script>
|
||||||
|
<script src="api/commonRequest.js" type="text/javascript"></script>
|
||||||
|
<script src="js/publics/aescbc.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function() {
|
||||||
|
let hrefUrl = window.location.href;
|
||||||
|
const url = new URL(hrefUrl);
|
||||||
|
const urlParam = new URLSearchParams(url.search);
|
||||||
|
const path = url.pathname; // 输出: "/page"
|
||||||
|
const ticket = urlParam.get('ticket'); // 输出: "value1"
|
||||||
|
console.log(path)
|
||||||
|
console.log(ticket)
|
||||||
|
const params = {
|
||||||
|
"ticket":ticket,
|
||||||
|
"loginType": 1
|
||||||
|
}
|
||||||
|
let encryptStr = encryptCBC(JSON.stringify(params));
|
||||||
|
ajaxRequest(login_url, "POST", encryptStr, true, function () {
|
||||||
|
}, function (result) {
|
||||||
|
if (result.code === 200) {
|
||||||
|
top.layer.msg(result.msg, { icon: 1, time: 500 }, function () {
|
||||||
|
sessionStorage.setItem("zhgd_token", result.data.access_token);
|
||||||
|
sessionStorage.setItem("zhgd_us", result.data.us);
|
||||||
|
localStorage.setItem("iscKey", result.iscUserId);
|
||||||
|
const us = JSON.parse(result.data.us);
|
||||||
|
localStorage.setItem("zhgd_type-noLogin",us.jumpType);
|
||||||
|
sessionStorage.setItem("zhgd_type", us.jumpType);
|
||||||
|
window.location.href = "pages/web/index.html";
|
||||||
|
});
|
||||||
|
} else if (result.code === 500) {
|
||||||
|
layer.msg(result.msg, { icon: 2 });
|
||||||
|
}else if (result.code === 201) {
|
||||||
|
layer.msg(result.msg, { icon: 2 });
|
||||||
|
}
|
||||||
|
}, function (xhr, status, error) {
|
||||||
|
errorFn(xhr, status, error)
|
||||||
|
$('.layui-btn-fluid').empty().append('登 录');
|
||||||
|
}, "application/json", aqEnnable);
|
||||||
|
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -11,11 +11,11 @@
|
||||||
<script src="plugin/layui-v2.9.7/layui/layui.js"></script>
|
<script src="plugin/layui-v2.9.7/layui/layui.js"></script>
|
||||||
<script src="api/commonRequest.js" type="text/javascript"></script>
|
<script src="api/commonRequest.js" type="text/javascript"></script>
|
||||||
<script src="js/publics/aescbc.js"></script>
|
<script src="js/publics/aescbc.js"></script>
|
||||||
<title>登录</title>
|
<title>登录</title>,
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body style="display: none">
|
||||||
<div id="content" class="layout">
|
<div id="content" class="layout" style="">
|
||||||
<div id="pro-title" class="layout">
|
<div id="pro-title" class="layout">
|
||||||
<p>省侧基建智慧现场工地</p>
|
<p>省侧基建智慧现场工地</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,247 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Loading Page</title>
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
#app {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
.chromeframe {
|
||||||
|
margin: 0.2em 0;
|
||||||
|
background: #ccc;
|
||||||
|
color: #000;
|
||||||
|
padding: 0.2em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
width: 150px;
|
||||||
|
height: 150px;
|
||||||
|
margin: -75px 0 0 -75px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 3px solid transparent;
|
||||||
|
border-top-color: #FFF;
|
||||||
|
-webkit-animation: spin 2s linear infinite;
|
||||||
|
-ms-animation: spin 2s linear infinite;
|
||||||
|
-moz-animation: spin 2s linear infinite;
|
||||||
|
-o-animation: spin 2s linear infinite;
|
||||||
|
animation: spin 2s linear infinite;
|
||||||
|
z-index: 1001;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader:before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 5px;
|
||||||
|
left: 5px;
|
||||||
|
right: 5px;
|
||||||
|
bottom: 5px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 3px solid transparent;
|
||||||
|
border-top-color: #FFF;
|
||||||
|
-webkit-animation: spin 3s linear infinite;
|
||||||
|
-moz-animation: spin 3s linear infinite;
|
||||||
|
-o-animation: spin 3s linear infinite;
|
||||||
|
-ms-animation: spin 3s linear infinite;
|
||||||
|
animation: spin 3s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 15px;
|
||||||
|
left: 15px;
|
||||||
|
right: 15px;
|
||||||
|
bottom: 15px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 3px solid transparent;
|
||||||
|
border-top-color: #FFF;
|
||||||
|
-moz-animation: spin 1.5s linear infinite;
|
||||||
|
-o-animation: spin 1.5s linear infinite;
|
||||||
|
-ms-animation: spin 1.5s linear infinite;
|
||||||
|
-webkit-animation: spin 1.5s linear infinite;
|
||||||
|
animation: spin 1.5s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@-webkit-keyframes spin {
|
||||||
|
0% {
|
||||||
|
-webkit-transform: rotate(0deg);
|
||||||
|
-ms-transform: rotate(0deg);
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
-webkit-transform: rotate(360deg);
|
||||||
|
-ms-transform: rotate(360deg);
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% {
|
||||||
|
-webkit-transform: rotate(0deg);
|
||||||
|
-ms-transform: rotate(0deg);
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
-webkit-transform: rotate(360deg);
|
||||||
|
-ms-transform: rotate(360deg);
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#loader-wrapper .loader-section {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 51%;
|
||||||
|
height: 100%;
|
||||||
|
background: #7171C6;
|
||||||
|
z-index: 1000;
|
||||||
|
-webkit-transform: translateX(0);
|
||||||
|
-ms-transform: translateX(0);
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper .loader-section.section-left {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper .loader-section.section-right {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.loaded #loader-wrapper .loader-section.section-left {
|
||||||
|
-webkit-transform: translateX(-100%);
|
||||||
|
-ms-transform: translateX(-100%);
|
||||||
|
transform: translateX(-100%);
|
||||||
|
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
|
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
|
}
|
||||||
|
|
||||||
|
.loaded #loader-wrapper .loader-section.section-right {
|
||||||
|
-webkit-transform: translateX(100%);
|
||||||
|
-ms-transform: translateX(100%);
|
||||||
|
transform: translateX(100%);
|
||||||
|
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
|
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
|
}
|
||||||
|
|
||||||
|
.loaded #loader {
|
||||||
|
opacity: 0;
|
||||||
|
-webkit-transition: all 0.3s ease-out;
|
||||||
|
transition: all 0.3s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loaded #loader-wrapper {
|
||||||
|
visibility: hidden;
|
||||||
|
-webkit-transform: translateY(-100%);
|
||||||
|
-ms-transform: translateY(-100%);
|
||||||
|
transform: translateY(-100%);
|
||||||
|
-webkit-transition: all 0.3s 1s ease-out;
|
||||||
|
transition: all 0.3s 1s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-js #loader-wrapper {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-js h1 {
|
||||||
|
color: #222222;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper .load_title {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 19px;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
z-index: 9999999999999;
|
||||||
|
position: absolute;
|
||||||
|
top: 60%;
|
||||||
|
opacity: 1;
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loader-wrapper .load_title span {
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 13px;
|
||||||
|
color: #FFF;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app">
|
||||||
|
<div id="loader-wrapper">
|
||||||
|
<div id="loader"></div>
|
||||||
|
<div class="loader-section section-left"></div>
|
||||||
|
<div class="loader-section section-right"></div>
|
||||||
|
<div class="load_title">正在加载系统资源,请耐心等待</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="js/publics/jquery-3.6.0.min.js" type="text/javascript"></script>
|
||||||
|
<script src="plugin/layui-v2.9.7/layui/layui.js"></script>
|
||||||
|
<script src="api/commonRequest.js" type="text/javascript"></script>
|
||||||
|
<script src="js/publics/aescbc.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function() {
|
||||||
|
let hrefUrl = window.location.href;
|
||||||
|
const url = new URL(hrefUrl);
|
||||||
|
const urlParam = new URLSearchParams(url.search);
|
||||||
|
const path = url.pathname; // 输出: "/page"
|
||||||
|
const ticket = urlParam.get('ticket'); // 输出: "value1"
|
||||||
|
console.log(path)
|
||||||
|
console.log(ticket)
|
||||||
|
const params = {
|
||||||
|
"ticket":ticket,
|
||||||
|
"loginType": 2
|
||||||
|
}
|
||||||
|
let encryptStr = encryptCBC(JSON.stringify(params));
|
||||||
|
ajaxRequest(login_url, "POST", encryptStr, true, function () {
|
||||||
|
}, function (result) {
|
||||||
|
if (result.code === 200) {
|
||||||
|
top.layer.msg(result.msg, { icon: 1, time: 500 }, function () {
|
||||||
|
sessionStorage.setItem("zhgd_token", result.data.access_token);
|
||||||
|
sessionStorage.setItem("zhgd_us", result.data.us);
|
||||||
|
localStorage.setItem("iscKey", result.iscUserId);
|
||||||
|
const us = JSON.parse(result.data.us);
|
||||||
|
localStorage.setItem("zhgd_type-noLogin",us.jumpType);
|
||||||
|
sessionStorage.setItem("zhgd_type", us.jumpType);
|
||||||
|
window.location.href = "pages/home/navigation.html";
|
||||||
|
});
|
||||||
|
} else if (result.code === 500) {
|
||||||
|
layer.msg(result.msg, { icon: 2 });
|
||||||
|
}else if (result.code === 201) {
|
||||||
|
layer.msg(result.msg, { icon: 2 });
|
||||||
|
}
|
||||||
|
}, function (xhr, status, error) {
|
||||||
|
errorFn(xhr, status, error)
|
||||||
|
$('.layui-btn-fluid').empty().append('登 录');
|
||||||
|
}, "application/json", aqEnnable);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -14,8 +14,8 @@
|
||||||
<title>登录</title>
|
<title>登录</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body style="">
|
||||||
<div id="content" class="layout">
|
<div id="content" class="layout" >
|
||||||
<div id="pro-title" class="layout">
|
<div id="pro-title" class="layout">
|
||||||
<p>基建智慧现场工地</p>
|
<p>基建智慧现场工地</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -47,6 +47,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script src="js/login/login.js" type="text/javascript"></script>
|
<script src="js/login/login2.js" type="text/javascript"></script>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue