登录 注册
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
<div class="slider">
|
||||
<ul id="ulList" style="width: 13800px;left:0px">
|
||||
<li><div class="picture1"></div></li>
|
||||
<li><div class="picture45"></div></li>
|
||||
<li><div class="picture2"></div></li>
|
||||
<li><div class="picture3"></div></li>
|
||||
<li><div class="picture4"></div></li>
|
||||
@@ -119,7 +120,6 @@
|
||||
<li><div class="picture42"></div></li>
|
||||
<li><div class="picture43"></div></li>
|
||||
<li><div class="picture44"></div></li>
|
||||
<li><div class="picture45"></div></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="arrow_right" onclick="get_next()" id="btn2"></div>
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<meta name="description" content="">
|
||||
<#include "../jsconstants.ftl" />
|
||||
|
||||
<link href="${staticUrl}/style/fangjia/v5/common.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v5/user.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v6/common.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v6/login.css?v=${version}" rel="stylesheet">
|
||||
<script src="${staticUrl}/js/fangjia/v5/jquery-1.7.2.min.js?v=${version}"></script>
|
||||
<style>
|
||||
|
||||
@@ -57,13 +57,7 @@
|
||||
|
||||
<body>
|
||||
|
||||
<div class="header">
|
||||
<div>
|
||||
<div class="logo">
|
||||
<a href="${wwwUrl}"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#include "/header/v6/_header.ftl"/>
|
||||
|
||||
<div class="main">
|
||||
<div class="main_left mobile01">
|
||||
@@ -74,7 +68,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_right">
|
||||
<div class="user">
|
||||
<div class="user00">
|
||||
<ul class="tab">
|
||||
<li class="tab01 current">密码登录</li>
|
||||
<li class="tab02">验证码登录</li>
|
||||
@@ -82,58 +76,58 @@
|
||||
<div class="content content01">
|
||||
<div class="inputInfoBox">
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls2_01">账</a><a class="ls2_02">号</a></label>
|
||||
<label><a class="login_ls2_01">账</a><a class="login_ls2_02">号</a></label>
|
||||
<input id="input_mobileEmailNumber" class="inpu" type="text" autocomplete="off" placeholder="请输入手机号码或邮箱">
|
||||
<div class="error dn name_err"></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls2_01">密</a><a class="ls2_02">码</a></label>
|
||||
<label><a class="login_ls2_01">密</a><a class="login_ls2_02">码</a></label>
|
||||
<input type="password" id="input_password1" class="inpu" type="text" autocomplete="off" placeholder="请输入密码">
|
||||
<div class="error dn pass_err"></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls3_01">图形</a><a class="ls3_02">码</a></label>
|
||||
<label><a class="login_ls3_01">图形</a><a class="login_ls3_02">码</a></label>
|
||||
<input id="image_input_code" class="inpu inpu01" type="text" autocomplete="off" placeholder="请输入图形验证码">
|
||||
<div class="codeImg"></div>
|
||||
<a class="refresh">刷新</a>
|
||||
<a class="login_refresh">刷新</a>
|
||||
<div class="error dn imgcode_err"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="option">
|
||||
<div class="rememberPassword">
|
||||
<div class="rememberPassword" style="margin-left: 12px;">
|
||||
<i id="checkSavePass" class="check"></i>
|
||||
<span>记住密码</span>
|
||||
</div>
|
||||
<div class="forgetPassword"><a href="${wwwUrl}/user/password">忘记密码?</a></div>
|
||||
</div>
|
||||
<a class="user_btn" id="emailAndMobileLogin">登录</a>
|
||||
<div class="line"><span>或</span></div>
|
||||
<a class="login_user_btn" id="emailAndMobileLogin">登录</a>
|
||||
<div class="line" style="width: 586px;"><span>或</span></div>
|
||||
<p class="link">新用户<a href="${wwwUrl}/user/register">注册</a></p>
|
||||
</div>
|
||||
<div class="content content02 dn">
|
||||
<div class="inputInfoBox">
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls2_01">账</a><a class="ls2_02">号</a></label>
|
||||
<label><a class="login_ls2_01">账</a><a class="login_ls2_02">号</a></label>
|
||||
<input id="input_mobileNumber" class="inpu" type="text" autocomplete="off" placeholder="请输入手机号码">
|
||||
<div class="error dn mobile_err"></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls3_01">图形</a><a class="ls3_02">码</a></label>
|
||||
<label><a class="login_ls3_01">图形</a><a class="login_ls3_02">码</a></label>
|
||||
<input id="image_input_code2" class="inpu inpu01" type="text" autocomplete="off" placeholder="请输入图形验证码">
|
||||
<div class="codeImg"></div>
|
||||
<a class="refresh">刷新</a>
|
||||
<a class="login_refresh">刷新</a>
|
||||
<div class="error dn m_img_err"></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls3_01">短信</a><a class="ls3_02">码</a></label>
|
||||
<label><a class="login_ls3_01">短信</a><a class="login_ls3_02">码</a></label>
|
||||
<input id="smsCodeInput" class="inpu inpu01" type="text" autocomplete="off" placeholder="请输入短信验证码">
|
||||
<a class="change_btn sendCode_before" id="sendCode">发送验证码</a>
|
||||
<a class="change_btn waiting dn">60s</a>
|
||||
<div class="error dn sms_code_err"></div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="user_btn" id="smslogin">登录</a>
|
||||
<div class="line"><span>或</span></div>
|
||||
<a class="login_user_btn" id="smslogin">登录</a>
|
||||
<div class="line" style="width: 586px;"><span>或</span></div>
|
||||
<p class="link">新用户<a href="${wwwUrl}/user/register">注册</a></p>
|
||||
<p class="note">如果您不是通过手机注册的用户,请直接致电客服找回密码<br>客服热线:4001883787</p>
|
||||
</div>
|
||||
@@ -141,7 +135,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer2.ftl"/>
|
||||
<#include "/header/v6/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/security.min.js?v=${version}"></script>
|
||||
<script src="${staticUrl}/js/fangjia/fangjia_login.min.js?v=${version}"></script>
|
||||
@@ -156,7 +150,7 @@
|
||||
var useLoginType = "page";
|
||||
var basePath = "${basePath!}";
|
||||
</script>
|
||||
<script src="${staticUrl}/js/fangjia/v5/login.js?v=${version}"></script>
|
||||
<script src="${staticUrl}/js/fangjia/v6/login.js?v=${version}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<meta name="description" content="">
|
||||
<#include "../jsconstants.ftl" />
|
||||
|
||||
<link href="${staticUrl}/style/fangjia/v5/common.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v5/user.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v6/common.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v6/login.css?v=${version}" rel="stylesheet">
|
||||
<script src="${staticUrl}/js/fangjia/v5/jquery-1.7.2.min.js?v=${version}"></script>
|
||||
|
||||
<script>
|
||||
@@ -29,7 +29,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<#include "/header/v6/_header.ftl"/>
|
||||
<div class="header">
|
||||
<div>
|
||||
<div class="logo">
|
||||
@@ -57,7 +57,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
<#include "/header/v6/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<meta name="description" content="注册全国最专业全面的房产大数据服务平台房价网。">
|
||||
<#include "../jsconstants.ftl" />
|
||||
|
||||
<link href="${staticUrl}/style/fangjia/v5/common.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v5/user.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v6/common.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v6/login.css?v=${version}" rel="stylesheet">
|
||||
<script src="${staticUrl}/js/fangjia/v5/jquery-1.7.2.min.js?v=${version}"></script>
|
||||
|
||||
<script>
|
||||
@@ -55,6 +55,8 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<#include "/header/v6/_header.ftl"/>
|
||||
<div class="header">
|
||||
<div>
|
||||
<div class="logo">
|
||||
@@ -72,51 +74,51 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_right">
|
||||
<div class="user user01">
|
||||
<div class="user00">
|
||||
<ul class="tab">
|
||||
<li class="tab03">欢迎注册房价网</li>
|
||||
<li class="tab03" style="width: 586px;">欢迎注册房价网</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
<div class="inputInfoBox">
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls2_01">账</a><a class="ls2_02">号</a></label>
|
||||
<label><a class="login_ls2_01">账</a><a class="login_ls2_02">号</a></label>
|
||||
<input class="inpu input_mobileNumber" type="text" autocomplete="off" placeholder="请输入手机号码">
|
||||
<div class="error dn mobile_err"></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls3_01">图形</a><a class="ls3_02">码</a></label>
|
||||
<label><a class="login_ls3_01">图形</a><a class="login_ls3_02">码</a></label>
|
||||
<input id="image_input_code" class="inpu inpu01" type="text" autocomplete="off" placeholder="请输入图形验证码">
|
||||
<div class="codeImg"></div>
|
||||
<a class="refresh">刷新</a>
|
||||
<a class="login_refresh">刷新</a>
|
||||
<div class="error dn imgcode_err"></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls3_01">短信</a><a class="ls3_02">码</a></label>
|
||||
<label><a class="login_ls3_01">短信</a><a class="login_ls3_02">码</a></label>
|
||||
<input class="inpu inpu01 input_code" type="text" autocomplete="off" placeholder="请输入短信验证码">
|
||||
<a class="change_btn" id="sendCode">发送验证码</a>
|
||||
<a class="change_btn waiting dn">60s</a>
|
||||
<div class="error dn smscode_err"></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label><a class="ls2_01">密</a><a class="ls2_02">码</a></label>
|
||||
<label><a class="login_ls2_01">密</a><a class="login_ls2_02">码</a></label>
|
||||
<input class="inpu input_password" type="password" autocomplete="off" placeholder="请输入密码">
|
||||
<div class="error dn pass_err"></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label>确认密码</label>
|
||||
<input class="inpu input_password_repeat" type="password" autocomplete="off" placeholder="请输入密码">
|
||||
<label><a class="login_ls2_02">确认密码</a></label>
|
||||
<input class="inpu input_password_repeat" type="password" autocomplete="off" placeholder="请输入密码" style="margin-left: -10px;">
|
||||
<div class="error dn reppass_err"><i></i>两次密码不一致</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="option">
|
||||
<div class="agreement">
|
||||
<div class="agreement" style="margin-left: 12px;">
|
||||
<div class="error dn agree_err"><i></i>请勾选《用户协议》</div>
|
||||
<i class="check checked agreeCheck"></i>
|
||||
<span>我已阅读并接受<a href="${wwwUrl}/terms/agreement" target="_blank">《用户协议》</a></span>
|
||||
</div>
|
||||
</div>
|
||||
<a class="user_btn confirm_btn">注册</a>
|
||||
<div class="line"><span>或</span></div>
|
||||
<a class="login_user_btn confirm_btn">注册</a>
|
||||
<div class="line" style="width: 586px;"><span>或</span></div>
|
||||
<p class="link">已有账户?请直接<a href="${wwwUrl}/user/login">登录</a></p>
|
||||
<p class="note">若有任何问题,请致电客服:400-188-3787</p>
|
||||
</div>
|
||||
@@ -124,7 +126,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer2.ftl"/>
|
||||
<#include "/header/v6/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/security.min.js?v=${version}"></script>
|
||||
<script src="${staticUrl}/js/fangjia/fangjia_login.min.js?v=${version}"></script>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 569 KiB |
@@ -0,0 +1,360 @@
|
||||
/** **** 房价网 用户登录 尹吉欢 ***** */
|
||||
|
||||
var codeToeken = "";
|
||||
|
||||
String.prototype.endWith = function(str) {
|
||||
var reg = new RegExp(str + "$");
|
||||
return reg.test(this);
|
||||
}
|
||||
|
||||
var guid = function() {
|
||||
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
|
||||
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
|
||||
return v.toString(16);
|
||||
});
|
||||
}
|
||||
codeToeken = guid();
|
||||
var time = Math.round(Math.random() * 999) + 3000;
|
||||
$(".codeImg").html("<img src="+basePath+"/randomCode?codeToeken=" + codeToeken + "&time=" + time + "\" id=\"code\">");
|
||||
|
||||
// 页面加载
|
||||
var cookusername = getCookie("username");
|
||||
var cookpass = getCookie("pass");
|
||||
if (cookusername != null && cookusername != "") {
|
||||
$("#input_mobileEmailNumber").val(cookusername);
|
||||
$("#checkSavePass").addClass("checked");
|
||||
}
|
||||
if (cookpass != null && cookpass != "") {
|
||||
$("#input_password1").val(cookpass);
|
||||
}
|
||||
|
||||
/** *******左边面板中的代码******* */
|
||||
var checkUserName = function(username) {
|
||||
if (username == "") {
|
||||
$(".name_err").html("<i></i>账号不能为空");
|
||||
$(".name_err").removeClass("dn");
|
||||
return false;
|
||||
} else {
|
||||
$(".name_err").addClass("dn");
|
||||
var re = /^1\d{10}$/
|
||||
var emailRe = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
|
||||
if (re.test(username)) {
|
||||
|
||||
} else if (emailRe.test(username)) {
|
||||
|
||||
} else {
|
||||
$(".name_err").html("<i></i>账号格式错误");
|
||||
$(".name_err").removeClass("dn");
|
||||
return false;
|
||||
}
|
||||
$(".name_err").addClass("dn");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 登录密码
|
||||
var checkPass = function(pass) {
|
||||
if (pass == "") {
|
||||
$(".pass_err").html("<i></i>密码不能为空");
|
||||
$(".pass_err").removeClass("dn");
|
||||
return false;
|
||||
} else {
|
||||
$(".pass_err").addClass("dn");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 图形验证码
|
||||
var checkImgCode = function(code) {
|
||||
if (code == "") {
|
||||
$(".imgcode_err").html("<i></i>图形验证码不能为空");
|
||||
$(".imgcode_err").removeClass("dn");
|
||||
return false;
|
||||
} else {
|
||||
$(".imgcode_err").addClass("dn");
|
||||
if (code.length != 4) {
|
||||
$(".imgcode_err").html("<i></i>图形验证码格式错误");
|
||||
$(".imgcode_err").removeClass("dn");
|
||||
return false;
|
||||
}
|
||||
$(".imgcode_err").addClass("dn");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
var check = function(username, pass, code) {
|
||||
if (checkUserName(username) && checkPass(pass) && checkImgCode(code)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// 刷新验证码
|
||||
$(".login_refresh").click(function() {
|
||||
var time = Math.round(Math.random() * 999) + 3000;
|
||||
$(".codeImg").html("<img src="+basePath+"/randomCode?codeToeken=" + codeToeken + "&time=" + time + "\" id=\"code\">");
|
||||
});
|
||||
|
||||
$("#emailAndMobileLogin").click(function() {
|
||||
var username = $("#input_mobileEmailNumber").val();
|
||||
var pass = $("#input_password1").val();
|
||||
var code = $("#image_input_code").val();
|
||||
if (check(username, pass, code)) {
|
||||
var cookpass = getCookie("pass");
|
||||
if (cookpass != pass) {
|
||||
pass = RSAUtils.encryptedString(publicKey, pass);
|
||||
}
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : basePath+"/user/userLogin",
|
||||
data : {
|
||||
"username" : username,
|
||||
"code" : code,
|
||||
"pass" : pass,
|
||||
"codeToken" : codeToeken
|
||||
},
|
||||
success : function(result) {
|
||||
var re = $.parseJSON(result);
|
||||
if (re.result == "fail") {
|
||||
if (re.msg == "输入的验证码不正确,请重新输入") {
|
||||
$(".imgcode_err").html("<i></i>图形验证码错误");
|
||||
$(".imgcode_err").removeClass("dn");
|
||||
} else {
|
||||
$(".name_err").html("<i></i>"+re.msg);
|
||||
$(".name_err").removeClass("dn");
|
||||
}
|
||||
} else {
|
||||
// 记住密码
|
||||
if ($("#checkSavePass").attr("class").indexOf(
|
||||
"checked") > 0) {
|
||||
setCookie("username", username, 365);
|
||||
setCookie("pass", pass, 365);
|
||||
} else {
|
||||
delCookie("username");
|
||||
delCookie("pass");
|
||||
}
|
||||
// 保存显示登录的用户名
|
||||
setCookie("login_username", username, 1);
|
||||
setCookie("userId", re.msg, 1);
|
||||
setCookie("login_userId", re.msg, 1);
|
||||
loginSuccess();
|
||||
}
|
||||
},
|
||||
error : function(data, status) {
|
||||
alert("登录失败,请重试");
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
var loginSuccess = function() {
|
||||
// 模态窗口登录使用
|
||||
if (useLoginType == "model") {
|
||||
$(".mask").hide();
|
||||
$(".dialogBox").hide();
|
||||
//显示登录之后的用户名
|
||||
var login_username = getCookie("login_username");
|
||||
if(login_username != null){
|
||||
var vipId = document.getElementById("vip1");
|
||||
var vipId2 = document.getElementById("vip2");
|
||||
vipId.style.display = "none";
|
||||
vipId2.style.display = "block";
|
||||
document.getElementById("l_uname").innerHTML = login_username;
|
||||
}
|
||||
} else {
|
||||
var curUri = window.location.href;
|
||||
if(curUri.indexOf("backUrl") > -1) {
|
||||
refurl = curUri.substring(curUri.indexOf("backUrl")+8);
|
||||
}
|
||||
if (refurl.endWith("user/register") || refurl.endWith("user/password")) {
|
||||
window.location.href = wwwUrl;
|
||||
} else {
|
||||
if(refurl.endWith("gujia/report")){
|
||||
refurl = refurl+"?fangjia=true";
|
||||
}
|
||||
window.location.href = decodeURIComponent(refurl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** *******右边面板中的代码******* */
|
||||
var checkSmsCode = function(code) {
|
||||
if (code == "") {
|
||||
$(".sms_code_err").html("<i></i>短信验证码不能为空");
|
||||
$(".sms_code_err").removeClass("dn");
|
||||
return false;
|
||||
} else {
|
||||
$(".sms_code_err").addClass("dn");
|
||||
var re = /^\d{4}$/
|
||||
if (re.test(code)) {
|
||||
$(".sms_code_err").addClass("dn");
|
||||
return true;
|
||||
} else {
|
||||
$(".sms_code_err").html("<i></i>短信验证码格式错误");
|
||||
$(".sms_code_err").removeClass("dn");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 验证手机号码
|
||||
var checkMobile = function(mobile) {
|
||||
if (mobile == "") {
|
||||
$(".mobile_err").html("<i></i>手机号码不能为空");
|
||||
$(".mobile_err").removeClass("dn");
|
||||
return false;
|
||||
} else {
|
||||
$(".mobile_err").addClass("dn");
|
||||
var re = /^1\d{10}$/
|
||||
if (re.test(mobile)) {
|
||||
$("#sendCode").removeAttr("style");
|
||||
$(".mobile_err").addClass("dn");
|
||||
return true;
|
||||
} else {
|
||||
$(".mobile_err").html("<i></i>手机号码格式错误");
|
||||
$(".mobile_err").removeClass("dn");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 短信登录中的图形验证码
|
||||
var checkImgCode2 = function(code) {
|
||||
if (code == "") {
|
||||
$(".m_img_err").html("<i></i>图形验证码不能为空");
|
||||
$(".m_img_err").removeClass("dn");
|
||||
return false;
|
||||
} else {
|
||||
$(".m_img_err").addClass("dn");
|
||||
if (code.length != 4) {
|
||||
$(".m_img_err").html("<i></i>图形验证码格式错误");
|
||||
$(".m_img_err").removeClass("dn");
|
||||
return false;
|
||||
}
|
||||
$(".m_img_err").addClass("dn");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
var checkMobileLogin = function(code, mobileNumber, imgCode) {
|
||||
if (checkMobile(mobileNumber) && checkImgCode2(imgCode) && checkSmsCode(code)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#sendCode").click(function() {
|
||||
sendCode($(this));
|
||||
});
|
||||
|
||||
// 发送验证码以及倒计时
|
||||
var countdown = 60;
|
||||
var sendCode = function(obj) {
|
||||
if (countdown < 60) {
|
||||
return;
|
||||
}
|
||||
var mobile = $("#input_mobileNumber").val();
|
||||
if (checkMobile(mobile) && checkImgCode2($("#image_input_code2").val())) {
|
||||
obj.addClass("waiting");
|
||||
settime(obj);
|
||||
doSendCode(mobile);
|
||||
}
|
||||
}
|
||||
|
||||
var doSendCode = function(mobile) {
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : basePath+"/user/sendSmsCode",
|
||||
data : {
|
||||
"type" : "login",
|
||||
"mobile" : mobile,
|
||||
"codeToken" : codeToeken,
|
||||
"code" : $("#image_input_code2").val()
|
||||
},
|
||||
success : function(result) {
|
||||
var re = $.parseJSON(result);
|
||||
if (re.result == "fail") {
|
||||
countdown = 0;
|
||||
if (re.msg == "输入的验证码不正确,请重新输入") {
|
||||
$(".m_img_err").html("<i></i>图形验证码错误");
|
||||
$(".m_img_err").removeClass("dn");
|
||||
} else {
|
||||
$(".mobile_err").html("<i></i>"+re.msg);
|
||||
$(".mobile_err").removeClass("dn");
|
||||
}
|
||||
} else {
|
||||
$(".m_img_err").addClass("dn");
|
||||
$(".mobile_err").addClass("dn");
|
||||
}
|
||||
},
|
||||
error : function(data, status) {
|
||||
countdown = 0;
|
||||
alert("发送失败,请重试");
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
var settime = function(obj) {
|
||||
if (countdown == 0) {
|
||||
obj.removeClass("waiting");
|
||||
obj.html("发送验证码");
|
||||
countdown = 60;
|
||||
return;
|
||||
} else {
|
||||
obj.html("重新发送(" + countdown + ")");
|
||||
countdown--;
|
||||
}
|
||||
setTimeout(function() {
|
||||
settime(obj)
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
$("#smslogin").click(function() {
|
||||
var code = $("#smsCodeInput").val();
|
||||
var imgCode = $("#image_input_code2").val();
|
||||
var mobileNumber = $("#input_mobileNumber").val();
|
||||
if (checkMobileLogin(code, mobileNumber, imgCode)) {
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : basePath+"/user/userLogin",
|
||||
data : {
|
||||
"username" : mobileNumber,
|
||||
"code" : code
|
||||
},
|
||||
success : function(result) {
|
||||
var re = $.parseJSON(result);
|
||||
if (re.result == "fail") {
|
||||
if (re.msg == "输入的验证码不正确,请重新输入") {
|
||||
$(".sms_code_err").html("<i></i>短信验证码错误");
|
||||
$(".sms_code_err").removeClass("dn");
|
||||
} else if (re.msg == "此号码没发过验证码") {
|
||||
$(".sms_code_err").html("<i></i>请先发送验证码");
|
||||
$(".sms_code_err").removeClass("dn");
|
||||
} else {
|
||||
$(".mobile_err").html("<i></i>"+re.msg);
|
||||
$(".mobile_err").removeClass("dn");
|
||||
}
|
||||
} else {
|
||||
// 保存显示登录的用户名
|
||||
setCookie("login_username", mobileNumber, 1);
|
||||
setCookie("userId", re.msg, 1);
|
||||
setCookie("login_userId", re.msg, 1);
|
||||
loginSuccess();
|
||||
}
|
||||
},
|
||||
error : function(data, status) {
|
||||
alert("登录失败,请重试");
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
//回车登录
|
||||
$(document).keyup(function(event){
|
||||
if(event.keyCode ==13){
|
||||
if($(".tab01").attr("class").indexOf("current") > 0) {
|
||||
$("#emailAndMobileLogin").trigger("click");
|
||||
} else {
|
||||
$("#smslogin").trigger("click");
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -40,8 +40,8 @@
|
||||
.user_btn:hover{background:#df7900;}
|
||||
.line{width:420px;height:1px;background:#e5e5e5;margin-top:40px;position:relative;}
|
||||
.line span{position:absolute;top:-8px;left:50%;margin-left:-31px;display:block;background:#fff;padding:0 25px;font-size:12px;color:#999;}
|
||||
.link{text-align:center;color:#666;margin-top:20px;}
|
||||
.link a{color:#f08300;}
|
||||
.link{text-align:center;color:#333;margin-top:20px;}
|
||||
.link a{color:#ff5e04;}
|
||||
.note{font-size:12px;color:#999;margin-top:10px;text-align:center;}
|
||||
.note a{color:#f08300;font-size:12px;}
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ body{position:relative;}
|
||||
.imgBoxIndex > div{width: 100%;height:720px;position:absolute;}
|
||||
.imgBoxIndex > div > div{margin-top:120px;text-align: center;}
|
||||
.imgBoxIndex > div > div p{margin:20px 0;}
|
||||
.imgBoxIndex > div > div p label{width: 912px;height: 73px;color: #ff5e04;font-size: 75px;font-weight: 400;text-align: center;font-style: normal;line-height: normal;letter-spacing: normal;}
|
||||
.imgBoxIndex > div > div p small{color: #ffffff;font-size: 19px;font-weight: 300;font-style: normal;letter-spacing: normal;line-height: 49px;text-align: center;margin: auto auto;display: block;}
|
||||
.imgBoxIndex > div > div p label{width: 912px;height: 73px;color: #ff5e04;font-size: 75px;font-weight: 400;text-align: center;}
|
||||
.imgBoxIndex > div > div p small{color: #ffffff;font-size: 19px;font-weight: 300;line-height: 49px;text-align: center;margin: auto auto;display: block;}
|
||||
|
||||
.imgBoxIndex > div > div > div a#a1{position: relative;width: 186px;height: 68px;margin-right: 40px;font-size: 24px;line-height: 68px;}
|
||||
.imgBoxIndex > div > div > div a#a2{position: relative;color: #fff;background-color: #F97624;width: 186px;height: 68px;font-size: 24px;line-height: 68px;}
|
||||
|
||||
@@ -0,0 +1,212 @@
|
||||
@charset "utf-8";
|
||||
/* CSS Document */
|
||||
|
||||
/* 登录&注册&找回密码 */
|
||||
|
||||
.main{overflow:hidden;position:relative;padding-top:75px;}
|
||||
|
||||
.main_left{float:left;width:1120px;height:1000px;background:url(../../../images/fangjia/v6/login-1.jpg);background-size: 100% 100%;background-repeat: no-repeat;background-position: center;}
|
||||
.main_left div{margin-top:180px;margin-left:30px;}
|
||||
.main_left div.div01{margin-top:500px;}
|
||||
.main_left div p{text-align:justify;margin-bottom:20px;}
|
||||
.main_left div p.p01{margin-top:-20px;margin-bottom:30px;}
|
||||
.main_left div p.p02{margin-bottom:10px;}
|
||||
.main_left div p.p03{margin-top:5px;margin-bottom:40px;}
|
||||
.main_left div p label{color: #ff5e04;font-size: 75px;font-weight: 400;letter-spacing: 2px;}
|
||||
.main_left div p span{color: #ff5e04;font-size: 50px;font-weight: 400;}
|
||||
.main_left div p small{color: #ffffff;font-size: 30px;font-weight: 400;line-height: 48px;letter-spacing: 2px;}
|
||||
|
||||
.main_right{float:right;width:780px;}
|
||||
|
||||
.user00{width: 586px;height: 668px;margin: auto;margin-top: 200px;}
|
||||
.user01{margin-top:100px;}
|
||||
.user02{width:auto;margin:0;margin-left:70px;margin-top:50px;}
|
||||
.user03{margin-top:300px;}
|
||||
|
||||
.user00 .tab{width:100%;height:51px;background:none;border-bottom:solid 1px #e2e2e2;margin-bottom:60px;}
|
||||
.user00 .tab li{width:50%;float:left;font-size:24px;color:#333;text-align:center;line-height:50px;cursor:pointer;}
|
||||
.user00 .tab li.current{border-bottom:solid 2px #f08300;color:#f08300;}
|
||||
.user01 .tab{border-bottom:none;margin-bottom:30px;}
|
||||
.user01 .tab li.tab03{width:100%;font-size:24px;}
|
||||
|
||||
.login_ls2_01{letter-spacing:28px;font-size: 20px;}
|
||||
.login_ls2_02{letter-spacing:0px;*letter-spacing:28px;font-size: 20px;}
|
||||
.login_ls3_01{letter-spacing:4px;font-size: 20px;}
|
||||
.login_ls3_02{letter-spacing:0px;*letter-spacing:7px;font-size: 20px;}
|
||||
|
||||
.inputInfo{height:40px;margin-bottom:32px;position:relative;}
|
||||
.inputInfo label{line-height:40px;float:left;margin-right:20px;}
|
||||
.inputInfo label a{line-height:40px;color:#333;}
|
||||
.inpu{width:322px;width:332px\0;height:38px;border:solid 1px #e1e1e1;padding-left:10px;padding-right:10px;padding-right:0\0;line-height:38px;float:left;outline:none;font-family:"Microsoft YaHei","微软雅黑",arial\0/;}
|
||||
.inpu01{width:188px;width:198px\0;}
|
||||
.inpu02{width:248px;width:258px\0;float:none;}
|
||||
select{appearance:none;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;-o-appearance:none;background: url(../../../images/fangjia/v5/arrow_select.png) no-repeat 96% center #fff;cursor:pointer;}
|
||||
.sel{width:270px;height:40px;border:solid 1px #e1e1e1;padding-left:10px;padding-right:10px;line-height:38px;padding-top:8px\0;padding-bottom:8px\0;font-family:"Microsoft YaHei","微软雅黑",arial\0/;}
|
||||
|
||||
.codeImg{width:72px;height:40px;float:left;margin-left:19px;}
|
||||
.codeLoanImg{width:72px;height:40px;float:left;margin-left:19px;}
|
||||
.login_refresh{float:right;line-height:40px;cursor:pointer;font-size: 16px;}
|
||||
.login_refresh:hover{color:#f08300;}
|
||||
.change_btn{width:108px;height:38px;background:#f0f0f0;border:solid 1px #e1e1e1;text-align:center;line-height:38px;float:right;cursor:pointer;}
|
||||
.change_btn:hover{background:#f08300;border:solid 1px #f08300;color:#fff;}
|
||||
.change_btn.waiting{width:108px;height:38px;background:#f08300;border:solid 1px #f08300;color:#fff;text-align:center;line-height:38px;float:right;}
|
||||
|
||||
.option{height:16px;margin-left:76px;margin-bottom:32px;clear:both;}
|
||||
.option > div{float:left;height:16px;position:relative;}
|
||||
.option > div span{float:left;line-height:16px;color:#999;font-size:12px;}
|
||||
.check{width:16px;height:16px;background:url(../../../images/fangjia/v5/check.png);float:left;margin-right:8px;cursor:pointer;}
|
||||
.check.checked{background:url(../../../images/fangjia/v5/checked.png);}
|
||||
.option > div.forgetPassword{float:right;}
|
||||
.option > div.forgetPassword a{color:#666;font-size:12px;}
|
||||
.option > div.forgetPassword a:hover{color:#f08300;}
|
||||
.option > div.agreement span a{color:#333;font-size:12px;}
|
||||
.option > div.agreement span a:hover{color:#f08300;}
|
||||
.option > div.agreement .error{left:0;}
|
||||
|
||||
.login_user_btn{width:586px;height:60px;background:#f08300;text-align:center;line-height:60px;color:#fff;display:block;cursor:pointer;font-size: 20px;}
|
||||
.login_user_btn:hover{background:#EC6428;}
|
||||
.line{width:420px;height:1px;background:#e5e5e5;margin-top:40px;position:relative;}
|
||||
.line span{position:absolute;top:-8px;left:50%;margin-left:-31px;display:block;background:#fff;padding:0 25px;font-size:12px;color:#999;}
|
||||
.link{text-align:center;color:#666;margin-top:20px;}
|
||||
.link a{color:#f08300;}
|
||||
.note{font-size:12px;color:#999;margin-top:10px;text-align:center;}
|
||||
.note a{color:#f08300;font-size:12px;}
|
||||
.success{font-size:24px;text-align:center;margin-bottom:50px;}
|
||||
.success i{width:29px;height:29px;background:url(../../../images/fangjia/v5/success.png) no-repeat center center;display:inline-block;vertical-align:bottom;margin-right:10px;}
|
||||
|
||||
/* 咨询表单 */
|
||||
|
||||
.title{border-bottom:dashed 1px #eee;padding-bottom:10px;margin-bottom:20px;}
|
||||
.title p{margin:10px 0;}
|
||||
.title p label{font-size:24px;}
|
||||
.title p small{font-size:12px;color:#999;}
|
||||
|
||||
.content03{margin-bottom:50px;}
|
||||
.content03 .inputInfoBox{overflow:hidden;}
|
||||
.inputInfoBox01{float:left;}
|
||||
.inputInfoBox01 .inputInfo{height:auto;margin-bottom:10px;}
|
||||
.inputInfoBox01 .inputInfo label{float:none;display:block;margin-right:0;line-height:30px;}
|
||||
.inputInfoBox01 .inputInfo label a{line-height:30px;}
|
||||
.inputInfoBox01 .inputInfo label i{color:#f08300;vertical-align:-3px;margin-left:10px;}
|
||||
.inputInfoBox01a{margin-right:50px;}
|
||||
|
||||
#selectedCity{width:auto;height:38px;text-align:left;line-height:38px;}
|
||||
.cityChoice{background: url(../../../images/fangjia/v5/arrow_select.png) no-repeat 96% center #fff;}
|
||||
.cityChoice_spread{width:588px;left:auto;right:-1px;top:39px;}
|
||||
|
||||
.demand{height:194px;border:solid 1px #e1e1e1;padding:10px;padding-bottom:0;margin-bottom:32px;overflow:hidden;overflow-y:auto;}
|
||||
.demand p{overflow:hidden;margin-bottom:12px;}
|
||||
.demand p span{float:left;line-height:16px;}
|
||||
.demand p b i{width:24px;height:16px;float:left;}
|
||||
|
||||
.content03 .note{text-align:left;margin-bottom:32px;clear:both;}
|
||||
.content03 .option{margin-left:0;}
|
||||
|
||||
/* 个人资料 */
|
||||
|
||||
.sidebarUser{width:220px;height:900px;background:#f5f5f5;float:left;}
|
||||
.sidebarUser ul{margin-top:60px;}
|
||||
.sidebarUser ul li{width:220px;height:50px;}
|
||||
.sidebarUser ul li a{width:220px;height:50px;border-left:solid 5px #f5f5f5;display:block;line-height:50px;text-align:center;color:#666;cursor:pointer;}
|
||||
.sidebarUser ul li a:hover{color:#f08300;}
|
||||
.sidebarUser ul li a.current{color:#f08300;background:#fff;border-left:solid 5px #f08300;}
|
||||
|
||||
.radioBox{cursor:pointer;}
|
||||
.inputInfo label.radioBox01{margin-right:0;margin-left:20px;}
|
||||
.inputInfo label.radioBox02{margin-right:0;margin-left:10px;}
|
||||
.check01{width:14px;height:14px;background:url(../../../images/fangjia/v5/check01.png);float:left;margin-right:8px;cursor:pointer;appearance:none;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;-o-appearance:none;outline:none;margin-top:14px;}
|
||||
.check01[checked]{background:url(../../../images/fangjia/v5/checked01.png);}
|
||||
|
||||
/* 房产评估记录 */
|
||||
|
||||
.record{border-bottom:solid 1px #e5e5e5;padding-bottom:25px;margin-bottom:25px;}
|
||||
.record > div{overflow:hidden;}
|
||||
.record > div > div{float:left;}
|
||||
.record > div > div p{overflow:hidden;line-height:30px;}
|
||||
.record > div > div p label{float:left;}
|
||||
.record > div > div p font{float:left;}
|
||||
.record > div > div p font.important{color:#f08300;}
|
||||
|
||||
.record_title{margin-bottom:10px;}
|
||||
.record_title div p label{font-size:18px;}
|
||||
.record_title div p font{font-size:12px;color:#999;}
|
||||
.delete{width:14px;height:30px;background:url(../../../images/fangjia/v5/delete.png) no-repeat right center;float:right;cursor:pointer;}
|
||||
|
||||
.record_content01{width:280px;}
|
||||
.record .link_btn{float:right;margin-top:10px;}
|
||||
|
||||
.error span{color: #ff5b5b;}
|
||||
|
||||
|
||||
.adBoxApp01{width:100%;height:110px;background:url(../../../images/fangjia/v5/adBoxApp_bg.png) no-repeat center bottom;position:fixed;bottom:0;z-index:100000;}
|
||||
.adBoxApp01 > div{width:1200px;margin:0 auto;text-align:center;position:relative;}
|
||||
.adBoxApp01 > div > div{display:inline-block;vertical-align:top;}
|
||||
.adBoxApp01 > div > div.div01{width:181px;height:191px;position:relative;bottom:50px;}
|
||||
.adBoxApp01 > div > div.div02{margin-left:40px;margin-top:30px;}
|
||||
.adBoxApp01 > div > div.div03{margin-left:10px;margin-right:40px;margin-top:42px;}
|
||||
.adBoxApp01 > div > div.div04{margin-top:38px;cursor:pointer;}
|
||||
.adBoxApp01 > div > div img{width:100%;}
|
||||
.adBoxApp01 > div > div p{text-align:left;line-height:30px;}
|
||||
.adBoxApp01 > div > div p label{font-size:18px;color:#fff;}
|
||||
.adBoxApp01 > div > div p small{font-size:14px;color:#fff;}
|
||||
.adBoxApp01 .close{width:66px;height:66px;background:url(../../../images/fangjia/v5/close_white01.png) no-repeat center center;display:block;position:absolute;top:22px;right:0;cursor:pointer;}
|
||||
.adBoxApp02{position:fixed;bottom:0;z-index:100000;cursor:pointer;}
|
||||
.adBoxApp02 img{width:100%;}
|
||||
|
||||
.pop-toast {
|
||||
width: 180px;
|
||||
height: 80px;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
padding: 0.75rem;
|
||||
background: #fff;
|
||||
border: solid 1px #ccc;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
-webkit-box-shadow: 0 2px 8px #ccc;
|
||||
-moz-box-shadow: 0 2px 8px #ccc;
|
||||
box-shadow: 0 2px 8px #ccc;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 5px;
|
||||
z-index: 1000000;
|
||||
}
|
||||
.pop-toast .toast-tip {
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
line-height: 36px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user