微信小程序 canvas-2d 绘图工具🖌️🧑🎨 | 支持按需加载🍃,支持内容配置🧩,支持功能扩展🔥 | 适配各种机型📱,超轻量☁️,超易用⚪,无需学习📚️,直接上手🚀
setTimeout(function() { var _this = this; canvas.draw({ series: _series }).then(() => { uni.showModal({ title: '授权提示', content: "是否将图片保存到手机相册", success: (res) => { if (res.confirm) { com.showLoading(); // 保存到相册 canvas.save({ destWidth: _this.screenWidth, destHeight: _this.backImageHeight }).then(res => { com.hideLoading(); uni.showToast({ title: "保存成功", icon: "none" }); }).catch(err=>{ com.hideLoading(); uni.showToast({ title: "保存失败1", icon: "none" }); }) } else { com.hideLoading(); uni.showToast({ title: "保存失败", icon: "none" }); } } }); }).catch(err => { com.hideLoading(); //console.log('绘制失败!', err) uni.showToast({ title: "保存失败" + err, icon: "none" }); }); }, 500)
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by fqdltd and has received 1 comments.