scanCode: function() {
var that = this;
wx.scanCode({ //扫描微信API
success(res) { //成功
console.log(res) //输出回调信息
that.setData({
scanCodeMsg: res.result
});
wx.showToast({
title: '成功',
duration: 1000
})
},
fail(res){
wx.showToast({
title: '失败',
icon:'error',
duration: 1000
})
},
complete(res){
console.log("是什么",res)
}
})
},
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)