Browse Source

处理邮箱跳转

Administrator 7 years ago
parent
commit
88535b95d5

+ 1 - 0
components/mobile/registerEnterprise/index.vue

@@ -35,6 +35,7 @@
       <div class="f-form">
         <div class="page-part">
           <mt-field placeholder="企业名称"
+                    :attr="{ maxlength: 20 }"
                     v-model="step2.spaceName"
                     :state="state.spaceName"
                     @blur.native.capture="validateSpaceName"></mt-field>

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

@@ -11,7 +11,7 @@
       <div class="page-part">
         <mt-button :disabled="hasSend" size="large"
                    type="primary"
-                   @click="sureAccount('select')"
+                   @click="sureAccount()"
                    v-text="secretEmail">发送验证请求</mt-button>
       </div>
     </div>
@@ -50,13 +50,12 @@
         })
       },
       // 发送邮件
-      sureAccount (type) {
+      sureAccount () {
         this.$indicator.open('发送过程中...')
         this.$http.get(`/sso/resetPwd/check/email`)
           .then(response => {
             this.$indicator.close()
             if (response.data.success) {
-              this.$emit('stepEvent', type)
               this.hasSend = true
               this.secretEmail = '已发送验证邮件,请查收'
             } else {