Commit 1a22e947 by 李伟康

修改代码

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