ctx.takePhoto在安卓手机上未调用
发布于 6 年前 作者 gyao 4778 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo

setTimeout(function () {

    console.log(‘123123’)

    const ctx = wx.createCameraContext()

    ctx.takePhoto({

    quality: ‘normal’,

        success: (res) => {

            console.log(res.tempImagePath)//在安卓手机上使用时 此项未输出,ios正常输出

        }

    })

}, 200)

1 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

回到顶部