canvas生成海报真机上不显示,打开调试模式显示?
canvas生成海报真机上不显示,打开调试模式显示
有大佬知道怎么解决嘛,想知道具体点的解决方法
这里直接用的插件,直接渲染数据的
return {
message:'',
code:'',
lists: \[
{
type: 'image',
content: '<a href="https://dahuangliangpin.oss-cn-beijing.aliyuncs.com/wx/images/inviteFriends.png" rel="noopener noreferrer" target="_blank">https://dahuangliangpin.oss-cn-beijing.aliyuncs.com/wx/images/inviteFriends.png</a>',
width: 620,
height: 1000,
x: 0,
y: 0,
},
{
type: 'image',
content: '',
width: 200,
height: 200,
x: 215,
y: 680,
arc: false,
arcX: 0,
arcY: 0,
arcR: 500
},
{
type: 'text',
content: '',
x: 215,
y: 920,
color: '\#FFF',
size: 30,
// maxWidth: 100,
// align: 'left',
},
{
type: 'rect',
width: 1,
height: 100,
x: 0,
y: 10,
color: '\#ff0000',
},
{
type: 'image',
content: '<a href="https://img1.baidu.com/it/u=686675228,2481849275&fm=26&fmt=auto&gp=0.jpg" rel="noopener noreferrer" target="_blank">https://img1.baidu.com/it/u=686675228,2481849275&fm=26&fmt=auto&gp=0.jpg</a>',
width: 100,
height: 100,
x: 200,
y: 200,
arc: true,
arcX: 250,
arcY: 250,
arcR: 50
},
\]
};