版本升级
parent
2b9cc8c865
commit
2d484e48ea
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
// export var basePath = "http://192.168.0.69:7082/";
|
// export var basePath = "http://192.168.0.62:7082/";
|
||||||
// export var basePath = "http://192.168.0.31:7082/integrated_traffic/";
|
export var basePath = "http://192.168.0.103:6052/integrated_traffic/";
|
||||||
export var basePath = "http://39.101.166.211:8073/integrated_traffic/";
|
// export var basePath = "http://39.101.166.211:8073/integrated_traffic/";
|
||||||
export const baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
export const baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
||||||
export const adminPath = "http://192.168.0.18:8085";
|
export const adminPath = "http://192.168.0.18:8085";
|
||||||
export const projectManagerUrl = 'https://pm.qhdsafety.com/zy-projectManage/';
|
export const projectManagerUrl = 'https://pm.qhdsafety.com/zy-projectManage/';
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "交运安全",
|
"name" : "交运安全",
|
||||||
"appid" : "__UNI__CEE68CC",
|
"appid" : "__UNI__CEE68CC",
|
||||||
"description" : "交运安全",
|
"description" : "交运安全",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.1",
|
||||||
"versionCode" : 1,
|
"versionCode" : 2,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
|
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
],
|
],
|
||||||
"abiFilters" : [ "armeabi-v7a" ]
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
|
||||||
},
|
},
|
||||||
"ios" : {
|
"ios" : {
|
||||||
"privacyDescription" : {
|
"privacyDescription" : {
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
basePath,
|
basePath,
|
||||||
|
baseImgPath,
|
||||||
isRest,
|
isRest,
|
||||||
loginUserId,
|
loginUserId,
|
||||||
formatDate,
|
formatDate,
|
||||||
|
@ -297,28 +298,12 @@
|
||||||
USER_ID:loginUser.USER_ID,
|
USER_ID:loginUser.USER_ID,
|
||||||
},
|
},
|
||||||
success: res => {
|
success: res => {
|
||||||
|
|
||||||
if(res.data.pd.VERSION>that.wgtVer){
|
if(res.data.pd.VERSION>that.wgtVer){
|
||||||
if(platform=="android"){
|
if(platform=="android"){
|
||||||
plus.nativeUI.confirm( "请保持应用最新版本,否则将无法使用。", function(e){
|
plus.nativeUI.confirm( "请保持应用最新版本,否则将无法使用。", function(e){
|
||||||
if(e.index == 0){
|
if(e.index == 0){
|
||||||
// if(that.brand == 'HUAWEI' || that.brand == 'XIAOMI' || that.brand == 'VIVO' || that.brand == 'OPPO' ){ //这几个牌子去自带应用商店升级
|
var url2 = encodeURI(baseImgPath + res.data.pd.FILEURL);
|
||||||
if(that.brand == 'XIAOMI'){ //这几个牌子去自带应用商店升级
|
plus.runtime.openURL(url2, function(res) {});
|
||||||
plus.runtime.openURL("http://app.mi.com/detail/1509254", function(e1){// 本机应用商店升级
|
|
||||||
});
|
|
||||||
} else if(that.brand == 'VIVO'){ //这几个牌子去自带应用商店升级
|
|
||||||
plus.runtime.openURL("https://h5coml.vivo.com.cn/h5coml/appdetail_h5/browser_v2/index.html?appId=3457593", function(e1){// 本机应用商店升级
|
|
||||||
});
|
|
||||||
} else if(that.brand == 'OPPO' || that.brand == 'ONEPLUS' || that.brand == 'HUAWEI'){ //这几个牌子去自带应用商店升级
|
|
||||||
plus.runtime.openURL("market://details?id=uni.UNIC846DA5", function(e1){// 本机应用商店升级
|
|
||||||
});
|
|
||||||
}else if( that.brand == 'HUAWEI'){ //这几个牌子去自带应用商店升级
|
|
||||||
plus.runtime.openURL("https://url.cloud.huawei.com/n8nzgul61O", function(e1){// 本机应用商店升级
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
var url2 = encodeURI('https://qaaq.qhdsafety.com/file/uploadFiles/qaaqapp/app.apk');
|
|
||||||
plus.runtime.openURL(url2, function(res) {});
|
|
||||||
}
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
plus.runtime.quit();
|
plus.runtime.quit();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
Loading…
Reference in New Issue