Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
announcement-static
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
announcement-static
Commits
265d0e95
Commit
265d0e95
authored
Mar 12, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注册服务协议页面
parent
92268608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
105 additions
and
0 deletions
+105
-0
aggrement.html
aggrement.html
+105
-0
No files found.
aggrement.html
0 → 100644
View file @
265d0e95
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment