Commit 265d0e95 by 姜雷

添加注册服务协议页面

parent 92268608
<html lang="en">
<head>
<meta
name="viewport"
content="width=device-width,initial-scale=1,user-scalable=0"
/>
<style>
html,
body {
margin: 0;
padding: 0;
}
.weui_article {
padding: 20px 15px;
font-size: 15px;
}
.weui_article p {
margin: 0;
font-size: 0.65rem;
}
</style>
<script>
(function(doc, win) {
var docEl = doc.documentElement,
resizeEvt =
'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function() {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
console.log(clientWidth);
docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
};
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);
</script>
</head>
<body>
<article id="zxbody" class="weui_article"></article>
<script>
var serviceUrl = 'http://api.dcrym.com/dcintsrv/web/entrance.do';
var xmlHttpRequest;
var defbackfun = function(responseText) {
// alert(responseText);
};
//XmlHttpRequest瀵硅薄
function createXmlHttpRequest() {
if (window.ActiveXObject) {
return new ActiveXObject('Microsoft.XMLHTTP');
} else if (window.XMLHttpRequest) {
//闈濱E娴忚鍣�
return new XMLHttpRequest();
}
}
function httppost(datastr, backfun) {
defbackfun = backfun;
var myjsondata = encodeURI(datastr);
var url = serviceUrl + '?' + myjsondata;
//1.鍒涘缓XMLHttpRequest缁勫缓
xmlHttpRequest = createXmlHttpRequest();
//2.璁剧疆鍥炶皟鍑芥暟
xmlHttpRequest.onreadystatechange = zswFun;
//3.鍒濆鍖朮MLHttpRequest缁勫缓
xmlHttpRequest.open('POST', url, true);
//4.鍙戦€佽姹�
xmlHttpRequest.send(null);
}
function getLocalTime(nS) {
return new Date(parseInt(nS) * 1000)
.toLocaleString()
.replace(/:\d{1,2}$/, ' ');
}
//鍥炶皟鍑芥暟
function zswFun() {
var readyState = xmlHttpRequest.readyState;
var status = xmlHttpRequest.status;
if (readyState == 4 && status == 200) {
var retext = xmlHttpRequest.responseText;
// alert(retext);
var rejsonobj = JSON.parse(retext);
defbackfun(rejsonobj);
}
}
</script>
<script>
function loadData() {
var httpdata = 'sid=MT_WEB_00103&reqSource=pc&data={}&key=test';
httppost(httpdata, function(redata) {
document.getElementById('zxbody').innerHTML = redata.data;
});
}
loadData();
</script>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment