Showing
16 changed files
with
25 additions
and
9 deletions
@@ -20,12 +20,18 @@ | @@ -20,12 +20,18 @@ | ||
20 | <li class="relative"> | 20 | <li class="relative"> |
21 | <input id="account" class="account input va" name="account" type="text" placeholder="邮箱/手机号码" autocomplete="off"> | 21 | <input id="account" class="account input va" name="account" type="text" placeholder="邮箱/手机号码" autocomplete="off"> |
22 | <ul id="email-autocomplete" class="email-autocomplete hide"></ul> | 22 | <ul id="email-autocomplete" class="email-autocomplete hide"></ul> |
23 | - <span class="err-tip hide"></span> | 23 | + <span class="err-tip hide"> |
24 | + <i></i> | ||
25 | + <em></em> | ||
26 | + </span> | ||
24 | </li> | 27 | </li> |
25 | <li class="relative"> | 28 | <li class="relative"> |
26 | <input id="password" class="password input va" name="password" type="text" placeholder="密码" autocomplete="off" maxlength="20"> | 29 | <input id="password" class="password input va" name="password" type="text" placeholder="密码" autocomplete="off" maxlength="20"> |
27 | <span id="caps-lock" class="caps-lock hide">大写状态开启</span> | 30 | <span id="caps-lock" class="caps-lock hide">大写状态开启</span> |
28 | - <span class="err-tip hide">请输入密码</span> | 31 | + <span class="err-tip hide"> |
32 | + <i></i> | ||
33 | + <em>请输入密码</em> | ||
34 | + </span> | ||
29 | </li> | 35 | </li> |
30 | <li> | 36 | <li> |
31 | <span id="login-btn" class="login-btn btn">登录</span> | 37 | <span id="login-btn" class="login-btn btn">登录</span> |
web-static/img/passport/tip-saf0e57100e.png
0 → 100644
![](/fe/YOHOBUYWAP/raw/273037c3c5c661d99ce12532ec24acab376f667e/web-static/img/passport/tip-saf0e57100e.png)
1.3 KB
web-static/img/passport/tip/block.png
0 → 100644
![](/fe/YOHOBUYWAP/raw/273037c3c5c661d99ce12532ec24acab376f667e/web-static/img/passport/tip/block.png)
1.33 KB
web-static/img/passport/tip/error.png
0 → 100644
![](/fe/YOHOBUYWAP/raw/273037c3c5c661d99ce12532ec24acab376f667e/web-static/img/passport/tip/error.png)
1.18 KB
web-static/img/passport/tip/info.png
0 → 100644
![](/fe/YOHOBUYWAP/raw/273037c3c5c661d99ce12532ec24acab376f667e/web-static/img/passport/tip/info.png)
1.2 KB
web-static/img/passport/tip/success.png
0 → 100644
![](/fe/YOHOBUYWAP/raw/273037c3c5c661d99ce12532ec24acab376f667e/web-static/img/passport/tip/success.png)
1.21 KB
web-static/img/passport/tip/warn.png
0 → 100644
![](/fe/YOHOBUYWAP/raw/273037c3c5c661d99ce12532ec24acab376f667e/web-static/img/passport/tip/warn.png)
1.17 KB
@@ -65,7 +65,7 @@ function validateAccount() { | @@ -65,7 +65,7 @@ function validateAccount() { | ||
65 | $accountTip.addClass('hide'); | 65 | $accountTip.addClass('hide'); |
66 | $account.removeClass('error'); | 66 | $account.removeClass('error'); |
67 | } else { | 67 | } else { |
68 | - $accountTip.text(err).removeClass('hide'); | 68 | + $accountTip.removeClass('hide').children('em').text(err); |
69 | $account.addClass('error'); | 69 | $account.addClass('error'); |
70 | } | 70 | } |
71 | return pass; | 71 | return pass; |
@@ -91,7 +91,7 @@ function validatePassword() { | @@ -91,7 +91,7 @@ function validatePassword() { | ||
91 | $passwordTip.addClass('hide'); | 91 | $passwordTip.addClass('hide'); |
92 | $password.removeClass('error'); | 92 | $password.removeClass('error'); |
93 | } else { | 93 | } else { |
94 | - $passwordTip.text(err).removeClass('hide'); | 94 | + $passwordTip.removeClass('hide').children('em').text(err); |
95 | $password.addClass('error'); | 95 | $password.addClass('error'); |
96 | } | 96 | } |
97 | } | 97 | } |
@@ -111,11 +111,11 @@ function validate() { | @@ -111,11 +111,11 @@ function validate() { | ||
111 | if (password === '') { | 111 | if (password === '') { |
112 | 112 | ||
113 | //账户名和密码都为空的情况下点击登陆,只在账户输入框后显示错误提示 | 113 | //账户名和密码都为空的情况下点击登陆,只在账户输入框后显示错误提示 |
114 | - $accountTip.addClass('both-error').text('请输入账户名和密码').removeClass('hide'); | 114 | + $accountTip.addClass('both-error').removeClass('hide').children('em').text('请输入账户名和密码'); |
115 | $passwordTip.addClass('hide'); | 115 | $passwordTip.addClass('hide'); |
116 | $password.addClass('error'); | 116 | $password.addClass('error'); |
117 | } else { | 117 | } else { |
118 | - $accountTip.text('请输入账户名').removeClass('hide'); | 118 | + $accountTip.removeClass('hide').children('em').text('请输入账户名'); |
119 | } | 119 | } |
120 | } | 120 | } |
121 | 121 |
1 | @import "login", "register", "back"; | 1 | @import "login", "register", "back"; |
2 | 2 | ||
3 | +$tip: sprite-map("passport/tip/*.png", $spacing: 10px); | ||
4 | + | ||
3 | .passport-page { | 5 | .passport-page { |
4 | width: 1150px; | 6 | width: 1150px; |
5 | margin-left: auto; | 7 | margin-left: auto; |
@@ -45,8 +47,17 @@ | @@ -45,8 +47,17 @@ | ||
45 | white-space: nowrap; | 47 | white-space: nowrap; |
46 | top: 8px; | 48 | top: 8px; |
47 | left: 285px; | 49 | left: 285px; |
48 | - padding: 6px 0 6px 20px; | 50 | + padding: 6px 0; |
49 | color: #f00; | 51 | color: #f00; |
52 | + | ||
53 | + i { | ||
54 | + display: block; | ||
55 | + float: left; | ||
56 | + height: 14px; | ||
57 | + width: 14px; | ||
58 | + background: sprite($tip, error) no-repeat; | ||
59 | + margin-right: 5px; | ||
60 | + } | ||
50 | } | 61 | } |
51 | } | 62 | } |
52 | 63 |
-
Please register or login to post a comment