|
1 | 1 | <template>
|
2 | 2 | <div class="login-container">
|
3 |
| - |
4 | 3 | <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
5 |
| - |
6 | 4 | <div class="title-container">
|
7 |
| - <h3 class="title">{{ $t('login.title') }}</h3> |
8 |
| - <lang-select class="set-language"/> |
| 5 | + <h3 class="title"> |
| 6 | + {{ $t('login.title') }} |
| 7 | + </h3> |
| 8 | + <lang-select class="set-language" /> |
9 | 9 | </div>
|
10 | 10 |
|
11 | 11 | <el-form-item prop="username">
|
|
26 | 26 | <svg-icon icon-class="password" />
|
27 | 27 | </span>
|
28 | 28 | <el-input
|
29 |
| - :type="passwordType" |
30 | 29 | v-model="loginForm.password"
|
| 30 | + :type="passwordType" |
31 | 31 | :placeholder="$t('login.password')"
|
32 | 32 | name="password"
|
33 | 33 | auto-complete="on"
|
34 |
| - @keyup.enter.native="handleLogin" /> |
| 34 | + @keyup.enter.native="handleLogin" |
| 35 | + /> |
35 | 36 | <span class="show-pwd" @click="showPwd">
|
36 |
| - <svg-icon icon-class="eye" /> |
| 37 | + <svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" /> |
37 | 38 | </span>
|
38 | 39 | </el-form-item>
|
39 | 40 |
|
40 |
| - <el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">{{ $t('login.logIn') }}</el-button> |
| 41 | + <el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin"> |
| 42 | + {{ $t('login.logIn') }} |
| 43 | + </el-button> |
41 | 44 |
|
42 | 45 | <div style="position:relative">
|
43 | 46 | <div class="tips">
|
44 | 47 | <span>{{ $t('login.username') }} : admin</span>
|
45 | 48 | <span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
|
46 | 49 | </div>
|
47 | 50 | <div class="tips">
|
48 |
| - <span style="margin-right:18px;">{{ $t('login.username') }} : editor</span> |
| 51 | + <span style="margin-right:18px;"> |
| 52 | + {{ $t('login.username') }} : editor |
| 53 | + </span> |
49 | 54 | <span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
|
50 | 55 | </div>
|
51 | 56 |
|
52 |
| - <el-button class="thirdparty-button" type="primary" @click="showDialog=true">{{ $t('login.thirdparty') }}</el-button> |
| 57 | + <el-button class="thirdparty-button" type="primary" @click="showDialog=true"> |
| 58 | + {{ $t('login.thirdparty') }} |
| 59 | + </el-button> |
53 | 60 | </div>
|
54 | 61 | </el-form>
|
55 | 62 |
|
|
60 | 67 | <br>
|
61 | 68 | <social-sign />
|
62 | 69 | </el-dialog>
|
63 |
| - |
64 | 70 | </div>
|
65 | 71 | </template>
|
66 | 72 |
|
|
0 commit comments