微信扫一扫调起微信扫一扫接口?
[图片][图片] 调用微信摄像头遇到问题,, wx.ready(function () { setTimeout(function () { wx.scanQRCode({ needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有 success: function (res) { var result = res.resultStr; var Rshuzhu = result.split('='); if (Rshuzhu.length > 1) location.href = "/Home/FlowTo?Code=" + Rshuzhu[1]; else location.href = "/Home/FlowTo?Code=" + Rshuzhu[0]; //location.href = "/Home/FlowTo?Code=" + Rshuzhu[1]; } }); }, waitTime) });