From 04ec28d2cba682e1640073c15301fab054f74e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BD=AA?= Date: Wed, 30 Apr 2025 11:35:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9D=A8=E5=93=B2=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/uploadPhoto.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pages/index/uploadPhoto.vue b/pages/index/uploadPhoto.vue index dbaa25d..9f88e92 100644 --- a/pages/index/uploadPhoto.vue +++ b/pages/index/uploadPhoto.vue @@ -236,16 +236,23 @@ export default { // if (!res.succeed) return; // params.picturesDto = res.data; + + params.picturesDto = this.imageList; uni.showModal({ title: "查看imageList", - content: this.imageList, + content: (JSON.stringify(params)), showCancel: true, success: function (res) {}, }); - - params.picturesDto = this.imageList; - + // return const res2 = await UploadArea(params); + uni.showModal({ + title: "查看imageList", + content: (JSON.stringify(res2)), + showCancel: true, + success: function (res) {}, + }); + return if (res2.succeed) { // 成功的处理 uni.showToast({ title: "上传成功", icon: "success", duration: 1500 }); From c45cd58b59cf42c974a673f046248981c3924957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BD=AA?= Date: Wed, 30 Apr 2025 11:43:09 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9D=A8=E5=93=B2=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/uploadPhoto.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/index/uploadPhoto.vue b/pages/index/uploadPhoto.vue index 9f88e92..ffa2582 100644 --- a/pages/index/uploadPhoto.vue +++ b/pages/index/uploadPhoto.vue @@ -238,12 +238,12 @@ export default { params.picturesDto = this.imageList; - uni.showModal({ - title: "查看imageList", - content: (JSON.stringify(params)), - showCancel: true, - success: function (res) {}, - }); + // uni.showModal({ + // title: "查看imageList", + // content: (JSON.stringify(params)), + // showCancel: true, + // success: function (res) {}, + // }); // return const res2 = await UploadArea(params); uni.showModal({ @@ -252,7 +252,7 @@ export default { showCancel: true, success: function (res) {}, }); - return + // return if (res2.succeed) { // 成功的处理 uni.showToast({ title: "上传成功", icon: "success", duration: 1500 }); @@ -262,9 +262,9 @@ export default { }); }, 1500); } - // else { - // uni.showToast({ title: res2.error || "上传失败", icon: "none" }); - // } + else { + uni.showToast({ title: res2.error || "上传失败", icon: "none" }); + } }, }, };