新增夺宝规则版本判断
This commit is contained in:
BIN
view/peko/modules/act-treasureSnatching/images/rule_rule2.png
Normal file
BIN
view/peko/modules/act-treasureSnatching/images/rule_rule2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
@@ -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`);
|
||||
|
Reference in New Issue
Block a user