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