Commit 9f41626c authored by Facius's avatar Facius

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

parent 9dbc6e01
...@@ -113,21 +113,29 @@ export default { ...@@ -113,21 +113,29 @@ export default {
// 后台会返回' ' // 后台会返回' '
if (res.phoneNumber && res.phoneNumber > 1) { if (res.phoneNumber && res.phoneNumber > 1) {
// 跳转到特定页面 // 跳转到特定页面
if (this.returnUrl) { // 还没有绑定郭手机号
if (this.returnUrl === 'pages/learn/selectCategory') { this.$refs.uToast.show({
this.queryMyQuestionWarehouseDetail() title: '授权成功',
return type: 'success',
} duration: 1500,
this.$u.route({ callback: () => {
url: this.returnUrl, if (this.returnUrl) {
type: 'redirectTo', if (this.returnUrl === 'pages/learn/selectCategory') {
}) this.queryMyQuestionWarehouseDetail()
} else { return
this.$u.route({ }
url: '/pages/index/index', this.$u.route({
type: 'tab', url: this.returnUrl,
}) type: 'redirectTo',
} })
} else {
this.$u.route({
url: '/pages/index/index',
type: 'tab',
})
}
},
})
} else { } else {
// 还没有绑定郭手机号 // 还没有绑定郭手机号
this.$refs.uToast.show({ 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