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

用“wxParse多数据循环使用方法”时发现图片没有更新宽高 #191

Open
yadewe opened this issue Dec 28, 2017 · 7 comments
Open

Comments

@yadewe
Copy link

yadewe commented Dec 28, 2017

根据 wxParse多数据循环使用方法 这篇文章实现,发现图片的尺寸错误。
图片显示最开始的小图状态,查看代码发现 style中的width和height都为空。

@yadewe yadewe closed this as completed Dec 28, 2017
@yadewe
Copy link
Author

yadewe commented Dec 28, 2017

用新的版本,已经解决

@zpzxgcr
Copy link

zpzxgcr commented Jan 22, 2018

楼主我是用的最新的0.3 没有解决问题啊 和你一样的情况

@yadewe

@yadewe
Copy link
Author

yadewe commented Jan 22, 2018

是不是调用方式不一样呢?
我自己封装“wxParse.plus.js”后再使用的。
@chanping 你可以参考一下附件

wxParse.plus.zip

@zpzxgcr
Copy link

zpzxgcr commented Jan 22, 2018

多谢楼主回复 我已经解决了,因为自己按照git主的多数据循环写了很多了 就直接改了源代码进行处理

@yadewe
Copy link
Author

yadewe commented Jan 24, 2018

调试后发现是一个Bug,问题说明:
如:需要将html数组 dataList 中的数据显示出来,
最终会在data中生成2种数据:
data:{
dataList0:{ ... },
dataList1:{ ... },
...
dataList:[{ ... }, ...]
}
问题是:
xwml中用数组dataList绑定,
但图片加载完把宽高设置在 dataList0 中

dataList[0] 和 dataList0 对应不上,所以没有效果。

@yadewe yadewe reopened this Jan 24, 2018
yadewe added a commit to yadewe/wxParse that referenced this issue Jan 24, 2018
设置图片宽高时,bindName支持多级读取,用“.”分隔。
@ExiaGo
Copy link

ExiaGo commented Apr 8, 2018

@yadewe 我按照您的 fixed bug 更改后好像没有效果,很奇怪啊...求教。

@ExiaGo
Copy link

ExiaGo commented Apr 17, 2018

请教过题主,已经解决问题。

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

3 participants