获取渠道出错解决

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,42 +182,45 @@
<script src="../../common/js/vconsole.min.js"></script>
<script>
let browser = checkVersion()
// if (EnvCheck() === 'test') new VConsole
getInfoFromClient()
if (browser.app) {
if (browser.android) {
let channel = JSON.parse(pubInfo.deviceInfo).channel
if (channel == 'huawei' || channel == 'xiaomi' || channel == 'vivo' || channel == 'oppo') {
$('.subject').html('香港栗子科技有限公司')
$('.alias').html('栗子科技')
}
if (channel.search('toutiao') != -1) {
$('.subject').html('广州时间在线网络科技有限公司')
$('.name').html('peko')
$('.jc').html('时间在线')
}
if (channel.search('toutiao_douyin') != -1) {
$('.subject').html('广州时间在线网络科技有限公司')
$('.name').html('peko')
$('.jc').html('时间在线')
}
setTimeout(() => {
let browser = checkVersion()
// if (EnvCheck() === 'test') new VConsole
getInfoFromClient()
if (browser.app) {
if (browser.android) {
let channel = JSON.parse(pubInfo.deviceInfo).channel
if (channel == 'huawei' || channel == 'xiaomi' || channel == 'vivo' || channel == 'oppo') {
$('.subject').html('香港栗子科技有限公司')
$('.alias').html('栗子科技')
}
if (channel.search('toutiao') != -1) {
$('.subject').html('广州时间在线网络科技有限公司')
$('.name').html('peko')
$('.jc').html('时间在线')
}
if (channel.search('toutiao_douyin') != -1) {
$('.subject').html('广州时间在线网络科技有限公司')
$('.name').html('peko')
$('.jc').html('时间在线')
}
if (channel.search('kuaishou') != -1) {
$('.subject').html('广州芒果互联网络科技有限公司')
$('.name').html('peko')
$('.jc').html('芒果互联')
}
}else {
let channel = JSON.parse(pubInfo.deviceInfo).channel
if (channel.search('peko_appstore') != -1) {
window.location.href = './rechargeAgreement-tishen.html';
if (channel.search('kuaishou') != -1) {
$('.subject').html('广州芒果互联网络科技有限公司')
$('.name').html('peko')
$('.jc').html('芒果互联')
}
}else {
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>