提交 e5cedaec authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 e4714e00
......@@ -94,7 +94,7 @@ export default {
code: data.password,
forceUpdate // 是否强制绑定微信(0:否,1:是,默认为1)
})
api
return api
.bindWechat(params)
.then(response => {
const { code, msg: message } = response
......@@ -119,12 +119,17 @@ export default {
cancelButtonText: '绑定其他手机号',
message: '此手机号码已绑定其他微信,是否切换绑定该微信?'
}).then(() => {
this.bindWechat(data, 1)
this.bindWechat(data, 1).then(() => {
this.$toast('已绑定成功!')
})
})
},
// 登录成功
loginSuccess(response, delta = 2) {
if (response.code === 0) {
if (Cookies.get('wechat_login_no_phone_error')) {
this.$toast('已完成注册!')
}
Cookies.remove('wechat_login_error', { domain: '.ezijing.com' })
Cookies.remove('wechat_login_no_phone_error', {
domain: '.ezijing.com'
......
......@@ -123,7 +123,8 @@ export default [
{
path: '/my/buyCourses',
name: 'buyCourses',
component: () => import('../pages/my/buyCourses.vue')
component: () => import('../pages/my/buyCourses.vue'),
meta: { requiredLogin: true }
},
// 我的-已做试题
{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论