exchangePhoneDownApp.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. <style>
  20. @media (max-width: 800px) {
  21. .free-code-con {
  22. width: 100%;
  23. }
  24. }
  25. </style>
  26. </head>
  27. <div class="top free-code-con" style="position:relative;background: #169af2;">
  28. <div class="bottom-img">
  29. <div class="center-pic">
  30. <div class="recv-cont" id="recv_cont">
  31. <div onclick="handleClick2()" style="position: relative">
  32. <div class="recv-btn" id="recv_btn">
  33. <img src="../static/img/experienceBtn.png" alt="" style="width: 100%">
  34. <div class="btn-bg-style">
  35. <span>下载双子星APP</span>
  36. <img src="../static/img/xing_icon.png" alt="">
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <script type="text/javascript">
  45. // var baseUrl = 'https://per.cs.se.androidscloud.com';
  46. let code = '', downloadId = '', platform = '', version = '';
  47. goAppDownload();
  48. function goAppDownload() {
  49. const data = {
  50. code: GetRequest().code,
  51. platform: GetRequest().platform
  52. }
  53. $.ajax({
  54. url: baseUrl + `/api/user/goPhoneAppDownload?code=${data.code}&platform=${data.platform}`,
  55. type: 'get',
  56. contentType: "application/json",
  57. dataType: 'json',
  58. cache: false,
  59. success: function (res) {
  60. if (res.status === 0) {
  61. code = res.data.code;
  62. downloadId = res.data.downloadId;
  63. platform = res.data.platform;
  64. version = res.data.version;
  65. } else {
  66. toastr.error(res.msg)
  67. }
  68. }
  69. })
  70. }
  71. function handleClick2() {
  72. const data = {
  73. code: code,
  74. platform: platform,
  75. version: version,
  76. type: 5
  77. }
  78. $.ajax({
  79. url: baseUrl + '/api/user/v1/ditchClient/addChannelAppDownload',
  80. data: JSON.stringify(data),
  81. type: 'post',
  82. contentType: "application/json",
  83. dataType: 'json',
  84. cache: false,
  85. success: function (res) {
  86. if (res.status === 0) {
  87. if(baseUrl.includes('per.cs.se.androidscloud.com')){
  88. window.location.href = `https://per.cs.se.androidscloud.com/file-center/fileOperate/downloadFile?id=${downloadId}`;
  89. }else{
  90. window.location.href = `https://wjzx.androidscloud.com:9091/file-center/fileOperate/downloadFile?id=${downloadId}`;
  91. }
  92. } else {
  93. toastr.error(res.msg)
  94. }
  95. }
  96. })
  97. }
  98. </script>
  99. </body>
  100. <style>
  101. #toast-container>.toast-error {
  102. background-image: none !important;
  103. }
  104. .toast-error {
  105. background-color: rgba(0, 0, 0, 0.8);
  106. }
  107. #toast-container>div {
  108. font-size: 14px;
  109. min-width: 80px !important;
  110. padding: 12px !important;
  111. box-shadow: none;
  112. }
  113. @media (max-width: 480px) and (min-width: 241px) {
  114. #toast-container>div {
  115. min-width: 80px !important;
  116. width: auto;
  117. }
  118. }
  119. @media only screen and (min-width: 640px) {
  120. .toast-center-center {
  121. top: 50%;
  122. left: 50%;
  123. transform: translate(-50%, -50%);
  124. }
  125. }
  126. @media only screen and (max-width: 640px) {
  127. .toast-center-center {
  128. top: 50%;
  129. left: 50%;
  130. transform: translate(-50%, -50%);
  131. }
  132. }
  133. input::-webkit-input-placeholder {
  134. color: #BBBBBB;
  135. }
  136. input::-moz-placeholder {
  137. /* Mozilla Firefox 19+ */
  138. color: #BBBBBB;
  139. }
  140. input:-moz-placeholder {
  141. /* Mozilla Firefox 4 to 18 */
  142. color: #BBBBBB;
  143. }
  144. input:-ms-input-placeholder {
  145. /* Internet Explorer 10-11 */
  146. color: #BBBBBB;
  147. }
  148. </style>
  149. </html>