flx:优化

This commit is contained in:
Rain_ 2025-12-02 18:10:07 +08:00
parent c4314fda7f
commit a0deb4d0f4
4 changed files with 70 additions and 21 deletions

View File

@ -8,9 +8,20 @@
"sassImplementationName" : "node-sass",
/* 5+App */
"app-plus" : {
"plugins" : {
"Webview" : {
"allowFileAccess" : true,
"allowUniversalAccessFromFileURLs" : true,
"allowFileAccessFromFileURLs" : true //
}
},
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
"compression" : {
"enable" : true,
"type" : "br" // 使 Brotli
},
"compatible" : {
"ignoreVersion" : true
},
@ -35,8 +46,7 @@
"Record" : {},
"Camera" : {},
"Geolocation" : {},
"LivePusher" : {},
"Push" : {}
"LivePusher" : {}
},
/* */
"distribute" : {
@ -89,8 +99,27 @@
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "允许照片访问以修改您的头像;在您使用智慧安全进行办公时添加照片到您所提交的表单。",
"NSCameraUsageDescription" : "允许相机访问用于您在使用智慧安全工作期间拍摄照片、拍摄视频、扫描二维码。",
"NSLocationWhenInUseUsageDescription" : "您的位置信息将用于您在使用智慧安全期间显示当地天气;新增巡检点、一键报警功能中获取您当前位置信息。"
}
"NSLocationWhenInUseUsageDescription" : "您的位置信息将用于您在使用智慧安全期间显示当地天气;新增巡检点、一键报警功能中获取您当前位置信息。",
"NSMicrophoneUsageDescription" : "允许麦克风访问用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能。",
// 访
"NSDocumentsFolderUsageDescription" : "需要访问应用文档目录以加载资源文件",
"NSDownloadsFolderUsageDescription" : "需要访问下载目录",
//
"NSFileProviderDomainUsageDescription" : "需要访问文件系统以加载解码器资源",
"NSFileProviderPresentedItemUbiquityAttributesDescription" : "需要访问文件系统资源"
},
//
"UIFileSharingEnabled" : true,
"LSSupportsOpeningDocumentsInPlace" : true,
//
"WKPreferences" : {
"allowFileAccessFromFileURLs" : true,
"allowUniversalAccessFromFileURLs" : true
},
//
"com.apple.security.app-sandbox" : true,
"com.apple.security.files.user-selected.read-write" : true,
"com.apple.security.files.downloads.read-write" : true
},
/* SDK */
"sdkConfigs" : {
@ -107,12 +136,6 @@
"appkey_ios" : "9510eb01b56e6428646b256cc379f695",
"appkey_android" : "3b060f3a0ce4bafebeba1621dcd99c31"
}
},
// "speech" : {
// "ifly" : {}
// },
"push" : {
"unipush" : {}
}
},
"icons" : {
@ -178,21 +201,46 @@
"minified" : true
},
"usingComponents" : true,
"permission" : {}
"permission" : {
"scope.record" : {
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
}
},
"requiredPrivateInfos" : [ "getRecorderManager" ]
},
"mp-alipay" : {
"usingComponents" : true
"usingComponents" : true,
"permission" : {
"scope.record" : {
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
}
}
},
"mp-baidu" : {
"usingComponents" : true
"usingComponents" : true,
"permission" : {
"scope.record" : {
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
}
}
},
"mp-toutiao" : {
"usingComponents" : true
"usingComponents" : true,
"permission" : {
"scope.record" : {
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
}
}
},
"uniStatistics" : {
"enable" : false
},
"h5" : {
"permissions" : {
"scope.record" : {
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
}
},
"devServer" : {
"port" : 8088,
"disableHostCheck" : true,
@ -225,7 +273,8 @@
"enable" : false
}
},
"title" : "智慧工地云"
"title" : "智慧工地云",
"template" : ""
},
"vueVersion" : "2"
}

View File

@ -1661,8 +1661,8 @@
success(res) {
const tempFilePaths = res.tempFilePaths;
// #ifdef APP-PLUS
that.canversList(tempFilePaths[0]);
return
// that.canversList(tempFilePaths[0]);
// return
// #endif
uni.uploadFile({
url: that.url_config + 'upload/image', //

View File

@ -1759,8 +1759,8 @@
success(res) {
const tempFilePaths = res.tempFilePaths;
// #ifdef APP-PLUS
that.canversList(tempFilePaths[0]);
return
// that.canversList(tempFilePaths[0]);
// return
// #endif
uni.uploadFile({
url: that.url_config + 'upload/image', //

View File

@ -208,8 +208,8 @@
const tempFilePaths = res.tempFilePaths;
console.log(222, tempFilePaths[0])
// #ifdef APP-PLUS
that.canversList(tempFilePaths[0]);
return
// that.canversList(tempFilePaths[0]);
// return
// #endif
uni.uploadFile({
url: that.url_config + 'upload/image', //