33 lines
706 B
Markdown
33 lines
706 B
Markdown
# hao-camera 证件照相机拍照
|
||
|
||
**示例使用方法**
|
||
|
||
```
|
||
<template>
|
||
<!-- <@devicePosition: 摄像头位置 前置或后置摄像头,值为front, back
|
||
@quality: 成像质量,值为high(高质量)、normal(普通质量)、low(低质量) -->
|
||
<view>
|
||
<hao-camera
|
||
:devicePosition="back"
|
||
:quality="high"
|
||
@confirmPhoto="confirmPhoto"
|
||
></hao-camera>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import haoCamera from '@/uni_modules/hao-camera/components/hao-camera/hao-camera.vue';
|
||
export default {
|
||
components: {
|
||
haoCamera
|
||
},
|
||
methods: {
|
||
confirmPhoto(filePath){
|
||
console.log('图片: ' + filePath);
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
```
|
||
|