, wx.downloadFile({
url: 'https://qqadapt.qpic.cn/adapt/0/7363d9b4-a4d0-46e1-a42a-5fc8b5f24a5f/400?pt=0&ek=1&kp=1&sce=60-2-2',
success (res) {
var success_url = res.tempFilePath
})
var o = success_url1
const fileManager = wx.getFileSystemManager();
let base64 = 'data:image/jpg;base64,' +fileManager.readFileSync(o,'base64')
query.select('#myCanvas')
.fields({
node: true,
size: true
}).exec((res) => {
console.log(res)
const canvas = res[0].node
const ctx = canvas.getContext('2d')
const dpr = wx.getSystemInfoSync().windowWidth / 375
canvas.width = res[0].width * dpr
canvas.height = res[0].height * dpr
ctx.scale(dpr, dpr)
that.roundRectc(canvas, ctx, 0, 0, 262.5 * dpr, 430 * dpr, 15 * dpr, '#transparent', dpr, base64) //大图
})
我用过base64转码, downloadFile域名也添加了,就是没图片。。QAQ
ios 7.0.21发布了,修复了canvas的问题,麻烦试试看~
请问解决了嘛 呜呜呜 我也遇到惹
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)