获取渠道出错解决

This commit is contained in:
qf
2023-05-04 18:22:29 +08:00
parent 3c91a1d197
commit 29f19415f9
3 changed files with 39 additions and 38 deletions

View File

@@ -392,10 +392,7 @@
$('.jc').html('芒果互联')
}
} else {
console.log('pubInfo', pubInfo);
let channel = JSON.parse(pubInfo).deviceInfo.channel
console.log('pubInfo1', typeof pubInfo.deviceInfo);
console.log('pubInfo.deviceInfo', pubInfo.deviceInfo);
let channel = pubInfo.deviceInfo.channel
if (channel.search('peko_appstore') != -1) {
window.location.href = './privacy-wap-tishen.html';
}

View File

@@ -336,6 +336,7 @@
$('.subject').html('香港栗子科技有限公司')
$('.jiancheng').html('栗子科技')
setTimeout(() => {
let browser = checkVersion()
// if (EnvCheck() === 'test') new VConsole
getInfoFromClient()
@@ -363,18 +364,18 @@
}
}else {
let channel = JSON.parse(pubInfo.deviceInfo).channel
console.log('pubInfo.deviceInfo',pubInfo.deviceInfo);
let channel = pubInfo.deviceInfo.channel
console.log('channel',channel);
if (channel.search('peko_appstore') != -1) {
window.location.href = './protocol-tishen.html';
}
}
}
}, 50);
setTimeout(() => {
$('.protocol').show()
}, 50);
}, 100);
</script>
</body>

View File

@@ -182,6 +182,7 @@
<script src="../../common/js/vconsole.min.js"></script>
<script>
setTimeout(() => {
let browser = checkVersion()
// if (EnvCheck() === 'test') new VConsole
getInfoFromClient()
@@ -209,15 +210,17 @@
$('.jc').html('芒果互联')
}
}else {
let channel = JSON.parse(pubInfo.deviceInfo).channel
let channel = pubInfo.deviceInfo.channel
if (channel.search('peko_appstore') != -1) {
window.location.href = './rechargeAgreement-tishen.html';
}
}
}
}, 50);
setTimeout(() => {
$('.wrap').show()
}, 50);
}, 100);
</script>
</body>