1.頁面
document.getElementById("qrCode").innerHTML = ""; setTimeout(() => { new QRCode(this.$refs.qrCodeDiv, { text: 'http://wxshop.carmanclub.com.cn/web/drawPrize/index.html?key_code=' + 123456789, width: 200, height: 200, colorDark: "#333333", //二維碼顏色 colorLight: "#ffffff", //二維碼背景色 correctLevel: QRCode.CorrectLevel.L//容錯率,L/M/H }) }, 100)