zhaigk %!s(int64=4) %!d(string=hai) anos
pai
achega
95d17918d6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      front-vue/src/views/login.vue

+ 2 - 2
front-vue/src/views/login.vue

@@ -44,12 +44,12 @@
                             <el-tab-pane label="手机验证码" name="second">
                                 
                                 <el-form-item prop="phone">
-                                    <el-input v-model="loginForm.phone" type="tel" auto-complete="off" placeholder="手机号" style="  width: 260px; ">
+                                    <el-input v-model="loginForm.phone" type="tel" maxlength="11" auto-complete="off" placeholder="手机号" style="  width: 260px; ">
                                         <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
                                     </el-input>
                                 </el-form-item>
                                 <el-form-item prop="cade">
-                                    <el-input v-model="loginForm.cade" type="text" auto-complete="off" placeholder="短信验证码" id="" onkeydown="enterHandler(event)" style="  width: 120px; ">
+                                    <el-input v-model="loginForm.cade" type="text"  maxlength="6" auto-complete="off" placeholder="短信验证码" id="" onkeydown="enterHandler(event)" style="  width: 120px; ">
                                         <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
                                     </el-input>
                                     <el-button :loading="loading" size="min"  type="primary"  style="width: 120px; margin-left:12px">