|
|
@ -2,7 +2,7 @@ |
|
|
|
<view class="page"> |
|
|
|
<view class="flex content"> |
|
|
|
|
|
|
|
<view style="width: 598rpx; height: 1063rpx;"> |
|
|
|
<view style="width: 698rpx; height: 1163rpx;"> |
|
|
|
<canvas id="myCanvas" canvas-id="firstCanvas1" type="2d" style="width: 100%; height: 100%;"></canvas> |
|
|
|
</view> |
|
|
|
|
|
|
@ -114,7 +114,8 @@ |
|
|
|
coderImage.src = this.data.url |
|
|
|
coderImage.onload = () => { |
|
|
|
const x = 197 * Ratio / dpr |
|
|
|
const y = 562 * Ratio / dpr |
|
|
|
const y = 572 * Ratio / dpr |
|
|
|
// const y = 562 * Ratio / dpr |
|
|
|
const size = 206 * Ratio / dpr |
|
|
|
ctx.drawImage(coderImage, x, y, size, size) |
|
|
|
|
|
|
@ -176,7 +177,7 @@ |
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
.page { |
|
|
|
height: 100vh; |
|
|
|
// height: 100vh; |
|
|
|
} |
|
|
|
|
|
|
|
.content { |
|
|
|