Parcourir la source

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

csx il y a 4 ans
Parent
révision
6536f72991
2 fichiers modifiés avec 14 ajouts et 1 suppressions
  1. 13 0
      src/pages/home/register/register.vue
  2. 1 1
      src/pages/org/index.vue

+ 13 - 0
src/pages/home/register/register.vue Voir le fichier

@@ -97,6 +97,12 @@
97 97
         <span type="primary" @click="callPhone()">拨打</span>
98 98
       </span>
99 99
     </el-dialog>
100
+
101
+    <van-overlay :show="show" type="spinner" size="30px">
102
+      <div class="wrapper">
103
+        <van-loading size="24px" vertical>正在登录...</van-loading>
104
+      </div>
105
+    </van-overlay>
100 106
   </div>
101 107
 </template>
102 108
 
@@ -128,6 +134,7 @@ export default {
128 134
       showMessage:false,
129 135
       checked: true,
130 136
       phone: "",
137
+      show: false,
131 138
       code: "",
132 139
       psd: "",
133 140
       contact: false,
@@ -238,6 +245,7 @@ export default {
238 245
     submitRegister(formName) {
239 246
       this.$refs[formName].validate(valid => {
240 247
         if (valid) {
248
+          this.show = true
241 249
           let params = {
242 250
             mobile: this.registerForm.phone,
243 251
             password: hex_md5(this.registerForm.password),
@@ -245,12 +253,17 @@ export default {
245 253
           };
246 254
           register(params).then(response => {
247 255
             if (response.data.state === 1) {
256
+              this.show = false
248 257
               this.$router.push("/setname");
249 258
             } else {
259
+              this.show = false
260
+
250 261
               this.$toast({
251 262
                 message: response.data.msg
252 263
               });
253 264
             }
265
+          }).catch(error => {
266
+            this.show = false
254 267
           });
255 268
         }
256 269
       });

+ 1 - 1
src/pages/org/index.vue Voir le fichier

@@ -52,7 +52,7 @@
52 52
         <van-field v-model="orgForm.telephone" placeholder="请填写" />
53 53
       </div>
54 54
     </div>
55
-    <div class="create" @click="createOrg()">创建</div>
55
+    <div class="create" @click="createOrg()" >创建</div>
56 56
     <div class="problem">
57 57
       遇到问题?点击
58 58
       <span @click="contact = true">联系客服</span>