现在数据加载过来了,怎么显示在页面上呢?
1、开始编写movie-grid-template,新建模板文件。
movie-grid-template 中
引用movie-template模板。
引用movie-template模板样式


2、在more-movie.wxml中
引入movieGridTemplate模板
引入movieGridTemplate模板样式
movie-grid-template中开始编写样式


3、在more-movie.wxml中
引用模板movie-grid-template 模板。


未实现时候的样式:

用一个view包含movie-template,类名single-view-container,然后在view上写样式。不能再模板上写。

这里尝试用flex之后,上滑加载有问题。
网友评论