wechat.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>pay</title>
  6. </head>
  7. <body>
  8. <div class="loading"></div>
  9. </body>
  10. <script type="text/javascript" src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  11. <script>
  12. function getQueryString(name, url) {
  13. let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  14. let r = url.substr(1).match(reg);
  15. if (r != null) {
  16. return unescape(r[2]);
  17. }
  18. return null;
  19. }
  20. // let mweb_url = getQueryString('mweb_url', window.location.search);
  21. let url = window.location.search
  22. let mweb_url = url.substring(10)
  23. console.log(mweb_url)
  24. $(function() {
  25. // test
  26. // let redirect_url = 'https://nc-fele-mips.elken.com:8015/return.html';
  27. // prod
  28. let redirect_url = 'https://fele.ncshop.elken.com/return.html';
  29. console.log(mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
  30. window.location.replace(mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
  31. });
  32. </script>
  33. <style>
  34. html{
  35. width: 100%;
  36. height: 100%;
  37. overflow: hidden;
  38. }
  39. body{
  40. width: 100%;
  41. height: 100%;
  42. overflow: hidden;
  43. }
  44. .payment {
  45. width: 100%;
  46. height: 100%;
  47. }
  48. .loading {
  49. position: relative;
  50. width: 100%;
  51. height: 100%;
  52. }
  53. .loading::before {
  54. content: '';
  55. position: absolute;
  56. top: 50%;
  57. left: 50%;
  58. transform: translate(-50%, -50%);
  59. width: 50px;
  60. height: 50px;
  61. border-radius: 50%;
  62. border: 3px solid rgba(0, 0, 0, .2);
  63. border-top-color: #000;
  64. animation: rotate 1s infinite linear;
  65. }
  66. @keyframes rotate {
  67. to {
  68. transform: translate(-50%, -50%) rotate(360deg);
  69. }
  70. }
  71. </style>
  72. </html>