Showing
2 changed files
with
9 additions
and
6 deletions
@@ -113,12 +113,14 @@ export default { | @@ -113,12 +113,14 @@ export default { | ||
113 | }, | 113 | }, |
114 | }, | 114 | }, |
115 | mounted() { | 115 | mounted() { |
116 | - this.CHANGE_ARTICLE_LIST_INTRO_HEIGHT({ | ||
117 | - articleId: this.data.articleId, | ||
118 | - introHeight: get(this.$refs, 'introPool.scrollHeight', 0) + 20, | ||
119 | - introCollapseHeight: get(this.$refs, 'intro.scrollHeight', 0), | ||
120 | - type: this.type | ||
121 | - }); | 116 | + if (this.data.introHeight === 0) { |
117 | + this.CHANGE_ARTICLE_LIST_INTRO_HEIGHT({ | ||
118 | + articleId: this.data.articleId, | ||
119 | + introHeight: get(this.$refs, 'introPool.scrollHeight', 0) + 20, | ||
120 | + introCollapseHeight: get(this.$refs, 'intro.scrollHeight', 0), | ||
121 | + type: this.type | ||
122 | + }); | ||
123 | + } | ||
122 | import('animejs').then(({default: anime}) => { | 124 | import('animejs').then(({default: anime}) => { |
123 | this.anime = anime; | 125 | this.anime = anime; |
124 | }); | 126 | }); |
@@ -54,6 +54,7 @@ export default { | @@ -54,6 +54,7 @@ export default { | ||
54 | intro: get(get(this.data, 'blockList', []).filter(block => block.templateKey === 'text'), '[0].contentData', ''), | 54 | intro: get(get(this.data, 'blockList', []).filter(block => block.templateKey === 'text'), '[0].contentData', ''), |
55 | isExpand: this.data.isExpand, | 55 | isExpand: this.data.isExpand, |
56 | introHeight: this.data.introHeight, | 56 | introHeight: this.data.introHeight, |
57 | + introCollapseHeight: this.data.introCollapseHeight, | ||
57 | articleType: this.data.articleType, | 58 | articleType: this.data.articleType, |
58 | labelList: this.data.labelList, | 59 | labelList: this.data.labelList, |
59 | hasFavor: this.data.hasFavor, | 60 | hasFavor: this.data.hasFavor, |
-
Please register or login to post a comment