Explorar el Código

实名认证双击

panhui hace 4 años
padre
commit
4c1e8866b2
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      src/views/account/Verified.vue

+ 8 - 0
src/views/account/Verified.vue

@@ -157,6 +157,10 @@ export default {
             this.$refs.form
                 .validate()
                 .then(() => {
+                    this.$toast.loading({
+                        message: '加载中...',
+                        forbidClick: true
+                    });
                     let form = { ...this.form };
                     form.userId = this.userInfo.id;
                     form.status = 'PENDING';
@@ -166,7 +170,11 @@ export default {
                             ...form
                         })
                         .then(() => {
+                            this.$toast.clear();
                             this.$router.replace('/Waiting');
+                        })
+                        .catch(() => {
+                            this.$toast.clear();
                         });
                 })
                 .catch(() => {