<div id="qrcode" ref="qrCodeUrl"></div>
creatQrCode(userId) {
// 即生成二维码之前先将存放二维码的标签清空
document.getElementById("qrcode").innerHTML = "";
let QueryDetail = 'https://xxxxxxx.com' + '/manager/Scrap_bindWxPage' + "?userId=" + userId;
console.log(QueryDetail, "QueryDetail")
var qrcode = new QRCode(this.$refs.qrCodeUrl, {
text: QueryDetail,
width: 200,
height: 200,
colorDark: '#000000',
colorLight: '#ffffff',
correctLevel: QRCode.CorrectLevel.H
})
},
setTimeout( () => {
this.creatQrCode(userId)
}, 0)