| | |
| | | that.newsList.push(that.dataList[that.pagelist]); |
| | | flag = false; |
| | | that.flag = false; |
| | | |
| | | this.status = 'nomore'; |
| | | } |
| | | |
| | | } |
| | |
| | | }; |
| | | }, |
| | | onLoad() { |
| | | console.log(this.$store.state) |
| | | }, |
| | | onReachBottom() { |
| | | |
| | |
| | | that.newsList.push(that.dataList[that.pagelist]); |
| | | flag = false; |
| | | that.flag = false; |
| | | |
| | | this.status = 'nomore'; |
| | | } |
| | | |
| | | } |
| | |
| | | url: this.$store.state.piAPI + "/directive/page?sendDirectiveId=" + this.$store.state.puserID, |
| | | method: "get", |
| | | data: { |
| | | |
| | | |
| | | }, |
| | | success: (res) => { |
| | | var resdata = res.data.data.records; |
| | |
| | | that.newsList = []; |
| | | that.flag = true; |
| | | that.dataList = resdata; |
| | | |
| | | |
| | | var flag = true; |
| | | |
| | | |
| | | for (var i = 0; i < 5; i++) { |
| | | |
| | | |
| | | if (that.pagelist <= that.dataList.length - 2) { |
| | | |
| | | |
| | | that.newsList.push(that.dataList[that.pagelist++]); |
| | | |
| | | |
| | | } else { |
| | | |
| | | |
| | | if (that.dataList.length - 1 == that.pagelist && flag == true) { |
| | | |
| | | |
| | | that.newsList.push(that.dataList[that.pagelist]); |
| | | flag = false; |
| | | that.flag = false; |
| | | |
| | | this.status = 'nomore'; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | }); |
| | | }, |
| | |
| | | that.newsList.push(that.dataList[that.pagelist]); |
| | | flag = false; |
| | | that.flag = false; |
| | | |
| | | this.status = 'nomore'; |
| | | } |
| | | |
| | | } |
| | |
| | | that.newsList.push(that.dataList[that.pagelist]); |
| | | flag = false; |
| | | that.flag = false; |
| | | |
| | | this.status = 'nomore'; |
| | | } |
| | | |
| | | } |
| | |
| | | form: { |
| | | content: '', |
| | | category: '', |
| | | type: '', |
| | | recipient: '', |
| | | categoryText: '', |
| | | type: '', |
| | | typeText: '', |
| | | recipient: '', |
| | | recipientText: '' |
| | | }, |
| | | rules: { |
| | |
| | | that.newsList.push(that.dataList[that.pagelist]); |
| | | flag = false; |
| | | that.flag = false; |
| | | |
| | | this.status = 'nomore'; |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | that.newsList.push(that.dataList[that.pagelist]); |
| | | flag = false; |
| | | this.status = 'nomore'; |
| | | that.flag = false; |
| | | |
| | | } |
| | |
| | | that.newsList.push(that.dataList[that.pagelist]); |
| | | flag = false; |
| | | that.flag = false; |
| | | |
| | | this.status = 'nomore'; |
| | | } |
| | | |
| | | } |