188 lines
6.2 KiB
HTML
188 lines
6.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
|
|
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
|
|
<title>在线支付</title>
|
|
<link rel="stylesheet" type="text/css" href="/css/api.css" />
|
|
<link rel="stylesheet" type="text/css" href="/css/content.css" />
|
|
<script type="text/javascript" src="/scripts/jquery-2.0.2.min.js"></script>
|
|
<script type="text/javascript" src="/scripts/jquery.cookie.min.js"></script>
|
|
<!--<script type="text/javascript" src="/scripts/iscroll.js"></script>-->
|
|
<script type="text/javascript" src="/script/main.js?t=0"></script>
|
|
<script type="text/javascript" src="/layer/layer.js"></script>
|
|
<script type="text/javascript" src="/Scripts/long.js"></script>
|
|
<script type="text/javascript" src="/script/moment.js"></script>
|
|
<script type="text/javascript" src="/script/api.js"></script>
|
|
<style type="text/css">
|
|
html, body {
|
|
overflow: hidden;
|
|
}
|
|
|
|
#wrapper {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.pullDown {
|
|
position: absolute;
|
|
top: -1.25rem;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 100;
|
|
text-align: center;
|
|
display: none;
|
|
}
|
|
|
|
.pullUp {
|
|
position: absolute;
|
|
bottom: -1.25rem;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 100;
|
|
text-align: center;
|
|
display: none;
|
|
}
|
|
|
|
.pullDown.loading, .pullUp.loading, .pullDown.refresh, .pullUp.refresh {
|
|
display: block;
|
|
}
|
|
.pageiframe {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
var userId = null;
|
|
var LoginId = null;
|
|
var opentimes = null, sInterval0=null;
|
|
var t = 0;
|
|
var ResultId = 0;
|
|
var ischeckpayed = 0;
|
|
var etype = 0;
|
|
var PayID = "", payurl = "";
|
|
var title = "支付宝付款";
|
|
var myScroll = null;
|
|
var pullDown = 1; // 下拉刷新避免多次执行
|
|
var pullUp = 1; // 上拉加载避免多次执行
|
|
var downHeight = 0;
|
|
var upHeight = 0;
|
|
var isload = true;//设置是否终止滚动加载
|
|
var curScrollHeight = 0;//当前滚动位置
|
|
var curCount = 1;//计数器,防止滚动时重复执行加载下一页
|
|
$(document).ready(function () {
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
var tt = $.getUrlParam("t");
|
|
if (tt != null) {
|
|
t = tt;
|
|
}
|
|
var tpayurl = $.getUrlParam("payurl");
|
|
if (tpayurl != null) {
|
|
payurl = tpayurl;
|
|
}
|
|
var tPayID = $.getUrlParam("PayID");
|
|
if (tPayID != null) {
|
|
PayID = tPayID;
|
|
}
|
|
var tResultId = $.getUrlParam("ResultId");
|
|
if (tResultId != null) {
|
|
ResultId = tResultId;
|
|
}
|
|
if (t == 1) {
|
|
title = "微信支付付款";
|
|
}
|
|
$("header h1").html(title);
|
|
$(document).attr("title", title);
|
|
var url = "/pay/pay.aspx?ResultId=" + ResultId + "";
|
|
if (payurl != "") {
|
|
url = payurl;
|
|
}
|
|
var html = "<iframe src=\"" + url + "\" class=\"pageiframe\" id=\"pageiframe\" frameborder=\"0\" scrolling=\"auto\" noresize style=\"height:"+ $("#wrapper").height() + "px\"></iframe>";
|
|
$("#wrapper_content").html(html);
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
var opensetInterval = setInterval(function () {
|
|
$(".ajaxLoader").addClass("uhide");
|
|
clearInterval(opensetInterval);
|
|
}, 3000);
|
|
if (ResultId > 0) {
|
|
sInterval0 = setInterval(function () {
|
|
oniswxpayed();
|
|
}, 1000);
|
|
}
|
|
});
|
|
|
|
function rdata() {
|
|
|
|
|
|
}
|
|
function oniswxpayed() {
|
|
if (ischeckpayed == 0) {
|
|
ischeckpayed = 1;
|
|
var datas = {
|
|
"ResultId": ResultId
|
|
}
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/apiajax.ashx?action=getIFPayed",
|
|
data: datas,
|
|
dataType: "json",
|
|
error: function (xhr) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
ischeckpayed = 0;
|
|
if (data.status == 1) {
|
|
clearInterval(sInterval0);
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
if (userId != null && LoginId != null) {
|
|
location.replace("myorders.html?pay=1");
|
|
} else {
|
|
tishi3("支付成功");
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body class="wrap">
|
|
<header>
|
|
<div class="ub">
|
|
<div class="nav-btn" id="nav-left" style=" margin:0; padding:0; padding-top:0.2em; min-width:3em" onclick="closeWin()">
|
|
|
|
<img src="../image/faifei.png" style="margin-left:0; margin-top:0em; height:1.2em;width:1.2em;" />
|
|
|
|
|
|
</div>
|
|
<h1 class="ub-f1">
|
|
|
|
</h1>
|
|
<div class="nav-btn blue" id="nav-right" style=" margin:0; padding:0; min-width:3em; padding-right:1em;">
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<section class="ub-f1" id="wrapper">
|
|
<div id="wrapper_content">
|
|
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<div class="ajaxLoader ub ub-ac uhide" onclick="reload()">
|
|
<div class="ub ub-ac ub-ver"><img src="image/load.gif" /><br>正在加载...</div>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|