|
@ -20,10 +20,8 @@ function checkVersion(){
|
20
|
20
|
timeout: 10000, //超时设置
|
21
|
21
|
async: false,
|
22
|
22
|
success: function(data) {
|
23
|
|
alert(JSON.stringify(data));
|
24
|
|
alert(wgtVer)
|
25
|
23
|
if (data.version > wgtVer) {
|
26
|
|
var btn = ["立即更新", "取消更新"];
|
|
24
|
var btn = ["立即更新"];
|
27
|
25
|
mui.confirm("有新版本发布了,赶快更新吧", "提示", btn, function(e) {
|
28
|
26
|
if(e.index == 0) {
|
29
|
27
|
if(mui.os.ios) {
|
|
@ -57,7 +55,7 @@ function checkVersion(){
|
57
|
55
|
}
|
58
|
56
|
});
|
59
|
57
|
}else{
|
60
|
|
plus.nativeUI.toast("您使用的是最新版本,请放心使用!", toastStyle);
|
|
58
|
//plus.nativeUI.toast("您使用的是最新版本,请放心使用!", toastStyle);
|
61
|
59
|
}
|
62
|
60
|
},
|
63
|
61
|
error: function() {
|