Selaa lähdekoodia

请求错误提示修改

hangb 7 vuotta sitten
vanhempi
commit
5c32c7371c
28 muutettua tiedostoa jossa 102 lisäystä ja 103 poistoa
  1. 6 6
      components/mobile/changeManager/StepAppeal.vue
  2. 2 2
      components/mobile/changeManager/StepEmail.vue
  3. 4 4
      components/mobile/changeManager/StepMobile.vue
  4. 6 7
      components/mobile/changeManager/StepNew.vue
  5. 2 2
      components/mobile/changeManager/StepSecurity.vue
  6. 2 2
      components/mobile/encryptedSetting/StepEmail.vue
  7. 4 4
      components/mobile/encryptedSetting/StepMobile.vue
  8. 2 2
      components/mobile/encryptedSetting/StepNew.vue
  9. 2 2
      components/mobile/enterpriseCertification/stepOne.vue
  10. 2 2
      components/mobile/realNameCertification/stepOne.vue
  11. 10 10
      components/mobile/registerEnterprise/index.vue
  12. 8 8
      components/mobile/registerPersonal/index.vue
  13. 6 6
      components/mobile/reset/stepAppeal.vue
  14. 2 2
      components/mobile/reset/stepBefore.vue
  15. 2 2
      components/mobile/reset/stepEmail.vue
  16. 2 2
      components/mobile/reset/stepFirst.vue
  17. 4 4
      components/mobile/reset/stepMobile.vue
  18. 2 2
      components/mobile/reset/stepNew.vue
  19. 2 2
      components/mobile/reset/stepSecurity .vue
  20. 6 6
      components/mobile/validation/StepAppeal.vue
  21. 2 2
      components/mobile/validation/ValidationEmailStepEmail.vue
  22. 4 4
      components/mobile/validation/ValidationEmailStepMobile.vue
  23. 4 4
      components/mobile/validation/ValidationEmailStepNew.vue
  24. 2 2
      components/mobile/validation/ValidationEmailStepSecurity.vue
  25. 2 2
      components/mobile/validation/ValidationPhoneStepEmail.vue
  26. 4 4
      components/mobile/validation/ValidationPhoneStepMobile.vue
  27. 6 6
      components/mobile/validation/ValidationPhoneStepNew.vue
  28. 2 2
      components/mobile/validation/ValidationPhoneStepSecurity.vue

+ 6 - 6
components/mobile/changeManager/StepAppeal.vue

@@ -250,8 +250,8 @@
                     })
                     return Promise.reject(response.data)
                   }
-                }).catch(() => {
-                  this.downToast('请检查网络是否正常或联系服务商')
+                }).catch((err) => {
+                  this.downToast(err.errMsg)
                 })
             } else {
               this.downToast('请点击先获取验证码信息')
@@ -288,9 +288,9 @@
                     }
                   }, 1000)
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         }
@@ -497,9 +497,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/changeManager/StepEmail.vue

@@ -62,9 +62,9 @@
               this.hasSend = false
               this.downToast(response.data.errMsg)
             }
-          }).catch(() => {
+          }).catch((err) => {
             this.$indicator.close()
-            this.downToast('请检查网络是否正常或联系服务商')
+            this.downToast(err.errMsg)
           })
       }
     }

+ 4 - 4
components/mobile/changeManager/StepMobile.vue

@@ -109,9 +109,9 @@
                   }
                 }, 1000)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       },
@@ -137,9 +137,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 6 - 7
components/mobile/changeManager/StepNew.vue

@@ -145,10 +145,9 @@
                       message: response.data.errMsg,
                       iconClass: 'el-icon-error'
                     })
-                    return Promise.reject(response.data)
                   }
-                }).catch(() => {
-                  this.downToast('请检查网络是否正常或联系服务商')
+                }).catch((err) => {
+                  this.downToast(err.errMsg)
                 })
             } else {
               this.downToast('请点击先获取验证码信息')
@@ -185,9 +184,9 @@
                     }
                   }, 1000)
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         }
@@ -251,9 +250,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/changeManager/StepSecurity.vue

