查看
确 定
// 二维码生成
qrCodeGeneration(row) {
// 二维码d框显示
this.homeId = row.homeId;
this.userId = row.userId;
this.dialogVal = true;
this.$nextTick(() => {
this.$refs.qrCodeUrl.innerHTML = "";
var qrcode = new QRCode(this.$refs.qrCodeUrl, {
text: `{'homeId':${this.homeId},'type':1,'userId':${this.userId}}`, // 需要转换为二维码的内容
width: 100,
height: 100,
colorDark: "#000000",
colorLight: "#ffffff",
correctLevel: QRCode.CorrectLevel.H,
});
});
},
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)