dillonlfy / weapp-qrcode

微信小程序快速生成二维码,支持回调函数返回二维码临时文件
MIT License
217 stars 350 forks source link

windows,微信开发者工具,无法生成二维码,没有任何错误日志,回调函数也没有打印任何信息 #3

Open wraptor opened 4 years ago

wraptor commented 4 years ago

qrcode = new QRCode('canvas', { text: "https://github.com/tomfriwel/weapp-qrcode", image: '/images/bg.jpg', padding: 12, width: qrcode_w, height: qrcode_w, colorDark: "#1CA4FC", colorLight: "white", correctLevel: QRCode.CorrectLevel.H, callback: (res) => { // 生成二维码的临时文件 console.log(res.path) } });

wraptor commented 4 years ago
wraptor commented 4 years ago
<canvas class='canvas' type="2d" style="width:{{qrcode_w}}px; height:{{qrcode_w}}px;" canvas-id='canvas' bindlongtap='save'></canvas>
Y-ching commented 3 years ago

我也是遇到这个问题了