WishMeLz

生活其实很有趣

uniapp 二维码

<canvas canvas-id="Qrcode"></canvas>

qrCode.api.draw(text, {
  ctx: uni.createCanvasContext('Qrcode'),
  width: 127,
  height: 127
});

https://github.com/WishMelz/file/blob/master/js/qrCode.js