Browse Source

实名认证

panhui 4 years ago
parent
commit
a3bcf67816

+ 8 - 0
src/main/comos/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(() => {

+ 8 - 0
src/main/nine-space/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(() => {