exchangePhoneDownApp.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>双子星</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  7. <link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
  8. <link rel="stylesheet" href="../static/js/vender/bootstrap/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/css/normalize2.css">
  10. <link rel="stylesheet" href="../static/css/experience2.css">
  11. <link rel="stylesheet" href="../static/js/vender/toastr/toastr.min.css">
  12. <script src="../static/js/vender/jquery-3.4.1.min.js"></script>
  13. <script src="../static/js/vender/bootstrap/js/bootstrap.min.js"></script>
  14. <script src="../static/js/vender/toastr/toastr.min.js"></script>
  15. <script src="../static/js/vender/config.js"></script>
  16. <script>
  17. toastr.options.positionClass = 'toast-center-center';
  18. </script>
  19. </head>
  20. <div class="top free-code-con" style="position:relative;background: #169af2;">
  21. <div class="bottom-img">
  22. <div class="center-pic">
  23. <div class="recv-cont" id="recv_cont">
  24. <div onclick="handleClick2()" style="position: relative">
  25. <div class="recv-btn" id="recv_btn">
  26. <img src="../static/img/experienceBtn.png" alt="" style="width: 100%">
  27. <div class="btn-bg-style">
  28. <span>下载双子星APP</span>
  29. <img src="../static/img/xing_icon.png" alt="">
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <script type="text/javascript">
  38. let code = '', downloadId = '', platform = '', fileIp = '', version = '';
  39. goAppDownload();
  40. function goAppDownload() {
  41. const data = {
  42. code: GetRequest().code,
  43. platform: GetRequest().platform
  44. }
  45. $.ajax({
  46. url: baseUrl + `/api/activity/ditch/goAppDownload?code=${data.code}&platform=${data.platform}`,
  47. type: 'get',
  48. contentType: "application/json",
  49. dataType: 'json',
  50. cache: false,
  51. success: function (res) {
  52. if (res.status === 0) {
  53. fileIp = res.data.fileIp;
  54. code = res.data.code;
  55. downloadId = res.data.downloadId;
  56. platform = res.data.platform;
  57. version = res.data.version;
  58. } else {
  59. toastr.error(res.msg)
  60. }
  61. }
  62. })
  63. }
  64. function handleClick2() {
  65. const data = {
  66. code: code,
  67. platform: platform,
  68. version: version,
  69. type: 5
  70. }
  71. $.ajax({
  72. url: baseUrl + '/api/activity/ditch/addChannelAppDownload',
  73. data: JSON.stringify(data),
  74. type: 'post',
  75. contentType: "application/json",
  76. dataType:"json",
  77. headers: {
  78. Authorization: '123'
  79. },
  80. cache: false,
  81. success: function (res) {
  82. if (res.status === 0) {
  83. window.location.href = fileIp + downloadId;
  84. } else {
  85. toastr.error(res.msg)
  86. }
  87. }
  88. })
  89. }
  90. </script>
  91. </body>
  92. <style>
  93. #toast-container>.toast-error {
  94. background-image: none !important;
  95. }
  96. .toast-error {
  97. background-color: rgba(0, 0, 0, 0.8);
  98. }
  99. #toast-container>div {
  100. font-size: 14px;
  101. min-width: 80px !important;
  102. padding: 12px !important;
  103. box-shadow: none;
  104. }
  105. @media (max-width: 480px) and (min-width: 241px) {
  106. #toast-container>div {
  107. min-width: 80px !important;
  108. width: auto;
  109. }
  110. }
  111. @media only screen and (min-width: 640px) {
  112. .toast-center-center {
  113. top: 50%;
  114. left: 50%;
  115. transform: translate(-50%, -50%);
  116. }
  117. }
  118. @media only screen and (max-width: 640px) {
  119. .toast-center-center {
  120. top: 50%;
  121. left: 50%;
  122. transform: translate(-50%, -50%);
  123. }
  124. }
  125. input::-webkit-input-placeholder {
  126. color: #BBBBBB;
  127. }
  128. input::-moz-placeholder {
  129. /* Mozilla Firefox 19+ */
  130. color: #BBBBBB;
  131. }
  132. input:-moz-placeholder {
  133. /* Mozilla Firefox 4 to 18 */
  134. color: #BBBBBB;
  135. }
  136. input:-ms-input-placeholder {
  137. /* Internet Explorer 10-11 */
  138. color: #BBBBBB;
  139. }
  140. </style>
  141. </html>