@@ -107,9 +107,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/encryptedSetting/StepEmail.vue

@@ -62,9 +62,9 @@
               this.hasSend = false
               this.downToast(response.data.errMsg)
             }
-          }).catch(() => {
+          }).catch((err) => {
             this.$indicator.close()
-            this.downToast('请检查网络是否正常或联系服务商')
+            this.downToast(err.errMsg)
           })
       }
     }

+ 4 - 4
components/mobile/encryptedSetting/StepMobile.vue

@@ -109,9 +109,9 @@
                   }
                 }, 1000)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       },
@@ -137,9 +137,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/encryptedSetting/StepNew.vue

@@ -121,9 +121,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/enterpriseCertification/stepOne.vue

@@ -282,9 +282,9 @@
                 } else {
                   this.downToast(response.data.errMsg)
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         }

+ 2 - 2
components/mobile/realNameCertification/stepOne.vue

@@ -114,9 +114,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 10 - 10
components/mobile/registerEnterprise/index.vue

@@ -196,8 +196,8 @@
                       iconClass: 'el-icon-error'
                     })
                   }
-                }).catch(() => {
-                  this.downToast('请检查网络是否正常或联系服务商')
+                }).catch((err) => {
+                  this.downToast(err.errMsg)
                 })
             } else {
               this.downToast('请点击先获取验证码信息')
@@ -234,9 +234,9 @@
                     }
                   }, 1000)
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         }
@@ -265,9 +265,9 @@
                 response.data.content.hasRegister ? this.hasRegister = true : this.hasRegister = false
                 this.step = 2
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       },
@@ -399,8 +399,8 @@
                 } else {
                   this.state.email = 'success'
                 }
-              }).catch(() => {
-                this.downToast('请检查网络是否正常或联系服务商')
+              }).catch((err) => {
+                this.downToast(err.errMsg)
               })
           }
         } else {
@@ -458,9 +458,9 @@
             } else {
               this.downToast(response.data.errMsg)
             }
-          }).catch(() => {
+          }).catch((err) => {
             this.$indicator.close()
-            this.downToast('请检查网络是否正常或联系服务商')
+            this.downToast(err.errMsg)
           })
       },
       // 企业注册

+ 8 - 8
components/mobile/registerPersonal/index.vue

@@ -165,8 +165,8 @@
               } else {
                 this.state.mobile = 'success'
               }
-            }).catch(() => {
-              this.downToast('请检查网络是否正常或联系服务商')
+            }).catch((err) => {
+              this.downToast(err.errMsg)
             })
         }
       },
@@ -198,8 +198,8 @@
                       iconClass: 'el-icon-error'
                     })
                   }
-                }).catch(() => {
-                  this.downToast('请检查网络是否正常或联系服务商')
+                }).catch((err) => {
+                  this.downToast(err.errMsg)
                 })
             } else {
               this.downToast('请点击先获取验证码信息')
@@ -233,9 +233,9 @@
                   }
                 }, 1000)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       },
@@ -308,9 +308,9 @@
                   iconClass: 'el-icon-error'
                 })
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       },

+ 6 - 6
components/mobile/reset/stepAppeal.vue

@@ -166,8 +166,8 @@
                         iconClass: 'el-icon-error'
                       })
                     }
-                  }).catch(() => {
-                    this.downToast('请检查网络是否正常或联系服务商')
+                  }).catch((err) => {
+                    this.downToast(err.errMsg)
                   })
               } else {
                 this.downToast('请点击先获取验证码信息')
@@ -204,9 +204,9 @@
                       }
                     }, 1000)
                   }
-                }).catch(() => {
+                }).catch((err) => {
                   this.$indicator.close()
-                  this.downToast('请检查网络是否正常或联系服务商')
+                  this.downToast(err.errMsg)
                 })
             }
           }
@@ -331,9 +331,9 @@
                 } else {
                   this.downToast(response.data.errMsg)
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         }

+ 2 - 2
components/mobile/reset/stepBefore.vue

@@ -70,9 +70,9 @@
                 } else {
                   this.downToast(response.data.errMsg)
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         }

