| | |
| | | <!-- --> |
| | | <view class="contact-container"> |
| | | <view class="container" @click="saveCode"> |
| | | <!-- <image src="../../../static/uni.png" mode="aspectFit" class="code"></image> --> |
| | | |
| | | <canvas type="2d" id="myQrcode" class="code"></canvas> |
| | | <view class="info"> |
| | | <view class="desc"> |
| | |
| | | canvas: undefined, |
| | | } |
| | | }, |
| | | // onShareAppMessage() { |
| | | // let params = `id=${this.info.Id}` |
| | | // if (this.isGroup) { |
| | | // params += `&groupId=${this.groupId}` |
| | | // } |
| | | // if (this.memberId) { |
| | | // params += `&inviteId=${this.memberId}` |
| | | // } |
| | | // let path = `/pages/home/product/detail?${params}` |
| | | // return { |
| | | // title: this.info.Name, |
| | | // path: path |
| | | // } |
| | | // } |
| | | onLoad(options) { |
| | | if (!this.currentInfo.partnerDTO) { |
| | | this.$message.showToast('请先完善合伙人信息') |
| | |
| | | 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', |
| | |
| | | text: JSON.stringify({ |
| | | 'name': that.name, |
| | | 'userId': that.currentInfo.id, |
| | | 'version': '1.0.0' |
| | | // '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({ |