update index/index.vue
This commit is contained in:
parent
fdffe6d9bc
commit
007fb0ffc6
@ -31,7 +31,7 @@
|
|||||||
loadStatus2: 'loadmore',
|
loadStatus2: 'loadmore',
|
||||||
page1: 1,
|
page1: 1,
|
||||||
page2: 1,
|
page2: 1,
|
||||||
shareCover: '',//分享封面
|
shareCover: '', //分享封面
|
||||||
followUserPost: [],
|
followUserPost: [],
|
||||||
lastPost: [],
|
lastPost: [],
|
||||||
tabList: [{
|
tabList: [{
|
||||||
@ -59,9 +59,7 @@
|
|||||||
if (this.current === 0) {
|
if (this.current === 0) {
|
||||||
this.page1++;
|
this.page1++;
|
||||||
this.getFollowUserPost();
|
this.getFollowUserPost();
|
||||||
}
|
} else if (this.current === 1) {
|
||||||
|
|
||||||
if (this.current === 1) {
|
|
||||||
this.page2++;
|
this.page2++;
|
||||||
this.getLastPost();
|
this.getLastPost();
|
||||||
}
|
}
|
||||||
@ -71,8 +69,7 @@
|
|||||||
this.page1 = 1;
|
this.page1 = 1;
|
||||||
this.followUserPost = [];
|
this.followUserPost = [];
|
||||||
this.getFollowUserPost();
|
this.getFollowUserPost();
|
||||||
}
|
} else if (this.current === 1) {
|
||||||
if (this.current === 1) {
|
|
||||||
this.page2 = 1;
|
this.page2 = 1;
|
||||||
this.lastPost = [];
|
this.lastPost = [];
|
||||||
this.getLastPost();
|
this.getLastPost();
|
||||||
@ -146,4 +143,4 @@
|
|||||||
page {
|
page {
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue
Block a user