mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
优化登录重启
This commit is contained in:
parent
b3a0e3905f
commit
4ebfc2cc5a
@ -177,6 +177,8 @@ const getCommunity = function (callBack,reload,_condition) {
|
||||
_condition = {};
|
||||
}
|
||||
|
||||
console.log('_condition',_condition);
|
||||
|
||||
_condition.userId = _userInfo.userId;
|
||||
_condition.storeId = _userInfo.storeId;
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ class LoginFactory {
|
||||
console.log("用户信息",userInfo);
|
||||
|
||||
if(userInfo == null || userInfo == undefined || userInfo == ''){
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url:"/pages/login/login"
|
||||
})
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@
|
||||
userId: this.java110Context.getUserInfo().userId,
|
||||
oldPwd: this.oldPwd,
|
||||
newPwd: this.newPwd
|
||||
}
|
||||
};
|
||||
|
||||
uni.request({
|
||||
url: this.java110Constant.url.changeStaffPwd,
|
||||
|
||||
@ -101,9 +101,12 @@
|
||||
expireTime: afterOneHourDate.getTime(),
|
||||
createTime: new Date().getTime()
|
||||
});
|
||||
uni.switchTab({
|
||||
|
||||
uni.reLaunch({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
|
||||
|
||||
},
|
||||
fail: function(error) {
|
||||
// 调用服务端登录接口失败
|
||||
|
||||
Loading…
Reference in New Issue
Block a user