IOS uni.canvasToTempFilePath 返回图片路径 填入image 白屏 图片没显示,什么原因
<image :src="shareImage" class="share-image"></image>
eventDraw() {
var _self=this;
const ctx = uni.createCanvasContext('myCanvas');
ctx.setFontSize(13);
ctx.setFillStyle('white');
ctx.fillText(this.recommendationCode, 210, 330);
ctx.fillText(this.recommendationPeople, 210, 350);
ctx.fillText(this.recommendationPhone, 210, 370);
ctx.drawImage('http://47.93.223.142:9090/1.jpg', 200, 200, 100, 100);
ctx.draw(true,function(){
uni.canvasToTempFilePath({
x: 10,
y: 20,
width: 50,
height: 50,
destWidth: 100,
destHeight: 100,
fileType: 'jpg',
canvasId: 'myCanvas',
success: function(res) {
_self.shareImage=res.tempFilePath;
}
})
});
},
8***@qq.com
怎么解决的?
2019-01-24 14:01
1***@qq.com (作者)
后面就好了 没问题
2019-01-26 14:22
1***@qq.com
回复 1***@qq.com: 自己就好了吗?
2019-05-17 12:08