1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- Page({
-
- data: {
- switchTitle:['热门','最新','我发布的','我点赞的'],
- list:[
- {},
- {},
- {},
- ],
- loading: '上拉加载',
- flag: 0,
- },
-
- onLoad: function (options) {
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- if (this.data.flag == 0) {
- this.setData({
- loading: '加载中',
- flag: 1
- })
- setTimeout(() => {
- this.setData({
- list: [{},
- {},
- {},
- {},
- {},
- {},
- {},
- {},
- {},
- {},
- ],
- loading: '没有更多数据',
- flag: 2
- })
- }, 2000);
- }
- },
-
- onShareAppMessage: function () {
- }
- })
|