f12714bd by renchao@pashanhoo.com

style:家庭房产

1 parent 4127271a
......@@ -99,12 +99,11 @@
newDatez: getNewDate(2)
}
},
mounted () {
this.generateQRCode()
},
methods: {
generateQRCode () {
QRCode.toDataURL(this.form.djSqcxDO.cxbh)
watch: {
"form.djSqcxDO.cxbh": {
handler: function (val) {
if (val) {
QRCode.toDataURL(val)
.then(url => {
this.qrcodeImage = url
})
......@@ -112,6 +111,9 @@
console.error(error);
})
}
},
immediate: true
}
}
}
</script>
\ No newline at end of file
......