You've already forked qlg.frontend
2.4.5
This commit is contained in:
@ -1,15 +1,11 @@
|
||||
var is_app = 1;
|
||||
var imgUrl = 'http://img.zgqlg.com.cn/';
|
||||
var webUrl = 'http://www.zgqlg.com.cn/';
|
||||
var webUrl1 = 'http://www.zgqlg.com.cn/';
|
||||
// var imgUrl = 'http://qlg.qgmzbxs.com/';
|
||||
// var webUrl = 'http://qlg.qgmzbxs.com/';
|
||||
// var webUrl1 = 'http://qlg.qgmzbxs.com/';
|
||||
var cssUrl = localStorage.getItem("cssUrl");
|
||||
var jsUrl = localStorage.getItem("jsUrl");
|
||||
var version = localStorage.getItem("version");
|
||||
function qlgUrl(url) {
|
||||
console.log(webUrl)
|
||||
return webUrl + url;
|
||||
}
|
||||
|
||||
|
@ -66,13 +66,6 @@ mui.plusReady(function() {
|
||||
success: function(data) { //服务器返回响应,根据响应结果,分析是否登录成功;clearInterval(timer)
|
||||
// clearInterval(timer);
|
||||
localStorage.setItem('version', data.version);
|
||||
if (0 == is_juzi_online) {
|
||||
localStorage.setItem('cssUrl', "../css/");
|
||||
localStorage.setItem('jsUrl', "../js/");
|
||||
} else {
|
||||
localStorage.setItem('cssUrl', data.cssUrl ? data.cssUrl : "../css/");
|
||||
localStorage.setItem('jsUrl', data.jsUrl ? data.jsUrl : "../js/");
|
||||
}
|
||||
$('nav').css('display', 'block');
|
||||
$('#bg').css('display', 'none');
|
||||
var ipxSizeTop = 0;
|
||||
|
22
js/start.js
22
js/start.js
@ -24,32 +24,20 @@ function init(data) {
|
||||
success: function(data) {
|
||||
|
||||
if(data.results[0].version > ver) {
|
||||
if(ios_must_update == 0) {
|
||||
if(confirm("发现新版本:V" + data.results[0].version + "是否更新")) {
|
||||
document.location.href = iosUrl; //上新APPStore下载地址
|
||||
}
|
||||
} else {
|
||||
mui.alert("发现新版本:V" + data.results[0].version + "是否更新")
|
||||
if(confirm("发现新版本:V" + data.results[0].version + "是否更新")) {
|
||||
document.location.href = iosUrl; //上新APPStore下载地址
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else if(/android/.test(ua)) {
|
||||
if(apk_version > ver) {
|
||||
if(must_update == 0) {
|
||||
if(confirm("发现新版本:V" + apk_version + "是否更新")) {
|
||||
downloadUpdate(apkUrl)
|
||||
}
|
||||
if(confirm("发现新版本:V" + apk_version + "是否更新")) {
|
||||
downloadUpdate(apkUrl)
|
||||
} else {
|
||||
if(confirm("发现新版本:V" + apk_version + "是否更新")) {
|
||||
downloadUpdate(apkUrl)
|
||||
} else {
|
||||
plus.runtime.quit();
|
||||
}
|
||||
plus.runtime.quit();
|
||||
}
|
||||
} else {
|
||||
// console.log('当前版本号已是最新');
|
||||
|
Reference in New Issue
Block a user