123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
- <title>双子星云手机</title>
- <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/js/vender/toastr/toastr.min.css">
- <link rel="stylesheet" href="../static/css/cloudanniversaryActive.css">
- <script src="../static/js/vender/jquery-3.4.1.min.js"></script>
- <script src="../static/js/vender/toastr/toastr.min.js"></script>
- <script src="../static/js/vender/config.js"></script>
- <script src="../static/js/vender/crypto-js.js"></script>
- <script src="../static/js/vender/ase.js"></script>
- </head>
- <body>
- <div class="containers">
- <div class="banner-wrap">
- <div class="img-title">
- <img class="banner-img" src="../static/img/yunActivity/top.png">
- </div>
- <div class="img-downlond">
- <img class="downlond-img" src="../static/img/yunActivity/newdowlnd1.png">
- </div>
- <div class="midimg-downlond">
- <img class="downlond-midimg" src="../static/img/yunActivity/newdowlnd.png">
- </div>
- </div>
- </div>
- <script>
- toastr.options.positionClass = 'toast-center-center';
- toastr.options.timeOut = '3000';
- </script>
- <script type="text/javascript">
- // var baseUrl = 'http://14.18.190.141:1280'
- let timer, flag = true;
- var url = window.location.href;
- url = url.split('/')
- var loc = window.location.search,
- n1 = loc.length,//地址的总长度
- n2 = loc.indexOf("="),//取得=号的位置
- id = loc.substr(n2 + 1, n1 - n2),//从=号后面的内容
- u = navigator.userAgent,
- ua = navigator.userAgent.toLowerCase(),
- isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
- isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
- $('.downlond-img')[0].addEventListener('click',()=>{
- if(isAndroid){
- const pointName = id + '渠道h5落地页安卓点击'
- operate(pointName,'click');
- download()
- }else if(isIOS){
- const pointName = id + '渠道h5落地页打开IOS点击'
- operate(pointName);
- download()
- }
- // download()
- },false)
-
- $('.downlond-midimg')[0].addEventListener('click',()=>{
- if(isAndroid){
- const pointName = id + '渠道h5落地页安卓点击'
- operate(pointName,'click');
- download()
- }else if(isIOS){
- const pointName = id + '渠道h5落地页打开IOS点击'
- operate(pointName);
- download()
- }
- // download()
- },false)
- function download() {
- if (isAndroid) {
- window.location.href = window.location.protocol === 'https:' ? `https://file.phone.androidscloud.com:8121/document/newFile/download/1/edv834e74a9c43eaac02/LowLevelMultipartUpload_19066905949412147255/shuangzixing.apk` :
- `http://110.53.221.195:8210/document/newFile/download/1/edv834e74a9c43eaac02/LowLevelMultipartUpload_19066905949412147255/shuangzixing.apk`;
- stopManyClick(() =>{
- toastr.error('下载成功')
- })
- } else if (isIOS) {
- document.location.href = 'https://www.pgyer.com/gemini6?timestamp=' + Math.random();
- // toastr.error('下载成功')
- }
- }
- // 埋点下载
- function operate(pointName) {
- $.ajax({
- url: baseUrl + '/api/public/v1/systemBuriedPoint/stat',
- type: 'post',
- data: JSON.stringify({
- pointName: pointName
- }),
- contentType: "application/json",
- dataType: 'json',
- cache: false,
- success: function (res) {},
- })
- }
- // 埋点页面访问
- // var newpage = window.location.search.substring(6);
- $(function() {
- pushHistory();
- function pushHistory() {
- var warids = {
- "pointName": `渠道h5落地页打开${id}`
- }
- $.ajax({
- url: baseUrl + "/api/public/v1/systemBuriedPoint/stat",
- data: JSON.stringify(warids),
- type: 'post',
- dataType: 'json',
- contentType: "application/json;charset=UTF-8",
- cache: false,
- success: function(data) {}
- })
- }
- });
- function stopManyClick(fn) {
- if (flag) {
- fn();
- }
- flag = false;
- if (timer) { clearTimeout(timer); }
- timer = setTimeout(() => { flag = true }, 1500);
- }
- </script>
- </body>
- </html>
|