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) => {