diff --git a/.gitignore b/.gitignore index e77fd8f..914a481 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /unpackage/ -.history \ No newline at end of file +.history +uni_modules/ +node_modules/ \ No newline at end of file diff --git a/pages/tabBar/sdPage/sfReport.vue b/pages/tabBar/sdPage/sfReport.vue index 781cd39..201a7b2 100644 --- a/pages/tabBar/sdPage/sfReport.vue +++ b/pages/tabBar/sdPage/sfReport.vue @@ -136,14 +136,12 @@ export default { padding-bottom: 40rpx; } .bg-box { - /* padding-top: 40rpx; */ width: 100vw; height: 280rpx; object-fit: cover; display: block; position: relative; display: flex; - /* align-items: center; */ } .bg-img{ position: absolute; diff --git a/pages/tabBar/xjPage/xj.vue b/pages/tabBar/xjPage/xj.vue index 214b23c..834a281 100644 --- a/pages/tabBar/xjPage/xj.vue +++ b/pages/tabBar/xjPage/xj.vue @@ -116,11 +116,11 @@ export default { }, methods: { afterRead(event) { - let files = Array.isArray(event) ? event.file : [event.file] - this.fileList = this.fileList.concat(files) + // let files = Array.isArray(event) ? event : [event] + this.fileList = this.fileList.concat(event.file) // console.log(this.fileList); - this.fileList.forEach( item => { - this.uploadFile(item[0]) + this.fileList.forEach( file => { + this.uploadFile(file) }); }, onDelete(event) { @@ -175,10 +175,10 @@ export default { }, success(res) { let data = JSON.parse(res.data) - console.log(data); + // console.log(data); if (data.url) { that.form.imageList.push({ - url:data.url, + url: data.url, name: '', format: file.type })