|
takePhoto () {
let _this = this
this.$element('camera').takePhoto({
quality: _this.photoQuality,
success(data){
// 获取回调中的照片地址
_this.pictureUrl = data.uri
},
fail(data, code) {
console.log('take photos failed:code' + code.code)
},
complete() {
console.log('complete')
}
})
} |
|