f12714bd by renchao@pashanhoo.com

style:家庭房产

1 parent 4127271a
......@@ -99,18 +99,20 @@
newDatez: getNewDate(2)
}
},
mounted () {
this.generateQRCode()
},
methods: {
generateQRCode () {
QRCode.toDataURL(this.form.djSqcxDO.cxbh)
.then(url => {
this.qrcodeImage = url
})
.catch(error => {
console.error(error);
})
watch: {
"form.djSqcxDO.cxbh": {
handler: function (val) {
if (val) {
QRCode.toDataURL(val)
.then(url => {
this.qrcodeImage = url
})
.catch(error => {
console.error(error);
})
}
},
immediate: true
}
}
}
......