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

转盘内加载奖品图片时,时常会加载不出来 #264

Closed
jpx5028254 opened this issue May 13, 2022 · 11 comments
Closed

转盘内加载奖品图片时,时常会加载不出来 #264

jpx5028254 opened this issue May 13, 2022 · 11 comments
Labels

Comments

@jpx5028254
Copy link

  • 你当前是什么框架(必填):
  • 你使用的是哪个包(必填):
  • 你当前插件的版本(必填):
  • 当前环境是小程序还是浏览器(选填):
  • 详细描述你的bug:
  • 问题代码(重要):
// 代码开始, 别再放歪了行吗

// 代码结束
@buuing
Copy link
Owner

buuing commented May 14, 2022

#177

@buuing
Copy link
Owner

buuing commented May 14, 2022

补充一下提问模板, 我啥信息都没有, 怎么排查问题?

@jpx5028254
Copy link
Author

prizes字段里imgs字段传入的图片url时,会时常出现canvas绘制不出来图片,然后奖品区域空白

@jpx5028254
Copy link
Author

图片是http的远程图片不是本地的,本地图片没问题,远程有问题

@buuing
Copy link
Owner

buuing commented May 17, 2022

你先把提问模板给补充好

@jpx5028254
Copy link
Author

jpx5028254 commented May 17, 2022

1、vue3
2、我直接引用了lucky-canvas插件,自己用vue3写法封装了
3、版本:lucky-canvas^1.7.20
4、是以h5页面的形式被小程序和app嵌入的
5、传入http远程图片时,会出现canvas加载不出来,奖品区域空白的情况,不是每次是间隔出现

@buuing
Copy link
Owner

buuing commented May 17, 2022

试一下我封装的组件@lucky-canvas/vue也会出现这个问题吗

@jpx5028254
Copy link
Author

你那个用插件转的vue3写法,之前有个实时修改参数不同步刷新的问题,然后我就直接引用插件封装了

@buuing
Copy link
Owner

buuing commented May 17, 2022

你看看 https://100px.net/playground.html 上面能否复现这个问题

@jpx5028254
Copy link
Author

这个是没图的prizes啊

@buuing
Copy link
Owner

buuing commented May 17, 2022

你自己把数据结构写一下不就得了? 我还把饭喂到你嘴里?

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

No branches or pull requests

2 participants