新增夺宝规则版本判断

This commit is contained in:
Dragon
2023-10-23 10:46:33 +08:00
parent 496b7e848a
commit d701a5f149
2 changed files with 13 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@@ -42,6 +42,19 @@ $(function () {
toastMsg('请在APP内打开')
}
})
if (browser.android) {
console.log(JSON.parse(pubInfo.deviceInfo));
if (JSON.parse(pubInfo.deviceInfo).appVersionCode >= 210) {
$('.tab2 img').attr('src', './images/rule_rule2.png')
}
} else if (browser.ios) {
console.log(pubInfo.deviceInfo);
// console.log(pubInfo.deviceInfo.appVersion.replace(".",""));
console.log(pubInfo.deviceInfo.appVersion.replace(".", "").replace(".", ""));
if (pubInfo.deviceInfo.appVersion.replace(".", "").replace(".", "") >= 20100) {
$('.tab2 img').attr('src', './images/rule_rule2.png')
}
}
getPoolList();
}, 100)
$('body,html').css('padding-top', `${(document.documentElement.clientWidth / 750 * 120) / 75}rem`);