初始仓库
This commit is contained in:
356
index.html
Normal file
356
index.html
Normal file
@@ -0,0 +1,356 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/htmleaf-demo.css">
|
||||
<style type="text/css">
|
||||
.login-page {
|
||||
width: 360px;
|
||||
padding: 8% 0 0;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.form {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
background: #FFFFFF;
|
||||
max-width: 360px;
|
||||
margin: 0 auto 100px;
|
||||
padding: 45px;
|
||||
text-align: center;
|
||||
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
|
||||
}
|
||||
|
||||
.form input {
|
||||
font-family: "Roboto", sans-serif;
|
||||
outline: 0;
|
||||
background: #f2f2f2;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
margin: 0 0 15px;
|
||||
padding: 15px;
|
||||
box-sizing: border-box;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.form button {
|
||||
font-family: "Microsoft YaHei", "Roboto", sans-serif;
|
||||
text-transform: uppercase;
|
||||
outline: 0;
|
||||
background: #4CAF50;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
padding: 15px;
|
||||
color: #FFFFFF;
|
||||
font-size: 14px;
|
||||
-webkit-transition: all 0.3 ease;
|
||||
transition: all 0.3 ease;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.form button:hover,
|
||||
.form button:active,
|
||||
.form button:focus {
|
||||
background: #43A047;
|
||||
}
|
||||
|
||||
.form .message {
|
||||
margin: 15px 0 0;
|
||||
color: #b3b3b3;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.form .message a {
|
||||
color: #4CAF50;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
max-width: 300px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.container:before,
|
||||
.container:after {
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.container .info {
|
||||
margin: 50px auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.container .info h1 {
|
||||
margin: 0 0 15px;
|
||||
padding: 0;
|
||||
font-size: 36px;
|
||||
font-weight: 300;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
.container .info span {
|
||||
color: #4d4d4d;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.container .info span a {
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.container .info span .fa {
|
||||
color: #EF3B3A;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #76b852;
|
||||
/* fallback for old browsers */
|
||||
background: -webkit-linear-gradient(right, #76b852, #8DC26F);
|
||||
background: -moz-linear-gradient(right, #76b852, #8DC26F);
|
||||
background: -o-linear-gradient(right, #76b852, #8DC26F);
|
||||
background: linear-gradient(to left, #76b852, #8DC26F);
|
||||
font-family: "Roboto", sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.shake_effect {
|
||||
-webkit-animation-name: shake;
|
||||
animation-name: shake;
|
||||
-webkit-animation-duration: 1s;
|
||||
animation-duration: 1s;
|
||||
}
|
||||
|
||||
p.center {
|
||||
color: #fff;
|
||||
font-family: "Microsoft YaHei";
|
||||
}
|
||||
</style>
|
||||
<!--[if IE]>
|
||||
<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script> <![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="htmleaf-container">
|
||||
<div id="wrapper" class="login-page">
|
||||
<h1 style="text-align: center;" id="tittle"></h1>
|
||||
<div id="login_form" class="form">
|
||||
<div class="register-form">
|
||||
<input type="text" placeholder="手机号" id="user_name" />
|
||||
<input type="text" style="width: 50%;" placeholder="验证码" id="code" /><button id="get_code_btn"
|
||||
style="width: 50%;" onclick="get_code()">获取验证码</button>
|
||||
<input type="text" placeholder="真实姓名" id="name" />
|
||||
<input type="text" placeholder="身份证号" id="id_code" />
|
||||
<button onclick="check_register()">创建账户</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="text-align: center;">
|
||||
<h3 id="verify-info" style="display:none;text-align: center;">勿关闭此页面,请打开 微信 扫码进行认证,认证成功后请截图,严禁使用他人身份验证</h3>
|
||||
<div id="qrcode_s" style="text-align: center;padding-left:calc(10vw);"></div>
|
||||
</div>
|
||||
|
||||
<div id="xiaowei" class="form" style="padding: 0;margin-bottom: 2rem;">
|
||||
<button style="background-color: white; color:#43A047;font-size: 20px;"
|
||||
onclick="get_verify_res()">已扫脸请点击这里</button>
|
||||
</div>
|
||||
<div class="form" style="padding: 1rem;">
|
||||
<a href="/upload.html" style="background-color: white; color:#43A047;font-size: 20px;">点击上传解开TX屏蔽</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>window.jQuery || document.write('<script src="js/jquery-2.1.1.min.js"><\/script>')</script>
|
||||
<script type="text/javascript" src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/qrcodejs/1.0.0/qrcode.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$("#xiaowei").hide();
|
||||
|
||||
var agent_id_verify = getUrlParam('agent_id');
|
||||
|
||||
if (agent_id_verify == null) {
|
||||
alert('请输入为你提供的完整链接');
|
||||
}
|
||||
if (isBase64(agent_id_verify)) {
|
||||
var verify_id = atob(agent_id_verify);
|
||||
if (verify_id<100000) {
|
||||
alert('请输入为你提供的完整链接');
|
||||
}
|
||||
} else {
|
||||
alert('请输入为你提供的完整链接');
|
||||
}
|
||||
|
||||
function isBase64(str) {
|
||||
try {
|
||||
return btoa(atob(str)) === str;
|
||||
} catch (err) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var user = '';
|
||||
|
||||
function check_register() {
|
||||
var phonereg = /^1[3-9][0-9]{9}$/;
|
||||
var name = $("#user_name").val();
|
||||
user = name;
|
||||
var rean_name = $("#name").val();
|
||||
var id_code = $("#id_code").val();
|
||||
var agent_id = getUrlParam('agent_id');
|
||||
|
||||
if (!phonereg.test(name)) {
|
||||
alert('请输入正确的手机号');
|
||||
return false;
|
||||
}
|
||||
if (agent_id == null) {
|
||||
alert('请输入为你提供的完整链接');
|
||||
return false;
|
||||
}
|
||||
|
||||
var data = { "LoginCode": name, "agent_id": agent_id, "Name": rean_name, "id_code": id_code, "code": $("#code").val() };
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'https://php-api.juip.com/agent/Index/register',
|
||||
dataType: "json",
|
||||
contentType: "application/json;charset=utf-8",
|
||||
data: JSON.stringify(data),
|
||||
success: function (res) {
|
||||
if (res.Code == 10000) {
|
||||
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
|
||||
window.location.href=res.url;
|
||||
} else {
|
||||
$('#wrapper').hide();
|
||||
$('#verify-info').show();
|
||||
new QRCode(document.getElementById("qrcode_s"), {
|
||||
text: res.url,
|
||||
width: 300,
|
||||
height: 300
|
||||
});
|
||||
}
|
||||
|
||||
} else {
|
||||
var msg = "";
|
||||
if (res.msg) {
|
||||
msg = res.msg;
|
||||
}
|
||||
if (res.Message) {
|
||||
msg = res.Message;
|
||||
}
|
||||
alert(msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
//获取url中的参数
|
||||
function getUrlParam(name) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
|
||||
var r = window.location.search.substr(1).match(reg); //匹配目标参数
|
||||
if (r != null) return unescape(r[2]); return null; //返回参数值
|
||||
}
|
||||
|
||||
if (getUrlParam('agent_id') == 'MTAwMDM5') {
|
||||
|
||||
document.getElementsByTagName("title")[0].innerText = '环宇IP';
|
||||
$("#tittle").html('环宇IP');
|
||||
document.title = '环宇IP';
|
||||
} else if (getUrlParam('agent_id') == 'MTAwMDQ5') {
|
||||
$("#tittle").html('秒开云专线网络');
|
||||
document.title = '秒开云专线网络';
|
||||
} else if (getUrlParam('agent_id') == 'MTAwMDkw') {
|
||||
$("#tittle").html('百道加速');
|
||||
document.title = '百道加速';
|
||||
} else if (getUrlParam('agent_id') == 'MTAwMDk2') {
|
||||
$("#tittle").html('林北极速动静态IP');
|
||||
document.title = '林北极速动静态IP';
|
||||
} else if (getUrlParam('agent_id') == 'MTAwMDY2') {
|
||||
$("#xiaowei").show();
|
||||
document.getElementsByTagName("title")[0].innerText = '动态IP注册';
|
||||
$("#tittle").html('动态IP');
|
||||
setInterval(() => {
|
||||
get_verify_res();
|
||||
}, 5000);
|
||||
|
||||
} else {
|
||||
|
||||
document.getElementsByTagName("title")[0].innerText = '动态IP注册';
|
||||
$("#tittle").html('动态IP');
|
||||
}
|
||||
|
||||
function get_verify_res() {
|
||||
var user_phone = $("#user_name").val();
|
||||
if (user_phone.length < 11) {
|
||||
return;
|
||||
}
|
||||
let data = {
|
||||
cookie: document.cookie
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'https://php-api.juip.com/agent/Index/getisverify?user=' + user_phone,
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
beforeSend: function (xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == 10000) {
|
||||
window.location.href = 'https://www.juip.com/User/WebLogin';
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
function get_code() {
|
||||
var user_phone = $("#user_name").val();
|
||||
if (user_phone.length < 11) {
|
||||
alert('请输入手机号!');
|
||||
return;
|
||||
}
|
||||
var data = { 'phone': user_phone };
|
||||
var time = 60;
|
||||
$("#get_code_btn").attr("disabled", "disabled");
|
||||
|
||||
$("#get_code_btn").html(time);
|
||||
var timer = setInterval(() => {
|
||||
time--
|
||||
$("#get_code_btn").html(time + '秒后重新获取');
|
||||
if (time === 0) {
|
||||
clearInterval(timer)
|
||||
$("#get_code_btn").removeAttr("disabled");
|
||||
$("#get_code_btn").html('获取验证码');
|
||||
time = 60;
|
||||
}
|
||||
}, 1000);
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'https://php-api.juip.com/agent/Index/getCode',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
beforeSend: function (xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.code != 1) {
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user