版本升级

dev
wangpeng 2024-06-29 15:10:01 +08:00
parent 2b9cc8c865
commit 2d484e48ea
3 changed files with 9 additions and 24 deletions

View File

@ -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/';

View File

@ -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" : {

View File

@ -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("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) {}); plus.runtime.openURL(url2, function(res) {});
}
setTimeout(function() { setTimeout(function() {
plus.runtime.quit(); plus.runtime.quit();
}, 2000); }, 2000);