Signed-off-by: gaoyuheng <gaoyuheng@yuheng.hl.cn>
This commit is contained in:
240
admin/skin/login/css/style.css
Normal file
240
admin/skin/login/css/style.css
Normal file
@@ -0,0 +1,240 @@
|
||||
html {
|
||||
|
||||
}
|
||||
body {
|
||||
font-family:"Microsoft Yahei";
|
||||
font-size:12px;
|
||||
margin:0;
|
||||
background: #fff url(../images/1.jpg) 50% 0 no-repeat;}
|
||||
ul {
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
ul li {
|
||||
list-style-type:none;
|
||||
}
|
||||
a {
|
||||
text-decoration:none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration:none;color:#f00;
|
||||
}
|
||||
.cl{ clear: both;}
|
||||
input[type="text"]:focus, input[type="password"]:focus {
|
||||
outline:none;
|
||||
}
|
||||
input::-ms-clear {
|
||||
display:none;
|
||||
}
|
||||
.login {
|
||||
margin:0 auto;
|
||||
width:370px;
|
||||
border:2px solid #eee;
|
||||
border-bottom:none;
|
||||
position:relative;
|
||||
}
|
||||
.header {
|
||||
height:50px;
|
||||
border-bottom:1px solid #e2e2e2;
|
||||
position:relative;
|
||||
font-family:"Microsoft Yahei";
|
||||
}
|
||||
.header .switch {
|
||||
height:45px;
|
||||
position:absolute;
|
||||
left:60px;
|
||||
bottom:0;
|
||||
font-size:16px;
|
||||
}
|
||||
.header .switch #switch_qlogin {
|
||||
margin-right:85px;
|
||||
}
|
||||
.header .switch .switch_btn {
|
||||
color:#999;
|
||||
display:inline-block;
|
||||
height:45px;
|
||||
line-height:45px;
|
||||
outline:none;
|
||||
*hide-focus:expression(this.hideFocus=true);
|
||||
}
|
||||
.header .switch .switch_btn_focus {
|
||||
color:#333;
|
||||
display:inline-block;
|
||||
height:45px;
|
||||
line-height:45px;
|
||||
outline:none;
|
||||
*hide-focus:expression(this.hideFocus=true);
|
||||
}
|
||||
.header .switch .switch_btn:hover {
|
||||
color:#333;
|
||||
text-decoration:none;
|
||||
}
|
||||
.header .switch .switch_btn_focus:hover {
|
||||
text-decoration:none;
|
||||
}
|
||||
#switch_bottom {
|
||||
position:absolute;
|
||||
bottom:-1px;_bottom:-2px;
|
||||
border-bottom:2px solid #848484;
|
||||
}
|
||||
|
||||
.web_login {
|
||||
width:370px;
|
||||
position:relative;
|
||||
}
|
||||
#web_login{_left:60px;*left:0;}
|
||||
.web_login .login_form {
|
||||
width:272px;
|
||||
margin:0 auto;
|
||||
}
|
||||
.web_login .reg_form {
|
||||
width:300px;
|
||||
margin:0 auto;
|
||||
}
|
||||
.web_login .input-tips {
|
||||
float:left;
|
||||
margin-top:10px;
|
||||
width:50px;
|
||||
height:42px;
|
||||
font-size:16px;
|
||||
line-height:42px;
|
||||
font-family:"Hiragino Sans GB", "Microsoft Yahei";
|
||||
}
|
||||
.web_login .input-tips2 {
|
||||
float:left;
|
||||
text-align:right;
|
||||
padding-right:10px;
|
||||
width:75px;
|
||||
height:30px;
|
||||
font-size:16px;
|
||||
margin-top:10px;
|
||||
clear:both;
|
||||
line-height:30px;
|
||||
font-family:"Hiragino Sans GB", "Microsoft Yahei";
|
||||
}
|
||||
.web_login .inputOuter {
|
||||
width:200px;
|
||||
height:42px;
|
||||
margin-top:10px;
|
||||
float:left;
|
||||
|
||||
}
|
||||
.web_login .inputOuter2 {
|
||||
width:200px;
|
||||
margin-top:6px;margin-top:5px\9;
|
||||
float:left;
|
||||
|
||||
}
|
||||
.web_login .inputstyle {
|
||||
width:200px;
|
||||
height:38px;
|
||||
padding-left:5px;
|
||||
line-height:30px;line-height:38px;
|
||||
border:1px solid #D7D7D7;
|
||||
background:#fff;
|
||||
color:#333;border-radius:2px;
|
||||
font-family:Verdana, Tahoma, Arial;
|
||||
font-size:16px;
|
||||
ime-mode:disabled;
|
||||
}
|
||||
.web_login input.inputstyle2:focus,.web_login input.inputstyle:focus{border:1px solid #198BD4;box-shadow:0 0 2px #198BD4;}
|
||||
.web_login .inputstyle2 {
|
||||
width:200px;
|
||||
height:34px;
|
||||
padding-left:5px;
|
||||
line-height:34px;
|
||||
border:1px solid #D7D7D7;
|
||||
background:#fff;
|
||||
color:#333;border-radius:2px;
|
||||
font-family:Verdana, Tahoma, Arial;
|
||||
font-size:16px;
|
||||
ime-mode:disabled;
|
||||
}
|
||||
.web_login .uinArea {
|
||||
height:55px;
|
||||
position:relative;
|
||||
z-index:10;
|
||||
}
|
||||
.web_login .pwdArea {
|
||||
height:55px;
|
||||
margin-bottom:10px;
|
||||
position:relative;
|
||||
z-index:3;
|
||||
}
|
||||
.web_qr_login {
|
||||
position:relative;
|
||||
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
.cue {
|
||||
height:40px;
|
||||
line-height:40px;
|
||||
font-size:14px;
|
||||
border:1px #CCCCCC solid;
|
||||
margin-top:10px;margin-bottom:5px;
|
||||
text-align:center;
|
||||
font-family:"Hiragino Sans GB", "Microsoft Yahei";
|
||||
}
|
||||
.login {
|
||||
background-color:#ffffff;
|
||||
}
|
||||
|
||||
h1{margin:80px auto 50px auto;text-align:center;color:#fff;margin-left:-25px;font-size:35px;font-weight: bold;text-shadow: 0px 1px 1px #555;}
|
||||
h1 sup{
|
||||
font-size: 18px;
|
||||
font-style: normal;
|
||||
position: absolute;
|
||||
margin-left: 10px;}
|
||||
.login {border:0;padding:5px 0;
|
||||
background: #fff;
|
||||
margin: 0 auto;
|
||||
-webkit-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, .3);
|
||||
box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, .3);}
|
||||
|
||||
.web_login{padding-bottom:20px;}
|
||||
|
||||
.jianyi{color:#fff;text-align:center;margin-top:25px;color:#B3B8C4;}
|
||||
.reg_form li {
|
||||
height: 55px;
|
||||
}
|
||||
.cue {
|
||||
margin-top: 15px;
|
||||
margin-bottom: 10px;border:1px solid #eee;border-radius:3px;
|
||||
}
|
||||
.web_login input.inputstyle2:focus, .web_login input.inputstyle:focus {
|
||||
border: 1px solid #5796f;
|
||||
box-shadow: 0 0 0;
|
||||
}
|
||||
.web_login .reg_form {
|
||||
width: 300px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.web_login .inputstyle2 {border-radius:2px;width:210px;}
|
||||
.web_login .input-tips2 {
|
||||
padding-right: 5px;
|
||||
width: 80px;_width: 75px;_font-size:12px;}
|
||||
.button_blue
|
||||
{
|
||||
display:inline-block;
|
||||
float:left;
|
||||
height:41px;border-radius:4px;
|
||||
background:#2795dc;border:none;cursor:pointer;
|
||||
border-bottom:3px solid #0078b3;*border-bottom:none;
|
||||
color:#fff;
|
||||
font-size:16px;padding:0 10px;*width:140px;
|
||||
text-align:center;outline:none;font-family: "Microsoft Yahei",Arial, Helvetica, sans-serif;
|
||||
}
|
||||
input.button_blue:hover
|
||||
{
|
||||
background:#0081c1;
|
||||
border-bottom:3px solid #006698;*border-bottom:none;
|
||||
color:#fff;
|
||||
text-decoration:none;
|
||||
}
|
||||
a.zcxy {text-decoration: underline;line-height:58px;margin-left:15px;color: #959ca8;}
|
||||
.web_login .login_form {margin-top:30px;}
|
||||
.web_login .uinArea {
|
||||
height: 60px;}
|
||||
.header .switch{left:70px;}
|
||||
|
||||
BIN
admin/skin/login/images/1.jpg
Normal file
BIN
admin/skin/login/images/1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 525 KiB |
BIN
admin/skin/login/images/2.jpg
Normal file
BIN
admin/skin/login/images/2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 178 KiB |
140
admin/skin/login/images/login.js
Normal file
140
admin/skin/login/images/login.js
Normal file
@@ -0,0 +1,140 @@
|
||||
$(function(){
|
||||
|
||||
$('#switch_qlogin').click(function(){
|
||||
$('#switch_login').removeClass("switch_btn_focus").addClass('switch_btn');
|
||||
$('#switch_qlogin').removeClass("switch_btn").addClass('switch_btn_focus');
|
||||
$('#switch_bottom').animate({left:'0px',width:'70px'});
|
||||
$('#qlogin').css('display','none');
|
||||
$('#web_qr_login').css('display','block');
|
||||
|
||||
});
|
||||
$('#switch_login').click(function(){
|
||||
|
||||
$('#switch_login').removeClass("switch_btn").addClass('switch_btn_focus');
|
||||
$('#switch_qlogin').removeClass("switch_btn_focus").addClass('switch_btn');
|
||||
$('#switch_bottom').animate({left:'154px',width:'70px'});
|
||||
|
||||
$('#qlogin').css('display','block');
|
||||
$('#web_qr_login').css('display','none');
|
||||
});
|
||||
if(getParam("a")=='0')
|
||||
{
|
||||
$('#switch_login').trigger('click');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function logintab(){
|
||||
scrollTo(0);
|
||||
$('#switch_qlogin').removeClass("switch_btn_focus").addClass('switch_btn');
|
||||
$('#switch_login').removeClass("switch_btn").addClass('switch_btn_focus');
|
||||
$('#switch_bottom').animate({left:'154px',width:'96px'});
|
||||
$('#qlogin').css('display','none');
|
||||
$('#web_qr_login').css('display','block');
|
||||
|
||||
}
|
||||
|
||||
|
||||
//根据参数名获得该参数 pname等于想要的参数名
|
||||
function getParam(pname) {
|
||||
var params = location.search.substr(1); // 获取参数 平且去掉?
|
||||
var ArrParam = params.split('&');
|
||||
if (ArrParam.length == 1) {
|
||||
//只有一个参数的情况
|
||||
return params.split('=')[1];
|
||||
}
|
||||
else {
|
||||
//多个参数参数的情况
|
||||
for (var i = 0; i < ArrParam.length; i++) {
|
||||
if (ArrParam[i].split('=')[0] == pname) {
|
||||
return ArrParam[i].split('=')[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var reMethod = "GET",
|
||||
pwdmin = 6;
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
$('#reg').click(function() {
|
||||
|
||||
if ($('#user').val() == "") {
|
||||
$('#user').focus().css({
|
||||
border: "1px solid red",
|
||||
boxShadow: "0 0 2px red"
|
||||
});
|
||||
$('#userCue').html("<font color='red'><b>×用户名不能为空</b></font>");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($('#user').val().length < 4 || $('#user').val().length > 16) {
|
||||
|
||||
$('#user').focus().css({
|
||||
border: "1px solid red",
|
||||
boxShadow: "0 0 2px red"
|
||||
});
|
||||
$('#userCue').html("<font color='red'><b>×用户名位4-16字符</b></font>");
|
||||
return false;
|
||||
|
||||
}
|
||||
$.ajax({
|
||||
type: reMethod,
|
||||
url: "/member/ajaxyz.php",
|
||||
data: "uid=" + $("#user").val() + '&temp=' + new Date(),
|
||||
dataType: 'html',
|
||||
success: function(result) {
|
||||
|
||||
if (result.length > 2) {
|
||||
$('#user').focus().css({
|
||||
border: "1px solid red",
|
||||
boxShadow: "0 0 2px red"
|
||||
});$("#userCue").html(result);
|
||||
return false;
|
||||
} else {
|
||||
$('#user').css({
|
||||
border: "1px solid #D7D7D7",
|
||||
boxShadow: "none"
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if ($('#passwd').val().length < pwdmin) {
|
||||
$('#passwd').focus();
|
||||
$('#userCue').html("<font color='red'><b>×密码不能小于" + pwdmin + "位</b></font>");
|
||||
return false;
|
||||
}
|
||||
if ($('#passwd2').val() != $('#passwd').val()) {
|
||||
$('#passwd2').focus();
|
||||
$('#userCue').html("<font color='red'><b>×两次密码不一致!</b></font>");
|
||||
return false;
|
||||
}
|
||||
|
||||
var sqq = /^[1-9]{1}[0-9]{4,9}$/;
|
||||
if (!sqq.test($('#qq').val()) || $('#qq').val().length < 5 || $('#qq').val().length > 12) {
|
||||
$('#qq').focus().css({
|
||||
border: "1px solid red",
|
||||
boxShadow: "0 0 2px red"
|
||||
});
|
||||
$('#userCue').html("<font color='red'><b>×QQ号码格式不正确</b></font>");return false;
|
||||
} else {
|
||||
$('#qq').css({
|
||||
border: "1px solid #D7D7D7",
|
||||
boxShadow: "none"
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
$('#regUser').submit();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
4
admin/skin/login/js/jquery-1.9.0.min.js
vendored
Normal file
4
admin/skin/login/js/jquery-1.9.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user