Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片不显示 #252

Open
2kGeekc opened this issue Jul 1, 2022 · 1 comment
Open

图片不显示 #252

2kGeekc opened this issue Jul 1, 2022 · 1 comment

Comments

@2kGeekc
Copy link

2kGeekc commented Jul 1, 2022

加载的是网络图片, 图片怎么都不显示, 哪里有问题呢?, 下载域名白名单也设置了

 this.posterConfig = {
          width: 430,
          height: 650,
          backgroundColor: '#FFFFFF',
          pixelRatio: 20,
          images: [
            {
              x: 0,
              y: 0,
              url: 'https://atu365-1257229429.cos.ap-shanghai.myqcloud.com/b9f402d7cbacb89c33d599abc90d6b97.jpg',
              width: 430,
              height: 430,
              zIndex: 999999999
            },
            {
              x: 0,
              y: 480,
              url: 'https://atu365-1257229429.cos.ap-shanghai.myqcloud.com/b9f402d7cbacb89c33d599abc90d6b97.jpg',
              width: 200,
              height: 200,
              zIndex: 999999999
            },
          ],
          texts: [
            {
              x: 20,
              y: 420,
              text: '¥ 100.00',
              fontSize: 16,
              color: '#FF4D5D',
              fontWeight: 'bold'
            },
            {
              x: 20,
              y: 450,
              text: '这是商品名称'
              fontSize: 16,
            },
            {
              x: 200,
              y: 500,
              text: '长按识别小程序码',
              fontSize: 20,
              fontWeight: 'bold'
            },
            {
              x: 200,
              y: 520,
              text: '超值好物一起拼',
              fontSize: 14,
              color: '#999999'
            }
          ]
        }
@clwy-ito
Copy link

image

后面少了一个逗号

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants