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