Commit 59218a8a by dabai

ios 下载 测试

parent 0c8c2304
Showing with 23 additions and 20 deletions
...@@ -115,38 +115,41 @@ ...@@ -115,38 +115,41 @@
} }
console.log(iosData,andoridData) console.log(iosData,andoridData)
var clickFlag = true;
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if(/iphone|ipad|ipod/.test(ua)){ if(/iphone|ipad|ipod/.test(ua)){
var data = { var data = {
icid:iosData icid:iosData
} }
if(iosData.indexOf('iosftscps')>-1){
var button = document.getElementById("iosDown"); var button = document.getElementById("iosDown");
button.onclick = function () { button.onclick = function () {
copyText(iosData); if(clickFlag){
console.log(123) clickFlag = false;
copyText(iosData);
}
setTimeout(function () { setTimeout(function () {
window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400'; window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400';
},1000) },1000)
} }
// if(iosData.indexOf('iosftscps')>-1){
//
} else { //
var button = document.getElementById("iosDown"); // } else {
// var button = document.getElementById("iosDown");
button.onclick = function () { //
copyText(iosData); // button.onclick = function () {
setTimeout(function () { // copyText(iosData);
window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400'; // setTimeout(function () {
},500) // window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400';
} // },500)
// }
setTimeout(function(){ //
copyText(iosData); // setTimeout(function(){
window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400'; // copyText(iosData);
},2000) // window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400';
} // },2000)
// }
} else { } else {
setTimeout(function(){ setTimeout(function(){
toDown(); toDown();
......
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