|
|
|
@ -0,0 +1,105 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<title>小说阁手机版</title>
|
|
|
|
|
<meta name="viewport"
|
|
|
|
|
content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width" />
|
|
|
|
|
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
|
|
<meta name="generator" content="DESTOON B2B - www.destoon.com" />
|
|
|
|
|
<meta name="format-detection" content="telephone=no" />
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
|
|
|
<meta name="apple-mobile-web-app-title" content="小说阁手机版" />
|
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
|
|
|
<link rel="apple-touch-icon-precomposed"
|
|
|
|
|
href="http://xiaoshuo.yewu99.com:8089/mobile/apple-touch-icon-precomposed.png" />
|
|
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
|
|
|
<link rel="icon" sizes="128x128" href="http://xiaoshuo.yewu99.com:8089/mobile/apple-touch-icon-precomposed.png">
|
|
|
|
|
<meta name="msapplication-TileImage" content="apple-touch-icon-precomposed.png">
|
|
|
|
|
<meta name="msapplication-TileColor" content="#007AFF">
|
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="http://xiaoshuo.yewu99.com:8089/favicon.ico" />
|
|
|
|
|
<link rel="bookmark" type="image/x-icon" href="http://xiaoshuo.yewu99.com:8089/favicon.ico" />
|
|
|
|
|
<link rel="stylesheet" type="text/css"
|
|
|
|
|
href="http://xiaoshuo.yewu99.com:8089/mobile/static/lib/jquery/jquery.mobile.custom.structure.min.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="http://xiaoshuo.yewu99.com:8089/mobile/static/style.css" />
|
|
|
|
|
<script type="text/javascript"
|
|
|
|
|
src="http://xiaoshuo.yewu99.com:8089/mobile/static/lib/jquery/jquery-2.1.1.min.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(document).bind("mobileinit", function () {
|
|
|
|
|
$.mobile.defaultPageTransition = 'slide';
|
|
|
|
|
});
|
|
|
|
|
var AJPath = 'ajax.php';
|
|
|
|
|
var Dbrowser = '';
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/javascript"
|
|
|
|
|
src="http://xiaoshuo.yewu99.com:8089/mobile/static/lib/jquery/jquery.mobile.custom.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="http://xiaoshuo.yewu99.com:8089/mobile/static/js/common.js"></script>
|
|
|
|
|
<script type="text/javascript" src="http://xiaoshuo.yewu99.com:8089/mobile/static/js/fix.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
$('#loginForm').submit(function (event) {
|
|
|
|
|
event.preventDefault(); // 阻止表单默认提交
|
|
|
|
|
|
|
|
|
|
var phone = $('#phone').val();
|
|
|
|
|
var password = $('#password').val();
|
|
|
|
|
|
|
|
|
|
// 校验输入是否为空
|
|
|
|
|
if (phone === "" || password === "") {
|
|
|
|
|
alert("手机号和密码不能为空!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 发送AJAX请求
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: 'http://xiaoshuo.yewu99.com:8089/mobile/ajax/login.php', // 需要将此URL替换为实际的登录处理URL
|
|
|
|
|
type: 'POST',
|
|
|
|
|
data: {
|
|
|
|
|
phone: phone,
|
|
|
|
|
password: password
|
|
|
|
|
},
|
|
|
|
|
success: function (response) {
|
|
|
|
|
// 假设服务器返回一个JSON对象,其中包含登录状态和消息
|
|
|
|
|
var data = JSON.parse(response);
|
|
|
|
|
if (data.status === "success") {
|
|
|
|
|
// 登录成功,跳转到用户中心
|
|
|
|
|
window.location.href = "user_center.html";
|
|
|
|
|
} else {
|
|
|
|
|
// 登录失败,显示错误消息
|
|
|
|
|
alert(data.message);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error: function (xhr, status, error) {
|
|
|
|
|
// 处理AJAX请求错误
|
|
|
|
|
alert("登录失败,请稍后再试。");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<link rel="stylesheet" href="../../css/base.css">
|
|
|
|
|
<link rel="stylesheet" href="../../css/login/login.css">
|
|
|
|
|
<script src="../../js/login/login.js"></script>
|
|
|
|
|
<div class="base">
|
|
|
|
|
<!--登录-->
|
|
|
|
|
<div class="l-title">
|
|
|
|
|
<div class="l-title-box">
|
|
|
|
|
<img src="../../image/all_back_link.png" width="18" height="16" alt="">
|
|
|
|
|
<span>登录</span><span class="l-regist">注册</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="l-content">
|
|
|
|
|
<form id="loginForm" action="javascript:void(0);">
|
|
|
|
|
<input class="l-con-input" type="text" id="phone" placeholder="请输入手机号" required>
|
|
|
|
|
<input class="l-con-input" type="password" id="password" placeholder="请输入密码" required>
|
|
|
|
|
<button type="submit" class="l-login-button">登录</button>
|
|
|
|
|
</form>
|
|
|
|
|
<a class="l-f-password" href="#"><span>忘记密码</span></a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|