|
|
@ -1,11 +1,11 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="login-container">
|
|
|
|
<div class="login-container">
|
|
|
|
|
|
|
|
|
|
|
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
|
|
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="title-container">
|
|
|
|
<div class="title-container">
|
|
|
|
<h3 class="title">{{ $t('login.title') }}</h3>
|
|
|
|
<h3 class="title">
|
|
|
|
<lang-select class="set-language"/>
|
|
|
|
{{ $t('login.title') }}
|
|
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<lang-select class="set-language" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item prop="username">
|
|
|
|
<el-form-item prop="username">
|
|
|
@ -26,18 +26,21 @@
|
|
|
|
<svg-icon icon-class="password" />
|
|
|
|
<svg-icon icon-class="password" />
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
:type="passwordType"
|
|
|
|
|
|
|
|
v-model="loginForm.password"
|
|
|
|
v-model="loginForm.password"
|
|
|
|
|
|
|
|
:type="passwordType"
|
|
|
|
:placeholder="$t('login.password')"
|
|
|
|
:placeholder="$t('login.password')"
|
|
|
|
name="password"
|
|
|
|
name="password"
|
|
|
|
auto-complete="on"
|
|
|
|
auto-complete="on"
|
|
|
|
@keyup.enter.native="handleLogin" />
|
|
|
|
@keyup.enter.native="handleLogin"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<span class="show-pwd" @click="showPwd">
|
|
|
|
<span class="show-pwd" @click="showPwd">
|
|
|
|
<svg-icon icon-class="eye" />
|
|
|
|
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">{{ $t('login.logIn') }}</el-button>
|
|
|
|
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">
|
|
|
|
|
|
|
|
{{ $t('login.logIn') }}
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="position:relative">
|
|
|
|
<div style="position:relative">
|
|
|
|
<div class="tips">
|
|
|
|
<div class="tips">
|
|
|
@ -45,11 +48,15 @@
|
|
|
|
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
|
|
|
|
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tips">
|
|
|
|
<div class="tips">
|
|
|
|
<span style="margin-right:18px;">{{ $t('login.username') }} : editor</span>
|
|
|
|
<span style="margin-right:18px;">
|
|
|
|
|
|
|
|
{{ $t('login.username') }} : editor
|
|
|
|
|
|
|
|
</span>
|
|
|
|
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
|
|
|
|
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-button class="thirdparty-button" type="primary" @click="showDialog=true">{{ $t('login.thirdparty') }}</el-button>
|
|
|
|
<el-button class="thirdparty-button" type="primary" @click="showDialog=true">
|
|
|
|
|
|
|
|
{{ $t('login.thirdparty') }}
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
@ -60,7 +67,6 @@
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<social-sign />
|
|
|
|
<social-sign />
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|