Merge branch 'gsgs-dev' of http://192.168.34.160:8023/admin/zhgdyunapp into gsgs-dev
This commit is contained in:
commit
211488c102
@ -8,9 +8,20 @@
|
|||||||
"sassImplementationName" : "node-sass",
|
"sassImplementationName" : "node-sass",
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
"plugins" : {
|
||||||
|
"Webview" : {
|
||||||
|
"allowFileAccess" : true,
|
||||||
|
"allowUniversalAccessFromFileURLs" : true,
|
||||||
|
"allowFileAccessFromFileURLs" : true // 新增此配置
|
||||||
|
}
|
||||||
|
},
|
||||||
"usingComponents" : true,
|
"usingComponents" : true,
|
||||||
"nvueCompiler" : "uni-app",
|
"nvueCompiler" : "uni-app",
|
||||||
"compilerVersion" : 3,
|
"compilerVersion" : 3,
|
||||||
|
"compression" : {
|
||||||
|
"enable" : true,
|
||||||
|
"type" : "br" // 使用 Brotli 压缩
|
||||||
|
},
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
"ignoreVersion" : true
|
"ignoreVersion" : true
|
||||||
},
|
},
|
||||||
@ -35,8 +46,7 @@
|
|||||||
"Record" : {},
|
"Record" : {},
|
||||||
"Camera" : {},
|
"Camera" : {},
|
||||||
"Geolocation" : {},
|
"Geolocation" : {},
|
||||||
"LivePusher" : {},
|
"LivePusher" : {}
|
||||||
"Push" : {}
|
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute" : {
|
"distribute" : {
|
||||||
@ -89,8 +99,27 @@
|
|||||||
"privacyDescription" : {
|
"privacyDescription" : {
|
||||||
"NSPhotoLibraryUsageDescription" : "允许照片访问以修改您的头像;在您使用智慧安全进行办公时添加照片到您所提交的表单。",
|
"NSPhotoLibraryUsageDescription" : "允许照片访问以修改您的头像;在您使用智慧安全进行办公时添加照片到您所提交的表单。",
|
||||||
"NSCameraUsageDescription" : "允许相机访问用于您在使用智慧安全工作期间拍摄照片、拍摄视频、扫描二维码。",
|
"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配置 */
|
/* SDK配置 */
|
||||||
"sdkConfigs" : {
|
"sdkConfigs" : {
|
||||||
@ -107,12 +136,6 @@
|
|||||||
"appkey_ios" : "9510eb01b56e6428646b256cc379f695",
|
"appkey_ios" : "9510eb01b56e6428646b256cc379f695",
|
||||||
"appkey_android" : "3b060f3a0ce4bafebeba1621dcd99c31"
|
"appkey_android" : "3b060f3a0ce4bafebeba1621dcd99c31"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
// "speech" : {
|
|
||||||
// "ifly" : {}
|
|
||||||
// },
|
|
||||||
"push" : {
|
|
||||||
"unipush" : {}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"icons" : {
|
"icons" : {
|
||||||
@ -178,21 +201,46 @@
|
|||||||
"minified" : true
|
"minified" : true
|
||||||
},
|
},
|
||||||
"usingComponents" : true,
|
"usingComponents" : true,
|
||||||
"permission" : {}
|
"permission" : {
|
||||||
|
"scope.record" : {
|
||||||
|
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requiredPrivateInfos" : [ "getRecorderManager" ]
|
||||||
},
|
},
|
||||||
"mp-alipay" : {
|
"mp-alipay" : {
|
||||||
"usingComponents" : true
|
"usingComponents" : true,
|
||||||
|
"permission" : {
|
||||||
|
"scope.record" : {
|
||||||
|
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"mp-baidu" : {
|
"mp-baidu" : {
|
||||||
"usingComponents" : true
|
"usingComponents" : true,
|
||||||
|
"permission" : {
|
||||||
|
"scope.record" : {
|
||||||
|
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"mp-toutiao" : {
|
"mp-toutiao" : {
|
||||||
"usingComponents" : true
|
"usingComponents" : true,
|
||||||
|
"permission" : {
|
||||||
|
"scope.record" : {
|
||||||
|
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"uniStatistics" : {
|
"uniStatistics" : {
|
||||||
"enable" : false
|
"enable" : false
|
||||||
},
|
},
|
||||||
"h5" : {
|
"h5" : {
|
||||||
|
"permissions" : {
|
||||||
|
"scope.record" : {
|
||||||
|
"desc" : "您的位置信息将用于您在使用智慧安全期间进行语音对讲、语音记录、语音识别等功能"
|
||||||
|
}
|
||||||
|
},
|
||||||
"devServer" : {
|
"devServer" : {
|
||||||
"port" : 8088,
|
"port" : 8088,
|
||||||
"disableHostCheck" : true,
|
"disableHostCheck" : true,
|
||||||
@ -225,7 +273,8 @@
|
|||||||
"enable" : false
|
"enable" : false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"title" : "智慧工地云"
|
"title" : "智慧工地云",
|
||||||
|
"template" : ""
|
||||||
},
|
},
|
||||||
"vueVersion" : "2"
|
"vueVersion" : "2"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1661,8 +1661,8 @@
|
|||||||
success(res) {
|
success(res) {
|
||||||
const tempFilePaths = res.tempFilePaths;
|
const tempFilePaths = res.tempFilePaths;
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
that.canversList(tempFilePaths[0]);
|
// that.canversList(tempFilePaths[0]);
|
||||||
return
|
// return
|
||||||
// #endif
|
// #endif
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址
|
url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址
|
||||||
|
|||||||
@ -1759,8 +1759,8 @@
|
|||||||
success(res) {
|
success(res) {
|
||||||
const tempFilePaths = res.tempFilePaths;
|
const tempFilePaths = res.tempFilePaths;
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
that.canversList(tempFilePaths[0]);
|
// that.canversList(tempFilePaths[0]);
|
||||||
return
|
// return
|
||||||
// #endif
|
// #endif
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址
|
url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址
|
||||||
|
|||||||
@ -208,8 +208,8 @@
|
|||||||
const tempFilePaths = res.tempFilePaths;
|
const tempFilePaths = res.tempFilePaths;
|
||||||
console.log(222, tempFilePaths[0])
|
console.log(222, tempFilePaths[0])
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
that.canversList(tempFilePaths[0]);
|
// that.canversList(tempFilePaths[0]);
|
||||||
return
|
// return
|
||||||
// #endif
|
// #endif
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址
|
url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user