@@ -10,7 +10,7 @@ | |||||
// H5 刷新时获取当前页面路径 | // H5 刷新时获取当前页面路径 | ||||
const pagePath = "/" + param.path; | const pagePath = "/" + param.path; | ||||
// 如果 H5 刷新后访问的不是首页/登录页/注册页,直接跳转回首页 | // 如果 H5 刷新后访问的不是首页/登录页/注册页,直接跳转回首页 | ||||
if (!["/pages/login", "/pages/weixinLogin","/pages/home", "/pages/signup"].includes(pagePath)) { | |||||
if (!["/pages/login", "/pages/weixinLogin","/pages/home", "/pages/signup","/pages/my/newpassword"].includes(pagePath)) { | |||||
this.$nextTick(() => { | this.$nextTick(() => { | ||||
this.TAB_TO("/pages/home"); | this.TAB_TO("/pages/home"); | ||||
return; | return; | ||||
@@ -21,7 +21,7 @@ export default { | |||||
// "http://192.168.2.98:8088/" | // "http://192.168.2.98:8088/" | ||||
// ], | // ], | ||||
"apiHost": [ | "apiHost": [ | ||||
"http://localhost:31173/" | |||||
"http://192.168.10.58:8012/" | |||||
// "http://123.57.209.16:31173/" | // "http://123.57.209.16:31173/" | ||||
], | ], | ||||
"webHost":"http://demo.bjquanjiang.com:8081/", | "webHost":"http://demo.bjquanjiang.com:8081/", | ||||
@@ -145,7 +145,8 @@ export default { | |||||
this.SET_STORAGE("token",success.baseinfo.token) | this.SET_STORAGE("token",success.baseinfo.token) | ||||
// this.SET_STORAGE("logininfo",logininfo) | // this.SET_STORAGE("logininfo",logininfo) | ||||
// this.SET_STORAGE("userinfo",success) | // this.SET_STORAGE("userinfo",success) | ||||
location.href = "http://" + window.location.host; | |||||
location.href = "http://" + window.location.host + "/#/pages/my/newpassword"; | |||||
// location.href = "http://" + window.location.host; | |||||
}else{ | }else{ | ||||
this.ready = true | this.ready = true | ||||
this.openid = success.openid | this.openid = success.openid | ||||
@@ -163,8 +164,6 @@ export default { | |||||
}, | }, | ||||
loginClick(){ | loginClick(){ | ||||
// 点击登录 | // 点击登录 | ||||
// 账号密码登录时,验证输入,输入有误则返回 | // 账号密码登录时,验证输入,输入有误则返回 | ||||
if (!this.check()) { | if (!this.check()) { | ||||
@@ -200,7 +199,7 @@ export default { | |||||
} else { | } else { | ||||
this.SET_STORAGE('pwd', false); | this.SET_STORAGE('pwd', false); | ||||
} | } | ||||
location.href = "http://" + window.location.host; | |||||
location.href = "http://" + window.location.host + "/#/pages/my/newpassword"; | |||||
}) | }) | ||||
}, | }, | ||||
@@ -170,6 +170,7 @@ export default { | |||||
this.HTTP_GET('StuInfoFresh/saveStuInfoFresh', this.queryData).then(res => { | this.HTTP_GET('StuInfoFresh/saveStuInfoFresh', this.queryData).then(res => { | ||||
this.HIDE_LOADING(); | this.HIDE_LOADING(); | ||||
if (res) { | if (res) { | ||||
this.NAV_TO("/pages/my/newpassword") | |||||
this.TOAST('保存成功'); | this.TOAST('保存成功'); | ||||
} | } | ||||
}); | }); | ||||