qiaowei | f044a74 | 2019-07-10 16:04:20 +0800 | [diff] [blame^] | 1 | var app = { |
| 2 | |
| 3 | // Application Constructor |
| 4 | initialize: function() { |
| 5 | document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); |
| 6 | }, |
| 7 | |
| 8 | onDeviceReady: function() { |
| 9 | var uid = window.localStorage.getItem("token"); |
| 10 | var qrcode = new QRCode(document.getElementById("qrcode"), { |
| 11 | text: uid, |
| 12 | width: 150, |
| 13 | height: 150, |
| 14 | colorDark : "#000000", |
| 15 | colorLight : "#ffffff", |
| 16 | correctLevel : QRCode.CorrectLevel.L |
| 17 | }); |
| 18 | }, |
| 19 | toBillDetail :function(refno){ |
| 20 | |
| 21 | } |
| 22 | }; |
| 23 | app.initialize(); |