You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

138 lines
4.1 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  6. <link rel="stylesheet" href="../css/reset.css" />
  7. <link rel="stylesheet" href="../css/onlinePay.css" />
  8. <link rel="stylesheet" href="../css/detailCell.css" />
  9. <title>支付成功</title>
  10. <!-- 百度统计star -->
  11. <script>
  12. var _hmt = _hmt || [];
  13. (function() {
  14. var hm = document.createElement("script");
  15. hm.src = "//hm.baidu.com/hm.js?3d4ede42cef05a99fcd8bda849831ada";
  16. var s = document.getElementsByTagName("script")[0];
  17. s.parentNode.insertBefore(hm, s);
  18. })();
  19. </script>
  20. <!-- 百度统计end -->
  21. </head>
  22. <body style="background: white;" onload="successinit_page()">
  23. <div class="container">
  24. <header id="header" class="header">
  25. <!--单元格开始-->
  26. <!--单元格结束-->
  27. </header>
  28. <!-- 支付后 -->
  29. <div id="havepay" class="havepay" style="display: block;">
  30. <div class="success txtzh" style="background: url(../img/paySuccess.png) no-repeat;background-position: 50% 35%; background-size: 40px;">支付成功</div>
  31. </div>
  32. <!-- 支付后 end -->
  33. </div>
  34. <!-- container end -->
  35. </body>
  36. <script type="text/javascript">
  37. function click_orderlist() {
  38. var payURL = "http://xmwx.zhizhuchuxing.cn/core/my_order.asp";
  39. // 跳转前将URL编码
  40. payURL = encodeURI(payURL);
  41. window.location.href = payURL;
  42. }
  43. var orderno = getPar('orderno');
  44. function successinit_page() {
  45. var url = "http://xmwx.zhizhuchuxing.cn/core/order_detail.asp?orderno=" + orderno;
  46. // var url = "http://xmwx.zhizhuchuxing.cn/wechat/Core/getOpenid.php";
  47. get_virtual_user_list(url);
  48. }
  49. // 从上一页的链接上获取参数
  50. /*======================网络请求的Ajax的代码=======================*/
  51. // 创建一个Ajax对象
  52. if (window.ActiveXObject) {
  53. var myreq = new ActiveXObject("Microsoft.XMLHTTP");
  54. } else {
  55. var myreq = new XMLHttpRequest();
  56. }
  57. // 请求方法,传入URL
  58. function get_virtual_user_list(myURL) {
  59. var tnowtime = getDateTime(4);
  60. // m_url = 接口
  61. // var myURL = m_url + 'op=userlink&vuser=' + cvuserid + '&tt=' + tnowtime;
  62. // var myURL = "http://xmwx.zhizhuchuxing.cn/core/area_target.asp?keyword=";
  63. myreq.open("get", myURL, true);
  64. // 接收的数据交给哪个函数处理
  65. myreq.onreadystatechange = show_user_list;
  66. myreq.send();
  67. }
  68. function show_user_list() {
  69. if (myreq.readyState == 4) {
  70. // newstr 就是接收到的数据
  71. var newstr = myreq.responseText;
  72. var httpData = JSON.parse(newstr);
  73. //
  74. reload_Info(httpData);
  75. }
  76. }
  77. function getDateTime(nTypeFlag) {
  78. var tNowTime = new Date();
  79. var myYear = ';' + tNowTime.getFullYear() + ';';
  80. var myMonth = ';' + (tNowTime.getMonth() + 1 - 0) + ';';
  81. var myDay = ';' + tNowTime.getDate() + ';';
  82. var myHour = ';' + tNowTime.getHours() + ';';
  83. var myMinu = ';' + tNowTime.getMinutes() + ';';
  84. var mySecond = ';' + tNowTime.getSeconds() + ';';
  85. if (myMonth.length < 4) myMonth = '0' + myMonth;
  86. if (myDay.length < 4) myDay = '0' + myDay;
  87. if (myHour.length < 4) myHour = '0' + myHour;
  88. if (myMinu.length < 4) myMinu = '0' + myMinu;
  89. if (mySecond.length < 4) mySecond = '0' + mySecond;
  90. var cNewTimeStr;
  91. //alert(tNowTime);
  92. switch (nTypeFlag + 1 - 1) {
  93. case 0:
  94. cNewTimeStr = myYear + '-' + myMonth + '-' + myDay;
  95. break;
  96. case 1:
  97. cNewTimeStr = myYear + myMonth + myDay;
  98. break;
  99. case 2:
  100. cNewTimeStr = myHour + ':' + myMinu + ':' + mySecond;
  101. break;
  102. case 3:
  103. cNewTimeStr = myHour + myMinu + mySecond;
  104. break;
  105. case 4:
  106. cNewTimeStr = myYear + myMonth + myDay + myHour + myMinu + mySecond;
  107. break;
  108. case 5:
  109. cNewTimeStr = myYear + '年' + myMonth + '月' + myDay + '日';
  110. break;
  111. case 6:
  112. cNewTimeStr = myYear;
  113. break;
  114. case 7:
  115. cNewTimeStr = myYear + '-' + myMonth;
  116. break;
  117. default:
  118. cNewTimeStr = myYear + '-' + myMonth + '-' + myDay + ' ' + myHour + ':' + myMinu + ':' + mySecond;
  119. break;
  120. }
  121. cNewTimeStr = cNewTimeStr.replace(/;/g, "");
  122. return cNewTimeStr;
  123. }
  124. </script>
  125. </html>