mirror of
https://e.coding.net/circlecloud/MinecraftAccount.git
synced 2024-11-17 00:58:55 +00:00
9dfe8fa4a7
Signed-off-by: 502647092 <jtb1@163.com>
75 lines
2.4 KiB
HTML
75 lines
2.4 KiB
HTML
<extend name="Common:Banner" />
|
|
<block name="PageTitle">魔方 - 我的世界</block>
|
|
<block name="Body">
|
|
<div class="container">
|
|
<div class="register-box">
|
|
<div class="reg-slogan">
|
|
<font size="5" face="微软雅黑">用户登录</font>
|
|
</div>
|
|
<form class="form-horizontal" action="{:U('User/Login')}" role="form" method="post">
|
|
<div class="form-group">
|
|
<label for="username" class="col-sm-offset-1 col-sm-3 control-label">用户名:</label>
|
|
<div class="col-sm-6">
|
|
<input type="text" class="form-control" id="username" name="username" placeholder="用户名" required />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password" class="col-sm-offset-1 col-sm-3 control-label">密 码:</label>
|
|
<div class="col-sm-6">
|
|
<input type="password" class="form-control" id="password" name="password" placeholder="密码" required />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="verify" class="col-sm-offset-1 col-sm-3 control-label">验证码:</label>
|
|
<div class="col-sm-6">
|
|
<input type="text" class="form-control" id="verify" name="verify" placeholder="验证码" required />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="" class="col-sm-offset-1 col-sm-3 control-label"></label>
|
|
<div class="col-sm-6">
|
|
<img src="{:U('Common/Verify')}" id="" class="verifyimg reloadverify" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-3 col-sm-7">
|
|
<button id="submit" type="button" class="btn btn-primary btn-login">登陆</button>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<p class="check-tips text-danger col-sm-offset-3 col-sm-7"></p>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#submit").click(function() {
|
|
var user = $("#username").val();
|
|
var pass = $("#password").val();
|
|
var verify = $("#verify").val();
|
|
if (user == "") {
|
|
alert("用户名不能为空!");
|
|
return;
|
|
}
|
|
if (pass == "") {
|
|
alert("密码不能为空!");
|
|
return;
|
|
}
|
|
$.ajax({
|
|
type : "POST",
|
|
data : {
|
|
username : user,
|
|
password : pass,
|
|
verify : verify
|
|
},
|
|
dataType : "json",
|
|
url : "{:U('User/Login')}",
|
|
success : function(rdata) {
|
|
alert(rdata.info);
|
|
window.location.href = rdata.url;
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script> </block> |