From 11a4bbc05f5fa302d319c6ddc2bc578566cfbbf6 Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Wed, 13 Nov 2024 23:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/commonRequest.js | 2 +- js/login/login.js | 8 +++--- js/login/login2.js | 8 +++--- js/publics/public.js | 26 +++++++++--------- sc_login.html | 62 +++++++++++++++++++++--------------------- sc_login.html-- | 52 +++++++++++++++++++++++++++++++++++ sc_login2.html--- | 52 ----------------------------------- sg_login.html | 64 ++++++++++++++++++++++---------------------- sg_login.html--- | 53 ++++++++++++++++++++++++++++++++++++ sg_login2.html-- | 53 ------------------------------------ 10 files changed, 191 insertions(+), 189 deletions(-) create mode 100644 sc_login.html-- delete mode 100644 sc_login2.html--- create mode 100644 sg_login.html--- delete mode 100644 sg_login2.html-- diff --git a/api/commonRequest.js b/api/commonRequest.js index b328782..0826769 100644 --- a/api/commonRequest.js +++ b/api/commonRequest.js @@ -6,7 +6,7 @@ const URL_IP="http://27.50.49.56:8000/zhgd-web" // const URL_IP="http://127.0.0.1:63343/ah_jjzhgd_webscreen" // const commonUrl = "http://127.0.0.1:18080/zhgd/"; // //前端路径 -let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service="; +// let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service="; /* 登录相关 */ const login_url = commonUrl + "auth/login"; // 登录url const login_out = commonUrl + "auth/logout"; // 登出url diff --git a/js/login/login.js b/js/login/login.js index 5011789..f16c6c7 100644 --- a/js/login/login.js +++ b/js/login/login.js @@ -1,9 +1,9 @@ let form, layer; layui.use(function () { - let logUrl="http://27.50.49.56:8000/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; + // let logUrl="http://27.50.49.56:8000/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; layer = layui.layer; form.on('submit(demo-login)', function (data) { diff --git a/js/login/login2.js b/js/login/login2.js index cfac33a..7a31760 100644 --- a/js/login/login2.js +++ b/js/login/login2.js @@ -1,9 +1,9 @@ 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:8000/zhgd-web/sgIndex.html"; - window.location.href =isc_login+logUrl; - return false; + // let isc_login="http://iscssotest.ah.sgcc.com.cn/isc_sso/login?service="; + // let logUrl="http://27.50.49.56:8000/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) { diff --git a/js/publics/public.js b/js/publics/public.js index 748ed18..ee6ac36 100644 --- a/js/publics/public.js +++ b/js/publics/public.js @@ -76,11 +76,11 @@ function loginout(type) { sessionStorage.removeItem("zhgd_us"); sessionStorage.removeItem("zhgd_type"); let iscId=localStorage.getItem("iscKey"); - if (zhgd_type === "2") { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sg_login.html'; - } else if (zhgd_type === "1") { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sc_login.html'; - } + // if (zhgd_type === "2") { + // window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sg_login.html'; + // } else if (zhgd_type === "1") { + // window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sc_login.html'; + // } }); } else if (result.code === 500) { layer.msg("登出失败", { icon: 2 }); @@ -106,15 +106,17 @@ function errorFn(xhr, status, error) { /* 返回登录页 */ function backLoginPage() { let iscId=localStorage.getItem("iscKey"); - if (zhgd_type === "2") { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sg_login.html'; - } else if (zhgd_type === "1") { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sc_login.html'; - }else { - window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sc_login.html'; - } + // if (zhgd_type === "2") { + // window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sg_login.html'; + // + // } else if (zhgd_type === "1") { + // window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sc_login.html'; + // + // }else { + // window.location.href = 'http://iscssotest.ah.sgcc.com.cn/isc_sso/logout?iscUserId='+iscId+'&service=http://27.50.49.56:8000/zhgd-web/sc_login.html'; + // } } //判断字符是否为空的方法 function isEmpty(obj) { diff --git a/sc_login.html b/sc_login.html index 4b6ea63..efc2397 100644 --- a/sc_login.html +++ b/sc_login.html @@ -15,37 +15,37 @@ 登录, - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
+
+

省侧基建智慧现场工地

+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+ +
+
+
+
diff --git a/sc_login.html-- b/sc_login.html-- new file mode 100644 index 0000000..4b6ea63 --- /dev/null +++ b/sc_login.html-- @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + 登录, + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sc_login2.html--- b/sc_login2.html--- deleted file mode 100644 index efc2397..0000000 --- a/sc_login2.html--- +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - 登录, - - - -
-
-

省侧基建智慧现场工地

-
-
-
-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/sg_login.html b/sg_login.html index 99a01ca..4237b37 100644 --- a/sg_login.html +++ b/sg_login.html @@ -15,38 +15,38 @@ 登录 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
+
+

基建智慧现场工地

+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+ +
+
+
+
diff --git a/sg_login.html--- b/sg_login.html--- new file mode 100644 index 0000000..99a01ca --- /dev/null +++ b/sg_login.html--- @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + 登录 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sg_login2.html-- b/sg_login2.html-- deleted file mode 100644 index 4237b37..0000000 --- a/sg_login2.html-- +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - 登录 - - - -
-
-

基建智慧现场工地

-
-
-
-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
- -
-
-
-
- - - - \ No newline at end of file