增加浏览器判断提示升级猎豹
This commit is contained in:
parent
63472c2d22
commit
da76812684
@ -684,4 +684,14 @@ bootStrap.done(function() {
|
||||
MyRemind.init();
|
||||
Remind.init();
|
||||
OrderList.init();
|
||||
if(isIos){
|
||||
Public.confirm('升级到手机猎豹极速版,更轻、更快、更安全!',Public.updateIos,'立刻升级');
|
||||
}
|
||||
if(window.navigator.userAgent.indexOf('Android') > -1){
|
||||
if(window.navigator.userAgent.indexOf('LieBaoFast') == -1 ){
|
||||
Public.confirm('升级到手机猎豹极速版,更轻、更快、更安全!',Public.updateAndroid,'立刻升级');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
@ -455,5 +455,14 @@ var Public = {
|
||||
$('#date_tip').attr('class', 'tip_small');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
updateIos : function(url){
|
||||
window.location.href = url || 'https://itunes.apple.com/cn/app/id641522896' ;
|
||||
},
|
||||
|
||||
updateAndroid : function(url){
|
||||
window.location.href = url || 'http://dl.liebao.cn/android/fast/cheetah_2.11.0.apk';
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user