|
@@ -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',
|
|
|
});
|
|
|
}
|
|
|
},
|