| | |
| | | this.getList(); |
| | | }, |
| | | onReachBottom: function onReachBottom() { |
| | | console.log('触底加载'); |
| | | this.getList(); |
| | | }, |
| | | onPullDownRefresh: function onPullDownRefresh() { |
| | | this.page = 1; |
| | | this.list = []; |
| | | this.next = false; |
| | | this.getList(1); |
| | | }, |
| | | methods: { |
| | | jump: function jump(type, id) { |
| | |
| | | }); |
| | | } |
| | | }, |
| | | getList: function getList() { |
| | | getList: function getList(type) { |
| | | var _this = this; |
| | | if (!this.next) { |
| | | this.$u.api.transactionsPage({ |
| | |
| | | property: 'createDate' |
| | | }] |
| | | }).then(function (res) { |
| | | if (type) { |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | if (res.code === 200) { |
| | | var _this$list; |
| | | _this.page += 1; |