123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
-
- </head>
- <script type="text/javascript">
- // var baseUrl = 'https://per.cs.se.androidscloud.com';
- let code = '', downloadId = '', platform = '', version = '';
- goAppDownload();
- function goAppDownload() {
- const data = {
- code: GetRequest().code,
- platform: GetRequest().platform
- }
- $.ajax({
- url: baseUrl + `/api/user/goPhoneAppDownload?code=${data.code}&platform=${data.platform}`,
- type: 'get',
- contentType: "application/json",
- dataType: 'json',
- cache: false,
- success: function (res) {
- if (res.status === 0) {
- code = res.data.code;
- downloadId = res.data.downloadId;
- platform = res.data.platform;
- version = res.data.version;
- } else {
- toastr.error(res.msg)
- }
- }
- })
- }
- function handleClick2() {
- const data = {
- code: code,
- platform: platform,
- version: version,
- type: 5
- }
- $.ajax({
- url: baseUrl + '/api/user/v1/ditchClient/addChannelAppDownload',
- data: JSON.stringify(data),
- type: 'post',
- contentType: "application/json",
- dataType: 'json',
- cache: false,
- success: function (res) {
- if (res.status === 0) {
- if(baseUrl == 'https://per.cs.se.androidscloud.com'){
- window.location.href = `https://per.cs.se.androidscloud.com/file-center/fileOperate/downloadFile?id=${downloadId}`;
- }else{
- window.location.href = `https://wjzx.androidscloud.com:9091/file-center/fileOperate/downloadFile?id=${downloadId}`;
- }
- } else {
- toastr.error(res.msg)
- }
- }
- })
- }
- </script>
- </body>
- <style>
- #toast-container>.toast-error {
- background-image: none !important;
- }
- .toast-error {
- background-color: rgba(0, 0, 0, 0.8);
- }
- #toast-container>div {
- font-size: 14px;
- min-width: 80px !important;
- padding: 12px !important;
- box-shadow: none;
- }
- @media (max-width: 480px) and (min-width: 241px) {
- #toast-container>div {
- min-width: 80px !important;
- width: auto;
- }
- }
- @media only screen and (min-width: 640px) {
- .toast-center-center {
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- }
- @media only screen and (max-width: 640px) {
- .toast-center-center {
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- }
- input::-webkit-input-placeholder {
- color: #BBBBBB;
- }
- input::-moz-placeholder {
- /* Mozilla Firefox 19+ */
- color: #BBBBBB;
- }
- input:-moz-placeholder {
- /* Mozilla Firefox 4 to 18 */
- color: #BBBBBB;
- }
- input:-ms-input-placeholder {
- /* Internet Explorer 10-11 */
- color: #BBBBBB;
- }
- </style>
- </html>
|