初始仓库

This commit is contained in:
2026-02-24 15:40:17 +08:00
commit 2cfae189ee
12 changed files with 1113 additions and 0 deletions

331
index.bak.html Normal file
View File

@@ -0,0 +1,331 @@
<!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 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">
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 == 0) {
// alert('验证码不正确');
// return;
// }
// if (res.Code == 20000) {
// alert('该账号或者手机号被注册了');
// return;
// }
// if (res.Code == 30000) {
// alert('该身份已经进行认证,无法再次进行认证!');
// return;
// }
if (res.Code == 10000) {
$('#wrapper').hide();
$('#verify-info').show();
new QRCode(document.getElementById("qrcode_s"), {
text: res.url,
width: 300,
height: 300
});
t1 = window.setInterval(get_verify_res, 1500);
} 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 {
document.getElementsByTagName("title")[0].innerText = '动态IP注册';
$("#tittle").html('动态IP');
}
function get_verify_res() {
var user_phone = $("#user_name").val();
if (user_phone.length < 11) {
alert('请在手机号栏输入刚注册的手机号!');
return;
}
let data = {
cookie: document.cookie
}
$.ajax({
type: 'POST',
url: 'https://php-api.juip.com/agent/Index/aliGetResult?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) {
alert('实名成功');
clearInterval(t1);
} else {
console.log('实名失败');
}
}
});
}
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>