This commit is contained in:
Jerry Yan 2020-12-06 21:34:33 +08:00
parent ce2985998b
commit 16de00c866
5 changed files with 8 additions and 31 deletions

View File

@ -37,7 +37,7 @@ body:after {
.check_0 { .check_0 {
width: 18px; width: 18px;
height: 18px; height: 18px;
background: url(http://www.zgqlg.com.cn/static/app2/img/no_checked.png) no-repeat top left; background: url(../img/icon_check0.png) no-repeat top left;
background-size: 18px 18px; background-size: 18px 18px;
border-radius: 50%; border-radius: 50%;
} }
@ -45,7 +45,7 @@ body:after {
.check_1 { .check_1 {
width: 18px; width: 18px;
height: 18px; height: 18px;
background: url(http://www.zgqlg.com.cn/static/app2/img/checked.png) no-repeat top left; background: url(../img/icon_check1.png) no-repeat top left;
background-size: 18px 18px; background-size: 18px 18px;
border-radius: 50%; border-radius: 50%;
} }

View File

@ -1,15 +1,11 @@
var is_app = 1; var is_app = 1;
var imgUrl = 'http://img.zgqlg.com.cn/'; var imgUrl = 'http://img.zgqlg.com.cn/';
var webUrl = 'http://www.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 webUrl = 'http://qlg.qgmzbxs.com/';
// var webUrl1 = 'http://qlg.qgmzbxs.com/';
var cssUrl = localStorage.getItem("cssUrl"); var cssUrl = localStorage.getItem("cssUrl");
var jsUrl = localStorage.getItem("jsUrl"); var jsUrl = localStorage.getItem("jsUrl");
var version = localStorage.getItem("version"); var version = localStorage.getItem("version");
function qlgUrl(url) { function qlgUrl(url) {
console.log(webUrl)
return webUrl + url; return webUrl + url;
} }

View File

@ -66,13 +66,6 @@ mui.plusReady(function() {
success: function(data) { //服务器返回响应根据响应结果分析是否登录成功clearInterval(timer) success: function(data) { //服务器返回响应根据响应结果分析是否登录成功clearInterval(timer)
// clearInterval(timer); // clearInterval(timer);
localStorage.setItem('version', data.version); 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'); $('nav').css('display', 'block');
$('#bg').css('display', 'none'); $('#bg').css('display', 'none');
var ipxSizeTop = 0; var ipxSizeTop = 0;

View File

@ -24,32 +24,20 @@ function init(data) {
success: function(data) { success: function(data) {
if(data.results[0].version > ver) { if(data.results[0].version > ver) {
if(ios_must_update == 0) { if(confirm("发现新版本:V" + data.results[0].version + "是否更新")) {
if(confirm("发现新版本:V" + data.results[0].version + "是否更新")) {
document.location.href = iosUrl; //上新APPStore下载地址
}
} else {
mui.alert("发现新版本:V" + data.results[0].version + "是否更新")
document.location.href = iosUrl; //上新APPStore下载地址 document.location.href = iosUrl; //上新APPStore下载地址
} }
} else { } else {
return;
} }
} }
}); });
} else if(/android/.test(ua)) { } else if(/android/.test(ua)) {
if(apk_version > ver) { if(apk_version > ver) {
if(must_update == 0) { if(confirm("发现新版本:V" + apk_version + "是否更新")) {
if(confirm("发现新版本:V" + apk_version + "是否更新")) { downloadUpdate(apkUrl)
downloadUpdate(apkUrl)
}
} else { } else {
if(confirm("发现新版本:V" + apk_version + "是否更新")) { plus.runtime.quit();
downloadUpdate(apkUrl)
} else {
plus.runtime.quit();
}
} }
} else { } else {
// console.log('当前版本号已是最新'); // console.log('当前版本号已是最新');

View File

@ -3,7 +3,7 @@
"id" : "H5436787D", "id" : "H5436787D",
"name" : "全亮共商城", "name" : "全亮共商城",
"version" : { "version" : {
"name" : "2.4.4", "name" : "2.4.5",
"code" : 94 "code" : 94
}, },
"description" : "", "description" : "",