project init
This commit is contained in:
45
public/gobank.html
Normal file
45
public/gobank.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>CCB</title>
|
||||
<style>
|
||||
form {
|
||||
height: 1px;
|
||||
width: 1px;
|
||||
opacity: 0
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
加载中,请稍候
|
||||
<form id="form" method="post">
|
||||
<input id="MERCHANTID" name="MERCHANTID" />
|
||||
<input id="POSID" name="POSID" />
|
||||
<input id="BRANCHID" name="BRANCHID" />
|
||||
<input id="ORDERID" name="ORDERID" />
|
||||
<input id="PAYMENT" name="PAYMENT" />
|
||||
<input id="CURCODE" name="CURCODE" />
|
||||
<input id="REMARK1" name="REMARK1" />
|
||||
<input id="REMARK2" name="REMARK2" />
|
||||
<input id="TXCODE" name="TXCODE" />
|
||||
<input id="MAC" name="MAC" />
|
||||
<input id="submit" type="submit" />
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function submit(data) {
|
||||
document.getElementById('form').action = data.url;
|
||||
delete data.url
|
||||
for (const key in data) {
|
||||
if (data.hasOwnProperty(key)) {
|
||||
const element = data[key];
|
||||
document.getElementById(key).value = element
|
||||
}
|
||||
}
|
||||
document.getElementById('submit').click();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user