|
- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
- <link rel="stylesheet" href="../css/reset.css" />
- <link rel="stylesheet" href="../css/onlinePay.css" />
- <link rel="stylesheet" href="../css/detailCell.css" />
-
-
- <title>支付成功</title>
- <!-- 百度统计star -->
- <script>
- var _hmt = _hmt || [];
- (function() {
- var hm = document.createElement("script");
- hm.src = "//hm.baidu.com/hm.js?3d4ede42cef05a99fcd8bda849831ada";
- var s = document.getElementsByTagName("script")[0];
- s.parentNode.insertBefore(hm, s);
- })();
- </script>
-
- <!-- 百度统计end -->
- </head>
-
- <body style="background: white;" onload="successinit_page()">
- <div class="container">
- <header id="header" class="header">
- <!--单元格开始-->
-
- <!--单元格结束-->
- </header>
- <!-- 支付后 -->
- <div id="havepay" class="havepay" style="display: block;">
- <div class="success txtzh" style="background: url(../img/paySuccess.png) no-repeat;background-position: 50% 35%; background-size: 40px;">支付成功</div>
-
- </div>
- <!-- 支付后 end -->
- </div>
- <!-- container end -->
- </body>
- <script type="text/javascript">
- function click_orderlist() {
- var payURL = "http://xmwx.zhizhuchuxing.cn/core/my_order.asp";
- // 跳转前将URL编码
- payURL = encodeURI(payURL);
- window.location.href = payURL;
- }
- var orderno = getPar('orderno');
-
- function successinit_page() {
- var url = "http://xmwx.zhizhuchuxing.cn/core/order_detail.asp?orderno=" + orderno;
- // var url = "http://xmwx.zhizhuchuxing.cn/wechat/Core/getOpenid.php";
- get_virtual_user_list(url);
- }
-
- // 从上一页的链接上获取参数
-
- /*======================网络请求的Ajax的代码=======================*/
- // 创建一个Ajax对象
- if (window.ActiveXObject) {
- var myreq = new ActiveXObject("Microsoft.XMLHTTP");
- } else {
- var myreq = new XMLHttpRequest();
- }
- // 请求方法,传入URL
- function get_virtual_user_list(myURL) {
- var tnowtime = getDateTime(4);
- // m_url = 接口
- // var myURL = m_url + 'op=userlink&vuser=' + cvuserid + '&tt=' + tnowtime;
- // var myURL = "http://xmwx.zhizhuchuxing.cn/core/area_target.asp?keyword=";
- myreq.open("get", myURL, true);
- // 接收的数据交给哪个函数处理
- myreq.onreadystatechange = show_user_list;
- myreq.send();
- }
-
- function show_user_list() {
- if (myreq.readyState == 4) {
- // newstr 就是接收到的数据
- var newstr = myreq.responseText;
- var httpData = JSON.parse(newstr);
- //
- reload_Info(httpData);
- }
- }
-
- function getDateTime(nTypeFlag) {
- var tNowTime = new Date();
- var myYear = ';' + tNowTime.getFullYear() + ';';
- var myMonth = ';' + (tNowTime.getMonth() + 1 - 0) + ';';
- var myDay = ';' + tNowTime.getDate() + ';';
- var myHour = ';' + tNowTime.getHours() + ';';
- var myMinu = ';' + tNowTime.getMinutes() + ';';
- var mySecond = ';' + tNowTime.getSeconds() + ';';
- if (myMonth.length < 4) myMonth = '0' + myMonth;
- if (myDay.length < 4) myDay = '0' + myDay;
- if (myHour.length < 4) myHour = '0' + myHour;
- if (myMinu.length < 4) myMinu = '0' + myMinu;
- if (mySecond.length < 4) mySecond = '0' + mySecond;
- var cNewTimeStr;
- //alert(tNowTime);
- switch (nTypeFlag + 1 - 1) {
- case 0:
- cNewTimeStr = myYear + '-' + myMonth + '-' + myDay;
- break;
- case 1:
- cNewTimeStr = myYear + myMonth + myDay;
- break;
- case 2:
- cNewTimeStr = myHour + ':' + myMinu + ':' + mySecond;
- break;
- case 3:
- cNewTimeStr = myHour + myMinu + mySecond;
- break;
- case 4:
- cNewTimeStr = myYear + myMonth + myDay + myHour + myMinu + mySecond;
- break;
- case 5:
- cNewTimeStr = myYear + '年' + myMonth + '月' + myDay + '日';
- break;
- case 6:
- cNewTimeStr = myYear;
- break;
- case 7:
- cNewTimeStr = myYear + '-' + myMonth;
- break;
- default:
- cNewTimeStr = myYear + '-' + myMonth + '-' + myDay + ' ' + myHour + ':' + myMinu + ':' + mySecond;
- break;
- }
- cNewTimeStr = cNewTimeStr.replace(/;/g, "");
- return cNewTimeStr;
- }
- </script>
-
- </html>
|