Ver código fonte

修改notify的提示

guo00guo 5 anos atrás
pai
commit
59c22b34d7

+ 2 - 2
src/pages/UserCenter/BindingMail.vue

@@ -105,11 +105,11 @@
             Http.put('/api/user/email',params).then(res=>{
               this.hideLoading();
               if(res.msg == "ERROR"){
-                notify('error', '重新绑定失败:' + res.data);
+                notify('error', '绑定失败:' + res.data);
                 this.codeTime = 60;
                 this.hasVerifyCode = false;
               }else{
-                notify('success', '重新绑定成功');
+                notify('success', '绑定成功');
                 this.$router.push({path:'/personal/mailBinding'});
               }
             }).catch(err=> {

+ 2 - 2
src/pages/UserCenter/BindingMobile.vue

@@ -92,14 +92,14 @@
 
         Http.put('/api/user/mobile', params).then(res => {
           if (res.msg == "ERROR") {
-            notify('error', '重新绑定失败:' + res.data);
+            notify('error', '绑定失败:' + res.data);
             this.active = 1;
             this.phoneBindingForm.phone = '';
             this.phoneBindingForm.verifyCode = '';
             this.codeTime = 60;
             this.hasVerifyCode = false;
           } else {
-            notify('success', '重新绑定成功');
+            notify('success', '绑定成功');
             this.$router.push({path: '/personal/phoneBinding'});
           }
         }).catch(err => {

+ 2 - 2
src/pages/UserCenter/ReBindingMail.vue

@@ -78,11 +78,11 @@
         Http.put('/api/user/email', params).then((res) => {
           this.hideLoading();
           if (res.msg == "ERROR") {
-            notify('error', '重新绑定失败:' + res.data);
+            notify('error', '绑定失败:' + res.data);
             this.codeTime = 60;
             this.hasVerifyCode = false;
           } else {
-            // notify('success', '重新绑定成功');
+            // notify('success', '绑定成功');
             window.alert('邮箱修改成功, 请重新登录');
             logout().then((res) => {
               window.location.href = process.env.LOGIN_URL;

+ 3 - 3
src/pages/UserCenter/ReBindingMobile.vue

@@ -112,14 +112,14 @@
           Http.put('/api/user/mobile', params).then(res => {
             this.hideLoading();
             if (res.msg == "ERROR") {
-              notify('error', '重新绑定失败:' + res.data);
+              notify('error', '绑定失败:' + res.data);
             } else {
-              notify('success', '重新绑定成功');
+              notify('success', '绑定成功');
               this.$router.push({path: '/personal/phoneBinding'});
             }
           }).catch(err => {
             this.hideLoading();
-            notify('error', '重新绑定失败:' + err.data);
+            notify('error', '绑定失败:' + err.data);
           })
         }