12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- Page({
-
- data: {
- messages: []
- },
-
- onLoad (options) {
- const messages = this.data.messages
- for (var i = 0; i < 18; i++) {
- messages.push({
- title: '免费送票!超有内涵的门票。',
- date: i + ' September',
- image: 'https://unsplash.it/400/300',
- summary: '最糟糕的,也许就是最幸运的。'
- })
- }
- this.setData({ messages })
- },
-
- onReady () {
- const query = wx.createSelectorQuery()
- query.select('#bottom').boundingClientRect()
- query.exec(res => wx.pageScrollTo({ scrollTop: res[0].top + 200 }))
- },
-
- onShow () {
- },
-
- onHide () {
- },
-
- onUnload () {
- },
-
- onPullDownRefresh () {
- },
-
- onReachBottom () {
- },
-
- onShareAppMessage () {
- }
- })
|