Authored by 杨延青

Merge branch 'feature/0330' into 'release/6.8.8'

fix user fans list



See merge request !33
... ... @@ -21,25 +21,29 @@ export default {
};
},
created() {
this.isMine = !this.$route.params.id;
this._baseParams = {
authorType: this.$route.params.type || 1,
limit: 20,
};
if (!this.isMine) {
this._baseParams.authorUid = this.$route.params.id;
}
},
activated() {
this.init(this.$route.params);
this.$refs.userList.init();
},
beforeRouteUpdate(to, from, next) {
this.init(to.params)
this.$refs.userList.init();
next();
},
methods: {
...mapActions(['authorFansList', 'authorMineFansList']),
init(params) {
this.isMine = !params.id;
if (!this.isMine) {
this._baseParams.authorUid = params.id;
}
},
onFetch({page, lastedTime}) {
let params = Object.assign({page, lastedTime}, this._baseParams);
... ...
... ... @@ -21,25 +21,29 @@ export default {
};
},
created() {
this.isMine = !this.$route.params.id;
this._baseParams = {
authorType: this.$route.params.type || 1,
limit: 20,
};
if (!this.isMine) {
this._baseParams.authorUid = this.$route.params.id;
}
},
activated() {
this.init(this.$route.params);
this.$refs.userList.init();
},
beforeRouteUpdate(to, from, next) {
this.init(to.params)
this.$refs.userList.init();
next();
},
methods: {
...mapActions(['authorAttentionList', 'authorMineAttentionList']),
init(params) {
this.isMine = !params.id;
if (!this.isMine) {
this._baseParams.authorUid = params.id;
}
},
onFetch({page, lastedTime}) {
let params = Object.assign({page, lastedTime}, this._baseParams);
... ...
... ... @@ -52,12 +52,10 @@ export default {
noMore: false
};
},
mounted() {
this.init();
},
methods: {
init() {
this._page = 1;
this._totalPage = 1;
this.list = [];
this.noMore = false;
this.fetchList();
... ...