You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.6 KiB
HTML
102 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>登陆页</title>
|
|
<link href="__CSS__/ssg/common.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body>
|
|
<div class="page-container container-white">
|
|
<div class="top">
|
|
<a href="javascript:history.go(-1);"></a>登录
|
|
</div>
|
|
<div class="login">
|
|
<div class="login-title">
|
|
<h2>Hello!终于等到你~</h2>
|
|
<input type="hidden" value="{$promote_id}" id="promote_id" name="promote_id"/>
|
|
</div>
|
|
<div class="login-input">
|
|
<ul>
|
|
<li>
|
|
<label>
|
|
<input type="text" id="userAccount" name="userAccount" placeholder="用户名">
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label>
|
|
<input type="password" id="password" name="password" placeholder="登录密码">
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label>
|
|
<input type="text" id="userCode" name="userCode" maxlength="4" placeholder="验证码">
|
|
<img id="verifyCode" style="cursor:pointer" onclick="GetVerityCode()" src="/mobile.php?s=/Ssg/verify.html">
|
|
</label>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="login-btn"><a href="javascript:;" onclick="Login()">登录</a></div>
|
|
<div style="padding-top: 0.2rem;" class="login-btn"><a href="https://m.wmtxkj.com/mobile.php?s=/User/step1.html">注册</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
|
|
<script src="__JS__/ssg/jquery.md5.js" type="text/javascript"></script>
|
|
<script src="__JS__/ssg/common.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
var loginLock = false;
|
|
function GetVerityCode() {
|
|
//刷新验证码
|
|
$("#verifyCode").attr("src", "/mobile.php?s=/Ssg/verify.html&id=" + Math.random());
|
|
}
|
|
function Login() {
|
|
var loginName = $("#userAccount").val();
|
|
var loginPass = $("#password").val();
|
|
var userCode = $("#userCode").val();
|
|
var promoteId = $("#promote_id").val();
|
|
if (loginName == "") {
|
|
alert("账号不能为空");
|
|
return false;
|
|
}
|
|
if (loginPass == "") {
|
|
alert("密码不能为空");
|
|
return false;
|
|
}
|
|
if (userCode == "") {
|
|
alert("验证码不能为空");
|
|
return false;
|
|
}
|
|
if (promoteId == "") {
|
|
alert("推广员ID不能为空");
|
|
return false;
|
|
}
|
|
|
|
jQuery.ajax({
|
|
type: 'POST',
|
|
url:'mobile.php?s=/Ssg/do_login.html',
|
|
data: {
|
|
'Account':loginName,
|
|
'Password':(loginPass),
|
|
'VerifyCode':userCode,
|
|
'promote_id' :promoteId,
|
|
},
|
|
dataType: 'JSON',
|
|
xhrFields:{
|
|
withCredentials:true
|
|
},
|
|
async: false,
|
|
cache: false,
|
|
success: function (result) {
|
|
if (result.ErrorCode!=0){
|
|
alert(result.ResultMsg);
|
|
GetVerityCode();
|
|
}else{
|
|
window.location.href="mobile.php?s=/Ssg/index.html"
|
|
}
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</html> |