channelDownApp.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. </head>
  5. <script type="text/javascript">
  6. // var baseUrl = 'https://per.cs.se.androidscloud.com';
  7. let code = '', downloadId = '', platform = '', version = '';
  8. goAppDownload();
  9. function goAppDownload() {
  10. const data = {
  11. code: GetRequest().code,
  12. platform: GetRequest().platform
  13. }
  14. $.ajax({
  15. url: baseUrl + `/api/user/goPhoneAppDownload?code=${data.code}&platform=${data.platform}`,
  16. type: 'get',
  17. contentType: "application/json",
  18. dataType: 'json',
  19. cache: false,
  20. success: function (res) {
  21. if (res.status === 0) {
  22. code = res.data.code;
  23. downloadId = res.data.downloadId;
  24. platform = res.data.platform;
  25. version = res.data.version;
  26. } else {
  27. toastr.error(res.msg)
  28. }
  29. }
  30. })
  31. }
  32. function handleClick2() {
  33. const data = {
  34. code: code,
  35. platform: platform,
  36. version: version,
  37. type: 5
  38. }
  39. $.ajax({
  40. url: baseUrl + '/api/user/v1/ditchClient/addChannelAppDownload',
  41. data: JSON.stringify(data),
  42. type: 'post',
  43. contentType: "application/json",
  44. dataType: 'json',
  45. cache: false,
  46. success: function (res) {
  47. if (res.status === 0) {
  48. if(baseUrl == 'https://per.cs.se.androidscloud.com'){
  49. window.location.href = `https://per.cs.se.androidscloud.com/file-center/fileOperate/downloadFile?id=${downloadId}`;
  50. }else{
  51. window.location.href = `https://wjzx.androidscloud.com:9091/file-center/fileOperate/downloadFile?id=${downloadId}`;
  52. }
  53. } else {
  54. toastr.error(res.msg)
  55. }
  56. }
  57. })
  58. }
  59. </script>
  60. </body>
  61. <style>
  62. #toast-container>.toast-error {
  63. background-image: none !important;
  64. }
  65. .toast-error {
  66. background-color: rgba(0, 0, 0, 0.8);
  67. }
  68. #toast-container>div {
  69. font-size: 14px;
  70. min-width: 80px !important;
  71. padding: 12px !important;
  72. box-shadow: none;
  73. }
  74. @media (max-width: 480px) and (min-width: 241px) {
  75. #toast-container>div {
  76. min-width: 80px !important;
  77. width: auto;
  78. }
  79. }
  80. @media only screen and (min-width: 640px) {
  81. .toast-center-center {
  82. top: 50%;
  83. left: 50%;
  84. transform: translate(-50%, -50%);
  85. }
  86. }
  87. @media only screen and (max-width: 640px) {
  88. .toast-center-center {
  89. top: 50%;
  90. left: 50%;
  91. transform: translate(-50%, -50%);
  92. }
  93. }
  94. input::-webkit-input-placeholder {
  95. color: #BBBBBB;
  96. }
  97. input::-moz-placeholder {
  98. /* Mozilla Firefox 19+ */
  99. color: #BBBBBB;
  100. }
  101. input:-moz-placeholder {
  102. /* Mozilla Firefox 4 to 18 */
  103. color: #BBBBBB;
  104. }
  105. input:-ms-input-placeholder {
  106. /* Internet Explorer 10-11 */
  107. color: #BBBBBB;
  108. }
  109. </style>
  110. </html>