index.js 299 B

1234567891011121314
  1. //index.js
  2. var wxbarcode = require('../../utils/index.js');
  3. Page({
  4. data: {
  5. code: '1234567890123456789'
  6. },
  7. onLoad: function() {
  8. wxbarcode.barcode('barcode', '1234567890123456789', 680, 200);
  9. wxbarcode.qrcode('qrcode', '1234567890123456789', 420, 420);
  10. }
  11. })