Your Name 6 yıl önce
ebeveyn
işleme
1c197b1f3d
1 değiştirilmiş dosya ile 12 ekleme ve 0 silme
  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)