放大二维码

This commit is contained in:
zhaofang
2022-06-16 09:54:36 +08:00
parent 805424a365
commit f5a6ea91d2
2 changed files with 6 additions and 6 deletions

View File

@@ -240,8 +240,8 @@ export default {
}, },
crateQrcode(){ crateQrcode(){
this.qr = new QRCode('qrcode', { this.qr = new QRCode('qrcode', {
width: 80, width: 150,
height: 80, // 高度 height: 150, // 高度
text: this.qrcode // 二维码内容 text: this.qrcode // 二维码内容
}); });
}, },
@@ -465,8 +465,8 @@ export default {
vertical-align:bottom; vertical-align:bottom;
} }
.qrcode{ .qrcode{
width: 80px; width: 150px;
height: 80px; height: 150px;
display: inline-block; display: inline-block;
margin: 1px; margin: 1px;
img { img {

View File

@@ -531,8 +531,8 @@ export default {
}, },
crateQrcode(){ crateQrcode(){
this.qr = new QRCode('qrcode', { this.qr = new QRCode('qrcode', {
width: 80, width: 150,
height: 80, // 高度 height: 150, // 高度
text: this.qrcode // 二维码内容 text: this.qrcode // 二维码内容
// render: 'canvas' // 设置渲染方式(有两种方式 table和canvas默认是canvas // render: 'canvas' // 设置渲染方式(有两种方式 table和canvas默认是canvas
// background: '#f0f' // background: '#f0f'