index.html 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Document</title>
  8. <link rel="stylesheet" href="./css/index.css">
  9. <script src="./utils/size.js"></script>
  10. </head>
  11. <body>
  12. <div class="container">
  13. <img class="bg" src="./image/index/indexbg.jpg" alt="">
  14. <a href="./view/question.html" class="btn"></a>
  15. </div>
  16. <script>
  17. //获取用户信息
  18. var jionData = {
  19. "code": GetQueryString('code')
  20. }
  21. alert(GetQueryString('code'))
  22. $.ajax({
  23. url: "https://readertest.lingjiao.cn/activity/wx/ucenter/wxlogin",
  24. type: 'GEt',
  25. contentType:'application/json;charset=utf-8',
  26. data: jionData,
  27. success: function (userData) {
  28. alert(JSON.stringify(userData))
  29. },
  30. error: function () {
  31. alert('失败')
  32. }
  33. });
  34. </script>
  35. </body>
  36. </html>