|
@@ -89,19 +89,33 @@ export default { |
|
|
// #endif |
|
|
// #endif |
|
|
|
|
|
|
|
|
// #ifndef MP-DINGTALK |
|
|
// #ifndef MP-DINGTALK |
|
|
uni.chooseFile({ |
|
|
|
|
|
count: Number(this.number), |
|
|
|
|
|
sizeType: ['original', 'compressed'], |
|
|
|
|
|
sourceType: ['album', 'camera'], |
|
|
|
|
|
success: ({ tempFilePaths }) => { |
|
|
|
|
|
const newList = JSON.parse(JSON.stringify(this.value || [])).concat( |
|
|
|
|
|
tempFilePaths//.map(t => ({ path: t, type: this.getFileExt(t) })) |
|
|
|
|
|
) |
|
|
|
|
|
this.$emit('input', newList) |
|
|
|
|
|
this.$emit('change', newList) |
|
|
|
|
|
this.$emit('add') |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
// uni.chooseFile({ |
|
|
|
|
|
// count: Number(this.number), |
|
|
|
|
|
// sizeType: ['original', 'compressed'], |
|
|
|
|
|
// sourceType: ['album', 'camera'], |
|
|
|
|
|
// success: ({ tempFilePaths }) => { |
|
|
|
|
|
// const newList = JSON.parse(JSON.stringify(this.value || [])).concat( |
|
|
|
|
|
// tempFilePaths//.map(t => ({ path: t, type: this.getFileExt(t) })) |
|
|
|
|
|
// ) |
|
|
|
|
|
// this.$emit('input', newList) |
|
|
|
|
|
// this.$emit('change', newList) |
|
|
|
|
|
// this.$emit('add') |
|
|
|
|
|
// } |
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
uni.chooseImage({ |
|
|
|
|
|
count: Number(this.number), |
|
|
|
|
|
sizeType: ['original', 'compressed'], |
|
|
|
|
|
sourceType: ['album', 'camera'], |
|
|
|
|
|
success: ({ tempFilePaths }) => { |
|
|
|
|
|
const newList = JSON.parse(JSON.stringify(this.value || [])).concat( |
|
|
|
|
|
tempFilePaths//.map(t => ({ path: t, type: this.getFileExt(t) })) |
|
|
|
|
|
) |
|
|
|
|
|
this.$emit('input', newList) |
|
|
|
|
|
this.$emit('change', newList) |
|
|
|
|
|
this.$emit('add') |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
// #endif |
|
|
// #endif |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|