uni.chooseImage({
// count: 4, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['camera'],
success: (res) => {
const _tempFilePaths = res.tempFilePaths;
if (this.imgList.length != 0) {
this.imgList = this.imgList.concat(_tempFilePaths)
} else {
this.imgList = _tempFilePaths
}
},
error: function(e) {
}
});
调用摄像机拍照
0 个回复