diff --git a/src/components/Film.vue b/src/components/Film.vue index 74f2f92..5c95bb2 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -367,6 +367,7 @@ export default { const key = this.site.key const type = this.type.tid const page = this.pagecount + console.log(key, type, page, 'infiniteHandler') this.statusText = ' ' if (key && page < 1) { // OK资源前几类硬是去不掉 $state.complete() @@ -561,7 +562,7 @@ export default { this.searchContents = [] this.show.find = false if (this.setting.view === 'picture') { - this.$refs.waterfall.refresh() + this.$refs.filmWaterfall.refresh() } } }, @@ -584,6 +585,17 @@ export default { created () { this.getAllSites() this.getAllSearch() + }, + mounted () { + window.addEventListener('resize', () => { + if (this.$refs.filmWaterfall && this.view === 'Film') { + this.$refs.filmWaterfall.resize() + this.$refs.filmWaterfall.refresh() + setTimeout(() => { + this.$refs.filmWaterfall.refresh() + }, 500) + } + }, false) } } diff --git a/src/components/Recommendation.vue b/src/components/Recommendation.vue index fa6896f..801ed37 100644 --- a/src/components/Recommendation.vue +++ b/src/components/Recommendation.vue @@ -83,7 +83,7 @@ rowPerView: 2, } }" - animationEffect="fadeInUp" + animationDuration="0.5s" backgroundColor="rgba(0, 0, 0, 0)">