guhongwei 4 years ago
parent
commit
a6d76d3312
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/bind/bind.vue

+ 2 - 2
src/views/bind/bind.vue

@@ -46,7 +46,7 @@ export default {
     async onSubmit(form) {
       form.openid = this.openid;
       let res = await this.bind(form);
-      if (this.$checkRes(res)) {
+      if (res.errcode === 0) {
         this.$notify({
           message: '绑定成功',
           type: 'success',
@@ -56,7 +56,7 @@ export default {
       } else {
         this.$notify({
           message: res.errmsg,
-          type: 'error',
+          type: 'danger',
         });
       }
     },