ctx.draw(false, () => {
setTimeout(() => {
uni.canvasToTempFilePath({
x: 0,
y: 0,
width: width,
height: height,
destWidth: width,
destHeight: height,
canvasId: "mkdCanvas",
success(res) {
uni.getFileInfo({
filePath: res.tempFilePath,
success: (res) => {
console.log(res)
}
})
_this.self.pageSelf.imgPath.push(res
.tempFilePath);
labels.shift();
genImg(labels);
},
fail(e) {
console.log("获取打印文件失败", e);
labels.shift();
genImg(labels);
}
}, _this.self.pageSelf); //只有微信小程序平台需要传入当前页面对象
}, MkdCanvasBlocks.self.allDelay);
});
![卡西莫多是疯子](https://img-cdn-tc.dcloud.net.cn/account/identicon/5ad99bf51cfafac6072f892a32d8f225.png)
卡西莫多是疯子
- 发布:2023-07-13 11:08
- 更新:2023-08-02 15:11
- 阅读:392
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20230713/58e0fb13261d21922c1d7f0dd99c6b6d.jpg)