完善套餐购买、人脸拍照功能

This commit is contained in:
wangxiaowei
2026-04-11 18:33:23 +08:00
parent 2a95c0e176
commit be1ce34a74
6 changed files with 390 additions and 27 deletions

View File

@ -0,0 +1,36 @@
<template>
<!-- <@devicePosition: 摄像头位置 前置或后置摄像头值为front, back
@quality: 成像质量值为high高质量normal普通质量low低质量 -->
<view>
<hao-camera
:devicePosition="back"
:quality="low"
@confirmPhoto="confirmPhoto"
></hao-camera>
</view>
</template>
<script>
import haoCamera from '@/uni_modules/hao-camera/components/hao-camera/hao-camera.vue';
export default {
components: {
haoCamera
},
data() {
return {
type: '',
}
},
onLoad(args) {
this.type = args.type || '';
},
methods: {
confirmPhoto(filePath){
console.log("🚀 ~ filePath:", filePath)
let self = this
uni.navigateBack()
this.getOpenerEventChannel().emit('data',{path: filePath, type: self.type});
}
}
}
</script>