How to use the qrcode.createQrCodeImg function in qrcode

To help you get started, we’ve selected a few qrcode examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phonycode / wuss-weapp / dist / w-qr-code / index.js View on Github external
drawQRCode() {
      const { text, usingEncode } = this.data;
      const base64Data = createQrCodeImg(usingEncode ? encodeURIComponent(text): String(text));
      this.computedStyles();
      this.setData({ base64Data });
    },
    /**