From da4a4b93d6b3b3d8ce5117a7ad311c3dd044c53d Mon Sep 17 00:00:00 2001 From: yangzhe Date: Wed, 30 Apr 2025 11:53:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/cleanDetails.vue | 6 ++---- pages/index/uploadPhoto.vue | 11 ++++------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/pages/index/cleanDetails.vue b/pages/index/cleanDetails.vue index e38b229..0cfc9e2 100644 --- a/pages/index/cleanDetails.vue +++ b/pages/index/cleanDetails.vue @@ -31,7 +31,7 @@ class="image" v-for="(v, i) in dataInfo.pictures" :key="i" - :src="BASE_URL + '/uploads/' + v.path" + :src="v.path" @click="previewImage(i)" > @@ -71,9 +71,7 @@ export default { // 预览图片 previewImage(index) { uni.previewImage({ - urls: this.dataInfo.pictures.map( - (v) => BASE_URL + "/uploads/" + v.path - ), + urls: this.dataInfo.pictures.map((v) => v.path), current: index, }); }, diff --git a/pages/index/uploadPhoto.vue b/pages/index/uploadPhoto.vue index dbaa25d..8a2fe72 100644 --- a/pages/index/uploadPhoto.vue +++ b/pages/index/uploadPhoto.vue @@ -236,15 +236,12 @@ export default { // if (!res.succeed) return; // params.picturesDto = res.data; - uni.showModal({ - title: "查看imageList", - content: this.imageList, - showCancel: true, - success: function (res) {}, + params.picturesDto = this.imageList.map((item) => { + return { + path: item, + }; }); - params.picturesDto = this.imageList; - const res2 = await UploadArea(params); if (res2.succeed) { // 成功的处理