guhongwei 4 سال پیش
والد
کامیت
a6d76d3312
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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',
         });
       }
     },