酷炫数据营销平台

main.html 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. <style>
  8. html,body {
  9. padding: 0;
  10. margin: 0;
  11. width: 175px;
  12. height: 175px;
  13. text-align: center;
  14. }
  15. div {
  16. width: 175px;
  17. height: 175px;
  18. line-height: 175px;
  19. text-align: center;
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. }
  24. .icon {
  25. display: inline-block;
  26. vertical-align: middle;
  27. width: 20px;
  28. height: 20px;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <div class="impowerBox">
  34. <div class="wrp_code">
  35. <img class="icon" src="./other/right.png" alt="">
  36. 扫码成功
  37. </div>
  38. </div>
  39. <script src="./jquery-2.1.0.js"></script>
  40. <script>
  41. function GetRequest() {
  42. var url = decodeURI(location.search); //获取url中"?"符后的字串
  43. var theRequest = new Object();
  44. if (url.indexOf("?") != -1) {
  45. var str = url.substr(1);
  46. strs = str.split("&");
  47. for(var i = 0; i < strs.length; i ++) {
  48. theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
  49. }
  50. }
  51. return theRequest;
  52. }
  53. data = GetRequest();
  54. console.log(GetRequest())
  55. $.ajax({
  56. url: '/v2/api/wx/scan?code='+data.code+'&state='+data.state,
  57. })
  58. </script>
  59. </body>
  60. </html>