+ 2 - 2
components/mobile/reset/stepEmail.vue

@@ -62,9 +62,9 @@
               this.hasSend = false
               this.downToast(response.data.errMsg)
             }
-          }).catch(() => {
+          }).catch((err) => {
             this.$indicator.close()
-            this.downToast('请检查网络是否正常或联系服务商')
+            this.downToast(err.errMsg)
           })
       }
     }

+ 2 - 2
components/mobile/reset/stepFirst.vue

@@ -99,9 +99,9 @@
                   this.getCode()
                   this.downToast(response.data.errMsg)
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         },

+ 4 - 4
components/mobile/reset/stepMobile.vue

@@ -92,9 +92,9 @@
                   }
                 }, 1000)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       },
@@ -119,9 +119,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/reset/stepNew.vue

@@ -121,9 +121,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/reset/stepSecurity .vue

@@ -121,9 +121,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 6 - 6
components/mobile/validation/StepAppeal.vue

@@ -161,8 +161,8 @@
                     })
                     return Promise.reject(response.data)
                   }
-                }).catch(() => {
-                  this.downToast('请检查网络是否正常或联系服务商')
+                }).catch((err) => {
+                  this.downToast(err.errMsg)
                 })
             } else {
               this.downToast('请点击先获取验证码信息')
@@ -199,9 +199,9 @@
                     }
                   }, 1000)
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         }
@@ -306,9 +306,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/validation/ValidationEmailStepEmail.vue

@@ -62,9 +62,9 @@
               this.hasSend = false
               this.downToast(response.data.errMsg)
             }
-          }).catch(() => {
+          }).catch((err) => {
             this.$indicator.close()
-            this.downToast('请检查网络是否正常或联系服务商')
+            this.downToast(err.errMsg)
           })
       }
     }

+ 4 - 4
components/mobile/validation/ValidationEmailStepMobile.vue

@@ -109,9 +109,9 @@
                   }
                 }, 1000)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       },
@@ -137,9 +137,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 4 - 4
components/mobile/validation/ValidationEmailStepNew.vue

@@ -66,9 +66,9 @@
                 } else {
                   this.state.email = 'success'
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         }
@@ -88,9 +88,9 @@
                 this.hasSend = false
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/validation/ValidationEmailStepSecurity.vue

@@ -117,9 +117,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/validation/ValidationPhoneStepEmail.vue

@@ -62,9 +62,9 @@
               this.hasSend = false
               this.downToast(response.data.errMsg)
             }
-          }).catch(() => {
+          }).catch((err) => {
             this.$indicator.close()
-            this.downToast('请检查网络是否正常或联系服务商')
+            this.downToast(err.errMsg)
           })
       }
     }

+ 4 - 4
components/mobile/validation/ValidationPhoneStepMobile.vue

@@ -109,9 +109,9 @@
                   }
                 }, 1000)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       },
@@ -137,9 +137,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 6 - 6
components/mobile/validation/ValidationPhoneStepNew.vue

@@ -110,8 +110,8 @@
                     })
                     this.state.token = 'error'
                   }
-                }).catch(() => {
-                  this.downToast('请检查网络是否正常或联系服务商')
+                }).catch((err) => {
+                  this.downToast(err.errMsg)
                 })
             } else {
               this.downToast('请点击先获取验证码信息')
@@ -148,9 +148,9 @@
                     }
                   }, 1000)
                 }
-              }).catch(() => {
+              }).catch((err) => {
                 this.$indicator.close()
-                this.downToast('请检查网络是否正常或联系服务商')
+                this.downToast(err.errMsg)
               })
           }
         }
@@ -177,9 +177,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }

+ 2 - 2
components/mobile/validation/ValidationPhoneStepSecurity.vue

@@ -117,9 +117,9 @@
               } else {
                 this.downToast(response.data.errMsg)
               }
-            }).catch(() => {
+            }).catch((err) => {
               this.$indicator.close()
-              this.downToast('请检查网络是否正常或联系服务商')
+              this.downToast(err.errMsg)
             })
         }
       }