|
@@ -2,42 +2,63 @@
|
|
|
<html lang="zh-CN">
|
|
|
|
|
|
<head>
|
|
|
- <meta charset="UTF-8">
|
|
|
- <title>双子星</title>
|
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
|
- <link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
|
|
|
- <link rel="stylesheet" href="../static/js/vender/bootstrap/css/bootstrap.min.css">
|
|
|
- <link rel="stylesheet" href="../static/css/normalize2.css">
|
|
|
- <link rel="stylesheet" href="../static/css/experience2.css">
|
|
|
- <link rel="stylesheet" href="../static/js/vender/toastr/toastr.min.css">
|
|
|
- <script src="../static/js/vender/jquery-3.4.1.min.js"></script>
|
|
|
- <script src="../static/js/vender/bootstrap/js/bootstrap.min.js"></script>
|
|
|
- <script src="../static/js/vender/toastr/toastr.min.js"></script>
|
|
|
- <script src="../static/js/vender/config.js"></script>
|
|
|
- <script>
|
|
|
- toastr.options.positionClass = 'toast-center-center';
|
|
|
- </script>
|
|
|
+
|
|
|
</head>
|
|
|
-<div class="top free-code-con" style="position:relative;background: #169af2;">
|
|
|
- <div class="bottom-img">
|
|
|
- <div class="center-pic">
|
|
|
- <div class="recv-cont" id="recv_cont">
|
|
|
- <div onclick="handleClick2()" style="position: relative">
|
|
|
- <div class="recv-btn" id="recv_btn">
|
|
|
- <img src="../static/img/experienceBtn.png" alt="" style="width: 100%">
|
|
|
- <div class="btn-bg-style">
|
|
|
- <span>下载双子星APP</span>
|
|
|
- <img src="../static/img/xing_icon.png" alt="">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
|
|
|
-</div>
|
|
|
<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>
|