...
|
...
|
@@ -90,16 +90,16 @@ if (canOpenApp()) { |
|
|
if (window._hmt && window._hmt.push) {
|
|
|
window._hmt.push(['_trackEvent', 'H5唤起APP', isiOS ? 'Apple' : 'Android', document.title, location.href]);
|
|
|
}
|
|
|
}, 2000);
|
|
|
}, 1000);
|
|
|
|
|
|
if (isiOS) {
|
|
|
setTimeout(function() {
|
|
|
setTimeout(function () {
|
|
|
if (isiOS) {
|
|
|
window.location.href = appPath;
|
|
|
}, 2000);
|
|
|
} else {
|
|
|
ifr = document.createElement('iframe');
|
|
|
ifr.src = appPath;
|
|
|
ifr.style.display = 'none';
|
|
|
document.body.appendChild(ifr);
|
|
|
}
|
|
|
} else {
|
|
|
ifr = document.createElement('iframe');
|
|
|
ifr.src = appPath;
|
|
|
ifr.style.display = 'none';
|
|
|
document.body.appendChild(ifr);
|
|
|
}
|
|
|
}, 2000);
|
|
|
} |
...
|
...
|
|