<camera id="camera" flash="off" device-position="front" @ready="onCameraReady" @error="onCameraError"
@stop="onCameraStop" :style='{width: `${windowWidth}px`,height: `${windowHeight}px`}'></camera>
<view class='camerabgImage'>
<view class="takePhoto" @click="takePhoto">拍照</view>
</view>
takePhoto() {
this.cameraContext.takePhoto({
quality: 'low',
success(res) {
console.log(res)
}
})
)
w***@qq.com
大佬这个解决了吗?
2025-06-03 20:04