浏览代码

注册时禁止填充账号密码

zhangxc 6 年之前
父节点
当前提交
c8dd5eb0ca
共有 1 个文件被更改,包括 2 次插入2 次删除
  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>