diff --git a/pages/index/menu.js b/pages/index/menu.js index adc0575..7f69e61 100644 --- a/pages/index/menu.js +++ b/pages/index/menu.js @@ -223,18 +223,18 @@ const menus = { { title: '安环管理', children: [ - { - key: "spotCheck", - title: "安全点检", - url: "../safe/spotCheck", - bgColor: '', - limit: 'RB2315', - icon: { - size: 20, - color: '#00b7ee', - type: '' - } - }, + // { + // key: "spotCheck", + // title: "安全点检", + // url: "../safe/spotCheck", + // bgColor: '', + // limit: 'RB2315', + // icon: { + // size: 20, + // color: '#00b7ee', + // type: '' + // } + // }, { key: "inspection", title: "安全巡检", diff --git a/pages/safe/inspection.vue b/pages/safe/inspection.vue index 3baf385..9b68716 100644 --- a/pages/safe/inspection.vue +++ b/pages/safe/inspection.vue @@ -137,9 +137,11 @@ export default { res.tempFilePaths.forEach((filePath) => { console.log("file-----------", filePath); console.log("options.baseURL------", options.baseURL); + const server_config = uni.getStorageSync("server-config") +console.log(999999,server_config) uni.uploadFile({ url: - options.baseURL + + server_config.rootUrl + "/blade-resource/oss/endpoint/put-file-attach", filePath: filePath, name: "file", diff --git a/pages/sanitation/gasInspection.vue b/pages/sanitation/gasInspection.vue index 712811b..6a12a87 100644 --- a/pages/sanitation/gasInspection.vue +++ b/pages/sanitation/gasInspection.vue @@ -98,6 +98,8 @@ export default { icon: 'none' }); } + const server_config = uni.getStorageSync("server-config") +console.log(999999,server_config) uni.chooseImage({ count: 9, // sizeType: ['compressed'], @@ -108,7 +110,7 @@ export default { }); res.tempFilePaths.forEach(filePath => { uni.uploadFile({ - url: options.baseURL + '/blade-resource/oss/endpoint/put-file-attach', + url: server_config.rootUrl + '/blade-resource/oss/endpoint/put-file-attach', filePath: filePath, name: 'file', header: { diff --git a/pages/sanitation/waterInspection.vue b/pages/sanitation/waterInspection.vue index 3d51cbc..276cdbb 100644 --- a/pages/sanitation/waterInspection.vue +++ b/pages/sanitation/waterInspection.vue @@ -123,10 +123,12 @@ export default { uni.showLoading({ title: "上传中,请稍候", }); + const server_config = uni.getStorageSync("server-config") +console.log(999999,server_config) res.tempFilePaths.forEach((filePath) => { uni.uploadFile({ url: - options.baseURL + + server_config.rootUrl + "/blade-resource/oss/endpoint/put-file-attach", filePath: filePath, name: "file",