收藏
回答

wx.scanCode无法识别相册中部分条形码?有的能识别,有的不行

scanCode: function() {
      var that = this;
      wx.scanCode({ //扫描微信API
        success(res) { //成功
          console.log(res) //输出回调信息
          that.setData({
            scanCodeMsg: res.result
          });
          wx.showToast({
            title'成功',
            duration1000
          })
        },
        fail(res){
          wx.showToast({
            title'失败',
            icon:'error',
            duration1000
          })
        },
        complete(res){
          console.log("是什么",res)
        }
      })
  },

  

回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2021-01-11

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

    2021-01-11
    有用
    回复 3
登录 后发表内容
问题标签