<image class="add" @click="handleUploadImage" src="../../static/shangchaun.png" mode=""></image>
uni.chooseImage({
count: this.count - this.images.length, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
success: res => {
const tempFilePaths = res.tempFilePaths;
new UploadImage(tempFilePaths, {
complete: data => {
data.map(item => {
this.images.push(item.fullurl);
});
}
});
},
fail: (err) => {
console.log(err);
}
});