From ca8ddc24461454b1296ec3c58c5288bffda50717 Mon Sep 17 00:00:00 2001 From: "kuang.yife" Date: Wed, 29 Nov 2023 19:37:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/my/certification.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/my/certification.vue b/pages/my/certification.vue index 7a5f22b..5885499 100644 --- a/pages/my/certification.vue +++ b/pages/my/certification.vue @@ -705,11 +705,13 @@ this.specialSkill[index].insurEndDate = e[1]; }, async chooseImage(e, imgList, count) { - uni.chooseImage({ - count: count && count > 0 ? count : 1, //默认9 + uni.chooseMedia({ + count: count && count > 0 ? count : 1, //默认9 + mediaType: ['image'], sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有 sourceType: ['album'], //从相册选择 - success: (res) => { + success: (res) => { + console.log(res) // 上传图片 res.tempFilePaths.forEach((tmpPath) => { this.$request.uploadFile(tmpPath).then((url) => {