diff --git a/context/Java110Context.js b/context/Java110Context.js index 95bf8fe..07674d8 100644 --- a/context/Java110Context.js +++ b/context/Java110Context.js @@ -177,6 +177,8 @@ const getCommunity = function (callBack,reload,_condition) { _condition = {}; } + console.log('_condition',_condition); + _condition.userId = _userInfo.userId; _condition.storeId = _userInfo.storeId; diff --git a/factory/LoginFactory.js b/factory/LoginFactory.js index 90aa14d..bbf360a 100644 --- a/factory/LoginFactory.js +++ b/factory/LoginFactory.js @@ -53,7 +53,7 @@ class LoginFactory { console.log("用户信息",userInfo); if(userInfo == null || userInfo == undefined || userInfo == ''){ - uni.redirectTo({ + uni.navigateTo({ url:"/pages/login/login" }) diff --git a/pages/changePwd/changePwd.vue b/pages/changePwd/changePwd.vue index 36c24f7..3ba4396 100644 --- a/pages/changePwd/changePwd.vue +++ b/pages/changePwd/changePwd.vue @@ -71,7 +71,7 @@ userId: this.java110Context.getUserInfo().userId, oldPwd: this.oldPwd, newPwd: this.newPwd - } + }; uni.request({ url: this.java110Constant.url.changeStaffPwd, diff --git a/pages/login/login.vue b/pages/login/login.vue index cff3350..875a3a0 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -101,9 +101,12 @@ expireTime: afterOneHourDate.getTime(), createTime: new Date().getTime() }); - uni.switchTab({ + + uni.reLaunch({ url: "/pages/index/index" }); + + }, fail: function(error) { // 调用服务端登录接口失败