passport common js/css
Showing
2 changed files
with
58 additions
and
0 deletions
web-static/js/passport/mail-phone-regx.js
0 → 100644
1 | +/** | ||
2 | + * 国家区号Map手机号码以及邮箱验证正则 | ||
3 | + * @author: xuqi<qi.xu@yoho.cn> | ||
4 | + * @date: 2015/12/11 | ||
5 | + */ | ||
6 | + | ||
7 | +var countryPhoneRegx = { | ||
8 | + '+86': /^1[35847]{1}[0-9]{9}$/, | ||
9 | + '+852': /^[965]{1}[0-9]{7}$/, | ||
10 | + '+853': /^[0-9]{8}$/, | ||
11 | + '+886': /^[0-9]{10}$/, | ||
12 | + '+65': /^[98]{1}[0-9]{7}$/, | ||
13 | + '+60': /^1[1234679]{1}[0-9]{8}$/, | ||
14 | + '+1': /^[0-9]{10}$/, | ||
15 | + '+82': /^01[0-9]{9}$/, | ||
16 | + '+44': /^7[789]{1}[0-9]{8}$/, | ||
17 | + '+81': /^0[9|8|7][0-9]{9}$/, | ||
18 | + '+61': /^[0-9]{11}$/ | ||
19 | +}; | ||
20 | + | ||
21 | +var emailRegx = /^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/; | ||
22 | + | ||
23 | +exports.phoneRegx = countryPhoneRegx; | ||
24 | + | ||
25 | +exports.emailRegx = emailRegx; |
@@ -4,6 +4,39 @@ | @@ -4,6 +4,39 @@ | ||
4 | width: 1150px; | 4 | width: 1150px; |
5 | margin-left: auto; | 5 | margin-left: auto; |
6 | margin-right: auto; | 6 | margin-right: auto; |
7 | + | ||
8 | + .content { | ||
9 | + float: left; | ||
10 | + margin-top: 107px; | ||
11 | + padding-left: 85px; | ||
12 | + } | ||
13 | + | ||
14 | + .input { | ||
15 | + height: 43px; | ||
16 | + font-size: 16px; | ||
17 | + line-height: 1.2; | ||
18 | + width: 268px; | ||
19 | + border: 1px solid #dbdbdb; | ||
20 | + text-indent: 10px; | ||
21 | + color: #9a9a9a; | ||
22 | + color: rgba(0,0,0,.5); | ||
23 | + } | ||
24 | + | ||
25 | + .error { | ||
26 | + border-color: #f00 !important; | ||
27 | + } | ||
28 | + | ||
29 | + .btn { | ||
30 | + display: block; | ||
31 | + height: 46px; | ||
32 | + line-height: 46px; | ||
33 | + width: 100%; | ||
34 | + text-align: center; | ||
35 | + color: #fff; | ||
36 | + background-color: #ff1901; | ||
37 | + letter-spacing: 10px; | ||
38 | + font-size: 20px; | ||
39 | + } | ||
7 | } | 40 | } |
8 | 41 | ||
9 | .passport-cover { | 42 | .passport-cover { |
-
Please register or login to post a comment