Commit 1a5778db by 宋冰琦

修复首页取单码异常问题

parent 74096345
......@@ -269,18 +269,20 @@ export default {
if(['2', '3'].indexOf(this.orderInfo.state) != -1){
this.$refs.OrderQrCode.open(this.orderInfo, "");
return;
} else {
this.$refs.OrderQrCode.open(this.orderInfo, this.orderInfo.pickCode)
}
new QRCode('myQrcode2', {
text: this.orderInfo.pickCode,
width: 141, //canvas 画布的宽
height: 141, //canvas 画布的高
padding: 0, // 生成二维码四周自动留边宽度,不传入默认为0
correctLevel: QRCode.CorrectLevel.L, // 二维码可辨识度
callback: (res) => {
this.$refs.OrderQrCode.open(this.orderInfo, res.path)
}
})
// new QRCode('myQrcode2', {
// text: this.orderInfo.pickCode,
// width: 141, //canvas 画布的宽
// height: 141, //canvas 画布的高
// padding: 0, // 生成二维码四周自动留边宽度,不传入默认为0
// correctLevel: QRCode.CorrectLevel.L, // 二维码可辨识度
// callback: (res) => {
// this.$refs.OrderQrCode.open(this.orderInfo, res.path)
// }
// })
},
showArea() {
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