< scroll-view scroll-y class = "list-view" bindscrolltolower = "" > < view wx:for = "{{roomList}}" wx:for-item = "item" > < view data-id = "{{item.id}}" data-themeid = "{{item.themeId}}" > < view open-type = "getUserInfo" style = "background-image:url({{item.coverUrl}})" ></ view > </ view > </ view > </ scroll-view > |
这个地方,我的roomList是根据异步请求加载的,设置了setData,页面中可以看到roomList数组有数据,但是渲染失败,撤掉scroll-view,正常循环出结果
你这。。什么都看不出来啊。不过,我猜是你 scroll-view的样式设置有问题