Commit 1a5778db by 宋冰琦

修复首页取单码异常问题

parent 74096345
...@@ -269,18 +269,20 @@ export default { ...@@ -269,18 +269,20 @@ export default {
if(['2', '3'].indexOf(this.orderInfo.state) != -1){ if(['2', '3'].indexOf(this.orderInfo.state) != -1){
this.$refs.OrderQrCode.open(this.orderInfo, ""); this.$refs.OrderQrCode.open(this.orderInfo, "");
return; return;
} else {
this.$refs.OrderQrCode.open(this.orderInfo, this.orderInfo.pickCode)
} }
new QRCode('myQrcode2', { // new QRCode('myQrcode2', {
text: this.orderInfo.pickCode, // text: this.orderInfo.pickCode,
width: 141, //canvas 画布的宽 // width: 141, //canvas 画布的宽
height: 141, //canvas 画布的高 // height: 141, //canvas 画布的高
padding: 0, // 生成二维码四周自动留边宽度,不传入默认为0 // padding: 0, // 生成二维码四周自动留边宽度,不传入默认为0
correctLevel: QRCode.CorrectLevel.L, // 二维码可辨识度 // correctLevel: QRCode.CorrectLevel.L, // 二维码可辨识度
callback: (res) => { // callback: (res) => {
this.$refs.OrderQrCode.open(this.orderInfo, res.path) // this.$refs.OrderQrCode.open(this.orderInfo, res.path)
} // }
}) // })
}, },
showArea() { showArea() {
console.log(this.$refs) console.log(this.$refs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment