增加浏览器判断提示升级猎豹

This commit is contained in:
luolei 2014-09-05 19:22:13 +08:00
parent 63472c2d22
commit da76812684
2 changed files with 35 additions and 16 deletions

View File

@ -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,'立刻升级');
}
}
});

View File

@ -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';
}
}