Your Name 6 years ago
parent
commit
1c197b1f3d
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/components/login.vue

+ 12 - 0
src/components/login.vue

@@ -228,6 +228,8 @@ export default {
           console.log(response);
           if (response.data.code==200) {
             this.loginSucceed(response.data.data)
+          }else{
+            alert(response.data.message)
           }
           
         })
@@ -247,12 +249,15 @@ export default {
           console.log(response);
           if (response.data.code==200) {
             this.loginSucceed(response.data.data)
+          }else{
+            alert(response.data.message)
           }
         })
         .catch(function (error) {
           console.log(error);
         });
       }
+      this.empty()
     },
     verify(){
       if(!this.phone&&this.register) {
@@ -264,6 +269,7 @@ export default {
         this.$http.post("https://dev407.33.cn/api/send/newmail",parm)
         .then(response=>{
           console.log(response);
+          alert(response.data.message)
         })
         .catch(error=>{
           console.log(error)
@@ -278,6 +284,7 @@ export default {
         this.$http.post("https://dev407.33.cn/api/send/newsms",parm)
         .then(response=>{
           console.log(response)
+          alert(response.data.message)
         })
         .catch(error=>{
           console.log(error)
@@ -292,6 +299,7 @@ export default {
         this.$http.post("https://dev407.33.cn/api/send/newsms",parm)
         .then(response=>{
           console.log(response)
+          alert(response.data.message)
         })
         .catch(error=>{
           console.log(error)
@@ -311,6 +319,7 @@ export default {
           this.$http.post("https://dev407.33.cn/api/broker/register",parm)
           .then(response=>{
             console.log(response);
+            alert(response.data.message)
           })
           .catch(error=>{
             console.log(error)
@@ -325,6 +334,7 @@ export default {
           this.$http.post("https://dev407.33.cn/api/broker/register",parm)
           .then(response=>{
             console.log(response);
+            alert(response.data.message)
           })
           .catch(error=>{
             console.log(error)
@@ -343,6 +353,7 @@ export default {
       this.$http.post("https://dev407.33.cn/api/member/brokernewresetpassword",parm)
       .then(response=>{
         console.log(response);
+        alert(response.data.message)
       })
       .catch(error=>{
         console.log(error)
@@ -361,6 +372,7 @@ export default {
       this.$http.post("https://dev407.33.cn/api/member/brokernewresetpassword",parm)
       .then(response=>{
         console.log(response);
+        alert(response.data.message)
       })
       .catch(error=>{
         console.log(error)