| | |
| | | pagelist: 0, |
| | | pages: 0, |
| | | flag: true, |
| | | |
| | | |
| | | pullDown: false |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | } |
| | | }, 1000); |
| | | }, |
| | | |
| | | onPullDownRefresh: function() { |
| | | var that = this; |
| | | |
| | | this.pullDown = true; |
| | | this.pagelist = 0; |
| | | this.pages = 0; |
| | | this.flag = true; |
| | | this.dataList = []; |
| | | this.newsList = []; |
| | | this.status = 'loading'; |
| | | this.keyValue = ''; |
| | | setTimeout(() => { |
| | | if (that.current == 0) { |
| | | that.getReceive(); |
| | | } else { |
| | | that.getSend(); |
| | | } |
| | | }, 1000) |
| | | |
| | | }, |
| | | |
| | | mounted() { |
| | | this.getReceive(); |
| | | }, |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | | that.status = 'nomore'; |
| | |
| | | var reg1 = /<\/?p[^>]*>/g; |
| | | |
| | | item.content = item.content.replace(reg1, ''); |
| | | |
| | | |
| | | var reg2 = /[ ]/g; |
| | | |
| | | |
| | | item.content = item.content.replace(reg2, ''); |
| | | |
| | | console.log(item) |