Sfoglia il codice sorgente

注册时禁止填充账号密码

zhangxc 6 anni fa
parent
commit
c8dd5eb0ca
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/components/register/Register.vue

+ 2 - 2
src/components/register/Register.vue

@@ -27,8 +27,8 @@
                                @blur="checkPhone" placeholder="请输入手机号">
 							<span class="tips" v-show="phoneErrText">{{phoneErrText}}</span>
 						</div>
-                        <div class="phoneBox">
-                        	<input type="password" :class="[{ 'error': pswErrText}]" name="" v-model="psw" minlength="6" maxlength="16" @blur="checkPsw" placeholder="请输入密码">
+              <div class="phoneBox">
+                <input type="password" :class="[{ 'error': pswErrText}]" name="" v-model="psw" minlength="6" maxlength="16" readonly onfocus="this.removeAttribute('readonly')" @blur="checkPsw" placeholder="请输入密码">
 							<span class="tips" v-show="pswErrText">{{pswErrText}}</span>
 						</div>