Commit aaed08182da8ce429cc3b1b3d77acfa08e0cb720
1 parent
f751e35f
视频
Showing
1 changed file
with
8 additions
and
3 deletions
pages/video/index.js
| ... | ... | @@ -65,7 +65,12 @@ Page({ |
| 65 | 65 | success:function(res){ |
| 66 | 66 | |
| 67 | 67 | } |
| 68 | - }) | |
| 69 | - | |
| 70 | - } | |
| 68 | + }) | |
| 69 | + }, | |
| 70 | + //---加载更多是靠这个函数---- | |
| 71 | + onReachBottom: function() { | |
| 72 | + var goods_list = this.selectComponent("#goods_list"); //组件的id | |
| 73 | + if (goods_list) goods_list.get_list(); | |
| 74 | + }, | |
| 75 | + | |
| 71 | 76 | }) |
| 72 | 77 | \ No newline at end of file | ... | ... |