paySucc.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" href="./index.css">
  8. <title>支付成功</title>
  9. <script>
  10. let ua = navigator.userAgent.toLowerCase();
  11. let isWeixin = ua.indexOf('micromessenger') != -1;
  12. if (!isWeixin) {
  13. window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=888"
  14. }
  15. function stopBack() {
  16. history.pushState(null, null, document.URL);
  17. window.addEventListener('popstate', function () {
  18. history.pushState(null, null, document.URL);
  19. });
  20. }
  21. function closeHandle() {
  22. document.addEventListener('WeixinJSBridgeReady', function () {
  23. WeixinJSBridge.call('closeWindow');
  24. }, false);
  25. WeixinJSBridge.call('closeWindow');
  26. }
  27. window.onload = function () {
  28. stopBack()
  29. }
  30. </script>
  31. </head>
  32. <body>
  33. <div class="main">
  34. <img src="./succImg.jpg" alt="" class="mainImg" style="margin-top: 100px;">
  35. <div class="back" onclick="closeHandle()">返回客服</div>
  36. </div>
  37. </body>
  38. </html>