Browse Source

上传

master
前端-胡立永 1 month ago
parent
commit
f491bbf9db
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      pages_order/mine/promotion.vue

+ 3
- 1
pages_order/mine/promotion.vue View File

@ -105,9 +105,11 @@
ctx.drawImage(bgImage,
0, 0, bgImage.width, bgImage.height)
let size = Math.floor(canvas.width / 3)
coderImage.onload = () => {
ctx.drawImage(coderImage,
canvas.width / 2 - 175, canvas.height / 2 - 100, 350, 350)
canvas.width / 2 - (size / 2), canvas.height * 0.6, size, size)
this.canvasToTempFilePath()
}
}


Loading…
Cancel
Save