修改地址
This commit is contained in:
parent
908d79c6e4
commit
e0500df3b0
|
|
@ -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"; //外围公司测试地址
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue