perf: 注册页面增加密码格式提醒

This commit is contained in:
Mr.Huan 2022-01-24 11:54:47 +08:00
parent e686e8f58c
commit 25cb8015d0
2 changed files with 19 additions and 3 deletions

View File

@ -13,7 +13,15 @@
<Input v-if="$Electron && cacheServerUrl" :value="$A.getDomain(cacheServerUrl)" prefix="ios-globe-outline" size="large" readonly clearable @on-clear="clearServerUrl"/>
<Input v-model="email" prefix="ios-mail-outline" :placeholder="$L('输入您的电子邮件')" size="large" @on-enter="onLogin" @on-blur="onBlur" />
<Input v-model="password" prefix="ios-lock-outline" :placeholder="$L('输入您的密码')" type="password" size="large" @on-enter="onLogin" />
<Input v-if="loginType=='login'"
v-model="password" prefix="ios-lock-outline" :placeholder="$L('输入您的密码')" type="password"
size="large"
@on-enter="onLogin" />
<Poptip v-else :content="$L('密码必须包含数字字母大小写或者特殊字符的组合长度在6~32位之间')" :transfer="true">
<Input v-model="password" prefix="ios-lock-outline" :placeholder="$L('输入您的密码')" type="password"
size="large"
@on-enter="onLogin" />
</Poptip>
<Input v-if="loginType=='reg'" v-model="password2" prefix="ios-lock-outline" :placeholder="$L('输入确认密码')" type="password" size="large" @on-enter="onLogin" />
<Input v-if="loginType=='reg' && needInvite" v-model="invite" class="login-code" :placeholder="$L('请输入注册邀请码')" type="text" size="large" @on-enter="onLogin"><span slot="prepend">&nbsp;{{$L('邀请码')}}&nbsp;</span></Input>
@ -268,7 +276,10 @@ export default {
});
}).catch(({data, msg}) => {
this.loadIng--;
$A.noticeError(msg);
$A.noticeError({
desc: msg,
duration: 10
});
if (data.code === 'need') {
this.reCode();
this.codeNeed = true;

View File

@ -89,7 +89,12 @@
color: #c7c7c7;
}
}
> .ivu-poptip {
width: 100%;
> .ivu-poptip-rel {
width: 100%;
}
}
}
}
.login-bottom {