diff --git a/pages/login/login.vue b/pages/login/login.vue index 93b07500..bf2607dd 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -7,7 +7,7 @@ - 华润智慧电站 + 智慧安全 diff --git a/pages/projectEnd/safeSame/addIssue.vue b/pages/projectEnd/safeSame/addIssue.vue index 763b69c3..32fc31e1 100644 --- a/pages/projectEnd/safeSame/addIssue.vue +++ b/pages/projectEnd/safeSame/addIssue.vue @@ -1520,10 +1520,10 @@ count: 5 - that.imgFileList.length, success(res) { const tempFilePaths = res.tempFilePaths; - // #ifdef APP-PLUS - that.canversList(tempFilePaths[0]); - return - // #endif + // // #ifdef APP-PLUS + // that.canversList(tempFilePaths[0]); + // return + // // #endif uni.uploadFile({ url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址 filePath: tempFilePaths[0], diff --git a/pages/projectEnd/safeSame/editIssue.vue b/pages/projectEnd/safeSame/editIssue.vue index 815dcd9a..7cca885c 100644 --- a/pages/projectEnd/safeSame/editIssue.vue +++ b/pages/projectEnd/safeSame/editIssue.vue @@ -1613,10 +1613,10 @@ count: 5 - that.imgFileList.length, success(res) { const tempFilePaths = res.tempFilePaths; - // #ifdef APP-PLUS - that.canversList(tempFilePaths[0]); - return - // #endif + // // #ifdef APP-PLUS + // that.canversList(tempFilePaths[0]); + // return + // // #endif uni.uploadFile({ url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址 filePath: tempFilePaths[0], diff --git a/pages/projectEnd/safeSame/hiddenTroubleComponents/addHiddenTroubleList.vue b/pages/projectEnd/safeSame/hiddenTroubleComponents/addHiddenTroubleList.vue index dca1f921..fc101ffd 100644 --- a/pages/projectEnd/safeSame/hiddenTroubleComponents/addHiddenTroubleList.vue +++ b/pages/projectEnd/safeSame/hiddenTroubleComponents/addHiddenTroubleList.vue @@ -207,19 +207,22 @@ success(res) { const tempFilePaths = res.tempFilePaths; console.log(222, tempFilePaths[0]) - that.canversList(tempFilePaths[0]); - // uni.uploadFile({ - // url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址 - // filePath: tempFilePaths[0], - // name: 'files', - // success: (uploadFileRes) => { - // let data = { - // name: JSON.parse(uploadFileRes.data).data[0].filename, - // url: JSON.parse(uploadFileRes.data).data[0].imageUrl - // }; - // that.imgFileList.push(data) - // } - // }); + // // #ifdef APP-PLUS + // that.canversList(tempFilePaths[0]); + // return + // // #endif + uni.uploadFile({ + url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址 + filePath: tempFilePaths[0], + name: 'files', + success: (uploadFileRes) => { + let data = { + name: JSON.parse(uploadFileRes.data).data[0].filename, + url: JSON.parse(uploadFileRes.data).data[0].imageUrl + }; + that.imgFileList.push(data) + } + }); } }) } else if (type == 2) { diff --git a/pages/projectEnd/safeSame/reply.vue b/pages/projectEnd/safeSame/reply.vue index 2f6bf825..e533ad4a 100644 --- a/pages/projectEnd/safeSame/reply.vue +++ b/pages/projectEnd/safeSame/reply.vue @@ -380,34 +380,37 @@ count: 5 - that.fileList.length, success(res) { const tempFilePaths = res.tempFilePaths; - that.canversList(tempFilePaths[0]); - // uni.uploadFile({ - // url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址 - // filePath: tempFilePaths[0], - // name: 'files', - // success: (uploadFileRes) => { - // let data = { - // name: JSON.parse(uploadFileRes.data).data[0].filename, - // url: JSON.parse(uploadFileRes.data).data[0].imageUrl - // }; - // that.fileList.push(data) - // uni.getImageInfo({ - // src: tempFilePaths[0], - // success: (resInfo) => { - // console.log('传过去啦 resInfo', resInfo) - // that.imgList = { - // imgUrl: tempFilePaths[0], - // imgWidth: resInfo.width, - // imgHeight: resInfo.height, - // // team:'班组人员', - // // name: '张三' - // } - // that.openImg = true - // } - // }) - // that.openImg = false - // } - // }); + // // #ifdef APP-PLUS + // that.canversList(tempFilePaths[0]); + // return + // // #endif + uni.uploadFile({ + url: that.url_config + 'upload/image', //仅为示例,非真实的接口地址 + filePath: tempFilePaths[0], + name: 'files', + success: (uploadFileRes) => { + let data = { + name: JSON.parse(uploadFileRes.data).data[0].filename, + url: JSON.parse(uploadFileRes.data).data[0].imageUrl + }; + that.fileList.push(data) + // uni.getImageInfo({ + // src: tempFilePaths[0], + // success: (resInfo) => { + // console.log('传过去啦 resInfo', resInfo) + // that.imgList = { + // imgUrl: tempFilePaths[0], + // imgWidth: resInfo.width, + // imgHeight: resInfo.height, + // // team:'班组人员', + // // name: '张三' + // } + // that.openImg = true + // } + // }) + // that.openImg = false + } + }); } }) },