- 获取摄像头:
<camera style="width: 100%; height: 450px;"></camera>
- 拍照
takePhoto() {
    const ctx = wx.createCameraContext()
      ctx.takePhoto({
        quality: 'high',
        success: (res) => {
          this.src = res.tempImagePath
          console.log(this.src)
        }
      })
    },
- 回显
<image mode="widthFix" src="{{src}}"></image>