From e0500df3b0390cbeae77eec6731c0144d2f61627 Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Mon, 1 Dec 2025 14:34:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smz-web/js/publicJs.js | 7 ++++--- smz-web/login.html | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/smz-web/js/publicJs.js b/smz-web/js/publicJs.js index 5294069..2dc4dea 100644 --- a/smz-web/js/publicJs.js +++ b/smz-web/js/publicJs.js @@ -1,9 +1,10 @@ -var ctxPath = "http://192.168.0.38:19118/hnBmw" - +var ctxPath = "http://192.168.0.38:42880/realname" +//湖南 +let contentPath="/hn_cloud_web/smz-web" console.log("publicJs.js="+ctxPath); // var dataPath ="http://140.210.209.102:1918/hnBmw"; //部署上线地址 -var dataPath ="http://192.168.0.38:19118/hnBmw"; //公司测试地址 +var dataPath ="http://192.168.0.38:42880/realname"; //公司测试地址 // var dataPath ="http://116.63.172.211:1918/hnBmw"; //线上正式环境--外网 // var dataPath ="http://172.16.0.235:1918/hnBmw"; //线上正式环境--内网 // var dataPath ="http://101.201.61.123:19118/hnBmw"; //外围公司测试地址 diff --git a/smz-web/login.html b/smz-web/login.html index 2486ac5..d8bff7b 100644 --- a/smz-web/login.html +++ b/smz-web/login.html @@ -84,7 +84,7 @@ "token": token }, success : function(data) { - location.href = ctxPath + '/index.html'; + window.location.href=contentPath+"/index.html"; }, error : function(xhr, textStatus, errorThrown) { var msg = xhr.responseText; @@ -127,7 +127,7 @@ //请求方式 type : "GET", //请求的媒体类型 - contentType: "application/json;charset=UTF-8", + //contentType: "application/json;charset=UTF-8", //请求地址 url : url, //请求成功 @@ -176,10 +176,10 @@ let pattern = /^(?![0-9]+$)(?![0-9\W]+$)(?![0-9A-Z]+$)(?![0-9a-z]+$)(?![a-z\W]+$)(?![A-Z\W]+$)[0-9A-Za-z\W]{8,16}$/; if(!pattern.test(password)) { parent.layer.msg('密码过于简单,请尽快修改密码', {icon: 2, time: 3000,area: ['350px', '70px']},function () { - location.href = ctxPath + '/index.html'; + window.location.href=contentPath+"/index.html"; }); }else{ - location.href = ctxPath + '/index.html'; + window.location.href=contentPath+"/index.html"; } }, error : function(xhr, textStatus, errorThrown) {