初始化代码
This commit is contained in:
58
public/protocol.html
Normal file
58
public/protocol.html
Normal file
@@ -0,0 +1,58 @@
|
||||
<!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>
|
||||
<style>
|
||||
body {
|
||||
padding: 20px 10px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 0px;
|
||||
margin-block-start: 0px;
|
||||
margin-block-end: 0px;
|
||||
margin-inline-start: 0px;
|
||||
margin-inline-end: 0px;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100% !important;
|
||||
height: auto !important;
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="html-box"></div>
|
||||
<script src="/js/jquery-3.5.1.min.js"></script>
|
||||
|
||||
<script>
|
||||
let _href = window.location.href
|
||||
let url = _href.split('/protocol.html')[0]
|
||||
let ajax_url = `${url}/index.php?i=1&m=farm&s=index/getConfig`
|
||||
|
||||
$(function() {
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: `${ajax_url}`,
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
data: {},
|
||||
success: function(res) {
|
||||
let {
|
||||
login_protocol
|
||||
} = res.data
|
||||
$(".html-box").html(login_protocol)
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user