Commit 1a22e947 by 李伟康

修改代码

1 parent a0c2b175
...@@ -221,7 +221,10 @@ Component({ ...@@ -221,7 +221,10 @@ Component({
message message
}) => { }) => {
if (code == '0') this.checkLoginUserInfo(data) if (code == '0') this.checkLoginUserInfo(data)
else wx.$api.showToast(message || '系统异常') else {
wx.$api.showToast(message || '系统异常')
this.init()
}
this.setBtnLoading(false) this.setBtnLoading(false)
}) })
.catch(({ .catch(({
...@@ -229,6 +232,7 @@ Component({ ...@@ -229,6 +232,7 @@ Component({
}) => { }) => {
wx.$api.showToast(errMsg || '系统异常') wx.$api.showToast(errMsg || '系统异常')
this.setBtnLoading(false) this.setBtnLoading(false)
this.init()
}) })
}, },
/**手机号&微信登录:是否跳转登录列表页 */ /**手机号&微信登录:是否跳转登录列表页 */
......
...@@ -26,12 +26,12 @@ Page = function (options) { ...@@ -26,12 +26,12 @@ Page = function (options) {
const oldHide = options.onHide const oldHide = options.onHide
options.onShow = function () { options.onShow = function () {
routerBefore(() => { routerBefore(() => {
oldShow.apply(this, arguments) oldShow && oldShow.apply(this, arguments)
}) })
} }
options.onHide = function () { options.onHide = function () {
routerAfter(() => { routerAfter(() => {
oldHide.apply(this, arguments) oldHide && oldHide.apply(this, arguments)
}) })
} }
OldPage(options) OldPage(options)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!