组件替换

This commit is contained in:
kuang.yife 2023-11-29 19:37:07 +08:00
parent dd4bc6b8df
commit ca8ddc2446
1 changed files with 5 additions and 3 deletions

View File

@ -705,11 +705,13 @@
this.specialSkill[index].insurEndDate = e[1]; this.specialSkill[index].insurEndDate = e[1];
}, },
async chooseImage(e, imgList, count) { async chooseImage(e, imgList, count) {
uni.chooseImage({ uni.chooseMedia({
count: count && count > 0 ? count : 1, //9 count: count && count > 0 ? count : 1, //9
mediaType: ['image'],
sizeType: ['original', 'compressed'], // sizeType: ['original', 'compressed'], //
sourceType: ['album'], // sourceType: ['album'], //
success: (res) => { success: (res) => {
console.log(res)
// //
res.tempFilePaths.forEach((tmpPath) => { res.tempFilePaths.forEach((tmpPath) => {
this.$request.uploadFile(tmpPath).then((url) => { this.$request.uploadFile(tmpPath).then((url) => {