| | |
| | | initcode() { |
| | | let that = this |
| | | const query = uni.createSelectorQuery() |
| | | |
| | | |
| | | query.select('#myQrcode') |
| | | .fields({ |
| | | node: true, |
| | |
| | | that.canvas = canvas |
| | | // 调用方法drawQrcode生成二维码 |
| | | drawQrcode({ |
| | | callback:function(e){ |
| | | console.log('drawQrcode callback',e) |
| | | callback: function(e) { |
| | | console.log('drawQrcode callback', e) |
| | | }, |
| | | canvas: canvas, |
| | | canvasId: 'myQrcode', |
| | |
| | | foreground: '#000000', |
| | | text: JSON.stringify({ |
| | | 'name': that.name, |
| | | 'userId': that.currentInfo.id, |
| | | 'version': '1.0.0' |
| | | // 'userId': that.currentInfo.id, |
| | | 'userId': that.currentInfo.partnerDTO.id, |
| | | 'version': '1.1.0' |
| | | }), |
| | | // text: `https://www.hmyxianhua.com/wx-c-jump/sub_pages/customer/customer-info/customer-info?name=${that.name}&userId=${that.currentInfo.id}` |
| | | // JSON.stringify({ |