exchangePhoneDownApp.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. // var baseUrl = 'https://per.cs.se.androidscloud.com';
  39. let code = '', downloadId = '', platform = '', version = '';
  40. goAppDownload();
  41. function goAppDownload() {
  42. const data = {
  43. code: GetRequest().code,
  44. platform: GetRequest().platform
  45. }
  46. $.ajax({
  47. url: baseUrl + `/api/user/goPhoneAppDownload?code=${data.code}&platform=${data.platform}`,
  48. type: 'get',
  49. contentType: "application/json",
  50. dataType: 'json',
  51. cache: false,
  52. success: function (res) {
  53. if (res.status === 0) {
  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/user/v1/ditchClient/addChannelAppDownload',
  73. data: JSON.stringify(data),
  74. type: 'post',
  75. contentType: "application/json",
  76. dataType: 'json',
  77. cache: false,
  78. success: function (res) {
  79. if (res.status === 0) {
  80. if(baseUrl.includes('per.cs.se.androidscloud.com')){
  81. window.location.href = `https://per.cs.se.androidscloud.com/file-center/fileOperate/downloadFile?id=${downloadId}`;
  82. }else{
  83. window.location.href = `https://wjzx.androidscloud.com:9091/file-center/fileOperate/downloadFile?id=${downloadId}`;
  84. }
  85. } else {
  86. toastr.error(res.msg)
  87. }
  88. }
  89. })
  90. }
  91. </script>
  92. </body>
  93. <style>
  94. #toast-container>.toast-error {
  95. background-image: none !important;
  96. }
  97. .toast-error {
  98. background-color: rgba(0, 0, 0, 0.8);
  99. }
  100. #toast-container>div {
  101. font-size: 14px;
  102. min-width: 80px !important;
  103. padding: 12px !important;
  104. box-shadow: none;
  105. }
  106. @media (max-width: 480px) and (min-width: 241px) {
  107. #toast-container>div {
  108. min-width: 80px !important;
  109. width: auto;
  110. }
  111. }
  112. @media only screen and (min-width: 640px) {
  113. .toast-center-center {
  114. top: 50%;
  115. left: 50%;
  116. transform: translate(-50%, -50%);
  117. }
  118. }
  119. @media only screen and (max-width: 640px) {
  120. .toast-center-center {
  121. top: 50%;
  122. left: 50%;
  123. transform: translate(-50%, -50%);
  124. }
  125. }
  126. input::-webkit-input-placeholder {
  127. color: #BBBBBB;
  128. }
  129. input::-moz-placeholder {
  130. /* Mozilla Firefox 19+ */
  131. color: #BBBBBB;
  132. }
  133. input:-moz-placeholder {
  134. /* Mozilla Firefox 4 to 18 */
  135. color: #BBBBBB;
  136. }
  137. input:-ms-input-placeholder {
  138. /* Internet Explorer 10-11 */
  139. color: #BBBBBB;
  140. }
  141. </style>
  142. </html>