You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dongfeng-pay/shop/views/pay/payfor.html

81 lines
3.1 KiB
Go

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="shortcut icon" type="tmpay/image/x-icon" href="../../static/img/icon.ico">
<link rel="stylesheet" type="text/css" href="../../static/css/hy_basic.css">
</head>
<body style="">
<div class="tastesdk-box" style="margin-top: 15%;">
<div class="main">
<div class="typedemo" style="height: 600px;">
<div style="z-index:100;background:#000000;position:absolute;left:0px;top:0px;display:none;"
id="cover"></div>
<div class="container">
<div class="c-box1 clearfix">
<div class="bt_border-green">
<div class="hy-hd0815 vip20130401 c30 clearfix">
<div class="pay_box fl">
<ul class="disc">
{{if eq .statusCode "00"}}
<h3><img src="../../static/img/barcode/joker.png"></h3>
<li>
{{.orderPrice}}
</li>
<li>
{{.orderNo}}
</li>
{{else}}
<li>
{{.statusMsg}}
</li>
{{end}}
<li>
<span id="status"></span>
</li>
<li>
5!
</li>
<br>
<li style="float: right;list-style: none;">
<a href="/youxi" style="text-decoration: none;" class="c00"></a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="../../static/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
//每隔2秒检测cookie中订单状态
var count = 0;
setInterval('getSession()', 3000);
function getSession() {
if (count <= 300) {
$.ajax({
type: "GET",
url: "/queryOrderStatus.py/" +{{.orderNo}},
dataType: "JSON",
success: function (res) {
console.info(res.code);
if (res.code == "9") {
$("#status").val(res.tradeStatus);
window.location.href = "/queryOrder.py/";
}
}
});
count++;
}
}
</script>
</body>
</html>