Authored by 徐炜

APP下载页面

<div class="container">
<div id="no-download"></div>
<div class="banner"></div>
<div class="main">
<div class="slide-box">
... ...
... ... @@ -10,22 +10,24 @@ var isiOS = u.indexOf('os') > -1 || u.indexOf('iphone') > -1 || u.indexOf('mac')
var appPath = url;
var ifr;
if (isiOS) {
window.location.href = appPath;
} else {
ifr = document.createElement('iframe');
ifr.src = appPath;
ifr.style.display = 'none';
document.body.appendChild(ifr);
}
//1: 男生,2-女生,3-潮童,4-创意生活
var CHANNELS = {
boys: 1,
girls: 2,
kids: 3,
lifestyle: 4
};
setTimeout(function() {
if (isiOS) {
window.location.href = appPath;
} else {
ifr = document.createElement('iframe');
ifr.src = appPath;
ifr.style.display = 'none';
document.body.appendChild(ifr);
}
//1: 男生,2-女生,3-潮童,4-创意生活
var CHANNELS = {
boys: 1,
girls: 2,
kids: 3,
lifestyle: 4
};
}, 500);
$('#download').click(function() {
var url;
... ... @@ -42,7 +44,7 @@ $('#download').click(function() {
});
// 上报 yas 数据
if (typeof _yas !=='undefined') {
if (typeof _yas !== 'undefined') {
_yas.sendCustomInfo && _yas.sendCustomInfo({
op: 'YB_DOWNLOAD_C',
param: JSON.stringify({
... ...