|
|
|
@ -95,7 +95,7 @@
|
|
|
|
</rh-fixed>
|
|
|
|
</rh-fixed>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
|
<canvas type="2d" style="position: absolute; left: -2000px; background: #fff"
|
|
|
|
<canvas type="2d" style="position: absolute; left: -2000px; width: 425px; height: 350px; background: #fff"
|
|
|
|
id="canvasId" ref="canvasId"></canvas>
|
|
|
|
id="canvasId" ref="canvasId"></canvas>
|
|
|
|
<!-- #endif -->
|
|
|
|
<!-- #endif -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -359,9 +359,6 @@
|
|
|
|
success(res) {
|
|
|
|
success(res) {
|
|
|
|
canvas.width = res.width;
|
|
|
|
canvas.width = res.width;
|
|
|
|
canvas.height = res.height + 250;
|
|
|
|
canvas.height = res.height + 250;
|
|
|
|
// 设置Canvas的CSS样式尺寸与逻辑尺寸一致,避免拉伸变形
|
|
|
|
|
|
|
|
canvas.style.width = res.width + 'px';
|
|
|
|
|
|
|
|
canvas.style.height = (res.height + 250) + 'px';
|
|
|
|
|
|
|
|
mycenter = canvas.width;
|
|
|
|
mycenter = canvas.width;
|
|
|
|
myheight = canvas.height;
|
|
|
|
myheight = canvas.height;
|
|
|
|
const img = canvas.createImage();
|
|
|
|
const img = canvas.createImage();
|
|
|
|
|