index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  6. <link rel="stylesheet" href="style/style.css" />
  7. <title></title>
  8. </head>
  9. <body>
  10. <div class="box downloadbox">
  11. <div class="bg"></div>
  12. <div class="truning"><a href="javascript:history.back(-1)"><img src="images/img_04.png"></a></div>
  13. <div class="binbox">
  14. <div ><a href="" id="android"><img src="images/img_02.png"></a></div>
  15. <div><a href="" id="ios"><img src="images/img_03.png"></a></div>
  16. </div>
  17. </div>
  18. </body>
  19. <script type="text/javascript" src="js/fontsize.js" ></script>
  20. <script type="text/javascript" src="js/jquery.js" ></script>
  21. <script>
  22. $.ajax({
  23. type:"post",
  24. url:"https://sc.xxuns.com/api/Publics/config_info",
  25. async : true,
  26. jsonpCallback:"callback_success",
  27. data:{
  28. phone: $('.number').val(), // 手机号
  29. event:"register"
  30. },
  31. success : function(res) {
  32. console.log(res)
  33. var androidhrf = res.data.android_package
  34. document.getElementById('android').href=androidhrf
  35. var ios_package = res.data.ios_package
  36. document.getElementById('ios').href=ios_package
  37. },
  38. error : function() {
  39. }
  40. })
  41. </script>
  42. </html>