Authored by yyq

fix bind

... ... @@ -26,7 +26,7 @@
<script>
import { Button, Scroll, Input } from 'cube-ui';
import { mapActions, mapState } from 'vuex';
import { mapActions, mapState, mapMutations } from 'vuex';
export default {
name: 'ThirdBind',
... ... @@ -62,6 +62,7 @@ export default {
},
methods: {
...mapActions(['sendBindSms', 'submitThirdBind']),
...mapMutations(['SET_LOGIN_INFO']),
open() {
this.bindCode = this.$route.query.bind_code;
this.phone = '';
... ... @@ -126,6 +127,7 @@ export default {
if (res.code === 200) {
this.binded = true;
this.close();
this.SET_LOGIN_INFO({ uid: 999999999999 }); // 设置登录状态
} else {
this.toast(res.message);
}
... ...
... ... @@ -258,8 +258,8 @@ const bind = {
req.ctx(passportModel).sendTaobaoBindCode(mobile, req.yoho.isAliApp ? 'xianyu' : '').then(res.json).catch(next);
} else {
res.json({
code: 200,
message: '绑定信息异常'
code: 403,
message: '关联信息异常'
});
}
},
... ...