Commit d73f7693 by dabai

ios 下载 测试

parent e6fec4c1
Showing with 113 additions and 55 deletions
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<script src="https://res.sharetrace.com/sharetrace.min.js"></script> <script type="text/javascript" src="//res.cdn.openinstall.io/openinstall.js"></script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-134943215-2', 'auto');
ga('create', 'UA-155364301-1', 'auto','clientTracker');
ga('send', 'pageview');
ga('clientTracker.send', 'pageview');
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-678006312"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-678006312');
</script>
<script>
gtag('event', 'conversion', {'send_to': 'AW-678006312/kqI0CJCE-7gBEKicpsMC'});
</script>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
...@@ -38,6 +20,29 @@ ...@@ -38,6 +20,29 @@
<link rel="stylesheet" href="https://www.footseen.com/css/inedx.css"> <link rel="stylesheet" href="https://www.footseen.com/css/inedx.css">
<link rel="stylesheet" href="https://www.footseen.com/layer-v3.1.0/layer.css"> <link rel="stylesheet" href="https://www.footseen.com/layer-v3.1.0/layer.css">
<title>Foot Seen</title> <title>Foot Seen</title>
<script type="text/javascript">
if(url_get_params2().icid!=undefined){
if(url_get_params2().icid.indexOf('lala51')>-1){
window.location.href = 'download51.html'+location.search;
} else if(url_get_params2().icid.indexOf('lala52')>-1){
window.location.href = 'download52.html'+location.search;
} else if(url_get_params2().icid.indexOf('lala53')>-1){
window.location.href = 'download53.html'+location.search;
}
}
function url_get_params2() {
var url = location.href;
var theRequest = new Object();
if(url.indexOf("?") != -1) {
var str = url.substr(url.indexOf("?") + 1);
strs = str.split("&");
for(var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return theRequest;
}
</script>
</head> </head>
<body> <body>
<div class="main"> <div class="main">
...@@ -49,7 +54,7 @@ ...@@ -49,7 +54,7 @@
</div> </div>
<img src="https://www.footseen.com/img/logo.png" class="logo" /> <img src="https://www.footseen.com/img/logo.png" class="logo" />
<a class="topUp"></a> <a class="topUp"></a>
<div class="iosDown heartbeat"></div> <div id="iosDown" class="iosDown heartbeat"></div>
<img src="https://www.footseen.com/img/live.png" class="live" /> <img src="https://www.footseen.com/img/live.png" class="live" />
<div class="swiper-container hide"> <div class="swiper-container hide">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
...@@ -73,53 +78,106 @@ ...@@ -73,53 +78,106 @@
<script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script> <script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script>
<script type="text/javascript"> <script type="text/javascript">
var data = getRequest();
var params = { function url_get_params() {
icid:data.icid var url = location.href;
} var theRequest = new Object();
ShareTrace.init({ if(url.indexOf("?") != -1) {
appkey: "cd3ba48d0699c7fa", // 此值必填 var str = url.substr(url.indexOf("?") + 1);
param: params, strs = str.split("&");
success: function() { for(var i = 0; i < strs.length; i++) {
console.log("init success...") theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}, }
error: function(msg) { }
console.log(msg) return theRequest;
} }
});
if( url_get_params().icid!=undefined){
var params = url_get_params().icid.replace(/(^\s*)|(\s*$)/g, "");
} else {
var params = '';
}
var iosData = '';
var andoridData = '';
if(params != undefined && params.length>0){
//定义设备号
if(params.substring(0,3) == 'ios'){
iosData = params;
andoridData = params.substring(3,params.length);
} else {
iosData = 'ios'+params;
andoridData = params;
}
} else {
iosData = 'iosfts';
andoridData = 'fts';
}
console.log(iosData,andoridData)
var ua = window.navigator.userAgent.toLowerCase();
if(/iphone|ipad|ipod/.test(ua)){
var data = {
icid:iosData
}
if(iosData.indexOf('iosftscps')>-1){
var button = document.getElementById("iosDown");
button.onclick = function () {
copyText(iosData);
console.log(123)
setTimeout(function () {
window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400';
},1000)
}
} else {
var button = document.getElementById("iosDown");
button.onclick = function () {
copyText(iosData);
setTimeout(function () {
window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400';
},500)
}
setTimeout(function(){
window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400';
},2000)
}
} else {
setTimeout(function(){
toDown();
},800)
$('.iosDown').on('click',function(){ $('.iosDown').on('click',function(){
copyText(data.icid) toDown();
download()
}) })
function download() {
ga('send', 'event', {
eventCategory: 'ios',
eventAction: 'click',
eventLabel: 'ios'
});
ga('clientTracker.send', 'event', {
eventCategory: 'ios',
eventAction: 'click',
eventLabel: 'ios'
});
gtag('event', 'conversion', {
'send_to': 'AW-678006312/kqI0CJCE-7gBEKicpsMC',
'event_callback': gtag_report_conversion()
});
} }
function gtag_report_conversion() { function toDown(){
var obj = {};
setTimeout(function(){ for(var i=1;i<=100;i++){
ShareTrace.download(); obj['lala'+add0(i)] = 'https://zhibocdn.yabolive.net/apk/nf/footseen'+add0(i)+'.apk';
},500) if(i<=20){
obj['ftscps'+i] = 'https://zhibocdn.yazhaiyabo.com/apk/nf/ftscps'+i+'.apk';
}
}
console.log(obj)
if(obj[andoridData]!=undefined){
window.location.href = obj[andoridData]
} else {
window.location.href = 'https://www.footseen.com/apk';
}
} }
$('.topUp').on('click',function(){ $('.topUp').on('click',function(){
window.location.href = 'https://www.footseen.com/footseen/phonepay/applepay.html?lang='+sessionStorage.lang+'&gofrom=web'+'&gofrom=web&cidStr=h5_footseengw'; window.location.href = 'https://www.footseen.com/footseen/phonepay/applepay.html?lang='+sessionStorage.lang+'&gofrom=web'+'&gofrom=web&cidStr=h5_footseengw';
}) })
function add0(m) {
return m < 10 ? '0' + m + "" : m + ""
}
function copyText(text) { function copyText(text) {
var textarea = document.createElement("textarea"); var textarea = document.createElement("textarea");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment