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);
});
卡西莫多是疯子
- 发布:2023-07-13 11:08
- 更新:2023-08-02 15:11
- 阅读:338