|
@@ -79,8 +79,10 @@ Component({
|
|
y: 0,
|
|
y: 0,
|
|
width: 370,
|
|
width: 370,
|
|
height: 507,
|
|
height: 507,
|
|
- destWidth: 370,
|
|
|
|
- destHeight: 507,
|
|
|
|
|
|
+ // destWidth: 370,
|
|
|
|
+ destWidth: 1110,
|
|
|
|
+ // destHeight: 507,
|
|
|
|
+ destHeight: 1521,
|
|
canvasId: 'myCanvas',
|
|
canvasId: 'myCanvas',
|
|
success: (res) => {
|
|
success: (res) => {
|
|
console.log(res.tempFilePath)
|
|
console.log(res.tempFilePath)
|
|
@@ -269,7 +271,7 @@ Component({
|
|
ctx.fillText('已使出洪荒之力,声情并茂的为', (370 - ctx.measureText('已使出洪荒之力,声情并茂的为').width) / 2, 138)
|
|
ctx.fillText('已使出洪荒之力,声情并茂的为', (370 - ctx.measureText('已使出洪荒之力,声情并茂的为').width) / 2, 138)
|
|
ctx.fillText(`《${this.data.title}》`, (370 - ctx.measureText(`《${this.data.title}》`).width) / 2, 160)
|
|
ctx.fillText(`《${this.data.title}》`, (370 - ctx.measureText(`《${this.data.title}》`).width) / 2, 160)
|
|
ctx.fillText(`配了一段惊世之作`, (370 - ctx.measureText(`配了一段惊世之作`).width) / 2, 182)
|
|
ctx.fillText(`配了一段惊世之作`, (370 - ctx.measureText(`配了一段惊世之作`).width) / 2, 182)
|
|
- ctx.drawImage(this.data.iconImg, 9, 205, 352, 145);
|
|
|
|
|
|
+ ctx.drawImage(this.data.iconImg, 9, 205, 704, 145);
|
|
ctx.setFontSize(18)
|
|
ctx.setFontSize(18)
|
|
ctx.setFillStyle('#000')
|
|
ctx.setFillStyle('#000')
|
|
ctx.drawImage('../../../static/groupImg/share_bottom.png', 3, 419, 370, 192);
|
|
ctx.drawImage('../../../static/groupImg/share_bottom.png', 3, 419, 370, 192);
|