From 9faebe9283f934a3111e55ace0047e6e08c1fdd6 Mon Sep 17 00:00:00 2001 From: hubingliang Date: Fri, 16 Mar 2018 14:55:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/updateVersion/updateVersion.js | 52 +++++++++---------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/fangija-zsyf/js/updateVersion/updateVersion.js b/fangija-zsyf/js/updateVersion/updateVersion.js index 242f94e..69cfb64 100644 --- a/fangija-zsyf/js/updateVersion/updateVersion.js +++ b/fangija-zsyf/js/updateVersion/updateVersion.js @@ -1,23 +1,28 @@ var versionUpdate = function(){ var isAndroid = isAndroidUser(); -   plus.runtime.getProperty(plus.runtime.appid, function(inf) { - inf.version; - localVersion =inf.version; - var isNeed = needUpdate(inf.version); - if(isNeed){ - alert("有房有了新版本了,不更新就无法愉快的玩耍了"); - if(isAndroid){ - downApp() - }else{ - plus.nativeUI.showWaiting("版本更新中..."); - var url='https://itunes.apple.com/cn/app/id1341557643?mt=8'; - plus.runtime.openURL(url); - } - - } - }); + plus.runtime.getProperty(plus.runtime.appid, function(inf) { + var localVersion =inf.version; + var curVersion = versionInfo(); + if(parseFloat(localVersion)