Commit 6fe2f8db8d4beb5b755d7a13db00b008e2e76bd2
1 parent
c0558eba
二维码大小
Showing
2 changed files
with
4 additions
and
4 deletions
pages/businessCard/printCard.vue
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 | </uni-section> |
13 | 13 | |
14 | 14 | <view class=" uni-card text-center" style="padding: 10px 0"> |
15 | - <image :src="qrUrl"></image> | |
15 | + <image :src="qrUrl" style="width: 300rpx;height:300rpx;margin: 0 auto;"></image> | |
16 | 16 | </view> |
17 | 17 | |
18 | 18 | <view>长按上面二维码可以保存为图片</view> |
... | ... | @@ -94,7 +94,7 @@ export default { |
94 | 94 | canvasId: 'qrcode', |
95 | 95 | componentInstance: this, |
96 | 96 | text: text, |
97 | - size: 150, | |
97 | + size: 165, | |
98 | 98 | margin: 0, |
99 | 99 | backgroundColor: '#ffffff', |
100 | 100 | foregroundColor: '#000000', | ... | ... |
pages/businessCard/provideCard.vue
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | |
14 | 14 | <view class=" uni-card" style="padding: 10px 0"> |
15 | 15 | <view class="qr-box"> |
16 | - <canvas canvas-id="qrcode" v-show="qrShow" style="width: 300rpx;margin: 0 auto;"/> | |
16 | + <canvas canvas-id="qrcode" v-show="qrShow" style="width: 300rpx;height:300rpx;margin: 0 auto;"/> | |
17 | 17 | </view> |
18 | 18 | </view> |
19 | 19 | |
... | ... | @@ -98,7 +98,7 @@ export default { |
98 | 98 | canvasId: 'qrcode', |
99 | 99 | componentInstance: this, |
100 | 100 | text: text, |
101 | - size: 150, | |
101 | + size: 165, | |
102 | 102 | margin: 0, |
103 | 103 | backgroundColor: '#ffffff', |
104 | 104 | foregroundColor: '#000000', | ... | ... |