Commit 9f41626c authored by Facius's avatar Facius

fix: 【模考大师-登录】:手机号码绑定成功后,无toast提示。

parent 9dbc6e01
......@@ -113,21 +113,29 @@ export default {
// 后台会返回' '
if (res.phoneNumber && res.phoneNumber > 1) {
// 跳转到特定页面
if (this.returnUrl) {
if (this.returnUrl === 'pages/learn/selectCategory') {
this.queryMyQuestionWarehouseDetail()
return
}
this.$u.route({
url: this.returnUrl,
type: 'redirectTo',
})
} else {
this.$u.route({
url: '/pages/index/index',
type: 'tab',
})
}
// 还没有绑定郭手机号
this.$refs.uToast.show({
title: '授权成功',
type: 'success',
duration: 1500,
callback: () => {
if (this.returnUrl) {
if (this.returnUrl === 'pages/learn/selectCategory') {
this.queryMyQuestionWarehouseDetail()
return
}
this.$u.route({
url: this.returnUrl,
type: 'redirectTo',
})
} else {
this.$u.route({
url: '/pages/index/index',
type: 'tab',
})
}
},
})
} else {
// 还没有绑定郭手机号
this.$refs.uToast.show({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment