| | |
| | | var help = require('../../util/help.js'); |
| | | Page({ |
| | | data: { |
| | | list: [1, 2, 3, 4, 5, 6, 7, 8, 10], |
| | | list: [{id:13213}, 2, 3, 4, 5, 6, 7, 8, 10], |
| | | showLoading: false, |
| | | page: 1, |
| | | total: 15 |
| | | total: 15, |
| | | showNotice: true, |
| | | noticeMode: 'closable',//closable |
| | | }, |
| | | onLoad() { }, |
| | | onPullDownRefresh() { |
| | |
| | | content: "领奖" |
| | | }); |
| | | |
| | | }, |
| | | onNoticeClick() { |
| | | |
| | | if (this.data.noticeMode == 'closable') { |
| | | this.setData({ |
| | | showNotice: false |
| | | }); |
| | | } else { |
| | | my.showToast({ |
| | | content: "进入详情" |
| | | }); |
| | | } |
| | | |
| | | |
| | | }, |
| | | clickItem(event) { |
| | | var item = help.getEventParam(event, 'item'); |
| | | console.log(item.id); |
| | | my.navigateTo({ |
| | | url: '/pages/activity-detail/activity-detail?id='+item.id |
| | | }); |
| | | } |
| | | |
| | | |