From d3b517123778a04b223dd1230291ad3ba536821e Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 22 Feb 2022 17:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MusicComment/index.vue | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/renderer/components/core/PlayDetail/components/MusicComment/index.vue b/src/renderer/components/core/PlayDetail/components/MusicComment/index.vue index 7568203c..8b29c141 100644 --- a/src/renderer/components/core/PlayDetail/components/MusicComment/index.vue +++ b/src/renderer/components/core/PlayDetail/components/MusicComment/index.vue @@ -15,15 +15,16 @@ div.comment(:class="$style.comment" ref="dom_container") button(type="button" @click="handleToggleTab('hot')" :class="[$style.commentType, { [$style.active]: tabActiveId == 'hot' }]") {{$t('comment__hot_title')}} ({{hotComment.total}}) button(type="button" @click="handleToggleTab('new')" :class="[$style.commentType, { [$style.active]: tabActiveId == 'new' }]") {{$t('comment__new_title')}} ({{newComment.total}}) main(:class="$style.tab_main" ref="dom_tabMain") - div(:class="$style.tab_container") - div.scroll(:class="$style.tab_content" ref="dom_commentHot") + div(:class="$style.tab_content") + div.scroll(:class="$style.tab_content_scroll" ref="dom_commentHot") p(:class="$style.commentLabel" style="cursor: pointer;" v-if="hotComment.isLoadError" @click="handleGetHotComment(currentMusicInfo, hotComment.nextPage, hotComment.limit)") {{$t('comment__hot_load_error')}} p(:class="$style.commentLabel" v-else-if="hotComment.isLoading && !hotComment.list.length") {{$t('comment__hot_loading')}} comment-floor(v-if="!hotComment.isLoadError && hotComment.list.length" :class="[$style.commentFloor, hotComment.isLoading ? $style.loading : null]" :comments="hotComment.list") p(:class="$style.commentLabel" v-else-if="!hotComment.isLoadError && !hotComment.isLoading") {{$t('comment__no_content')}} div(:class="$style.pagination") material-pagination(:count="hotComment.total" :btnLength="5" :limit="hotComment.limit" :page="hotComment.page" @btn-click="handleToggleHotCommentPage") - div.scroll(:class="$style.tab_content" ref="dom_commentNew") + div(:class="$style.tab_content") + div.scroll(:class="$style.tab_content_scroll" ref="dom_commentNew") p(:class="$style.commentLabel" style="cursor: pointer;" v-if="newComment.isLoadError" @click="handleGetNewComment(currentMusicInfo, newComment.nextPage, newComment.limit)") {{$t('comment__new_load_error')}} p(:class="$style.commentLabel" v-else-if="newComment.isLoading && !newComment.list.length") {{$t('comment__new_loading')}} comment-floor(v-if="!newComment.isLoadError && newComment.list.length" :class="[$style.commentFloor, newComment.isLoading ? $style.loading : null]" :comments="newComment.list") @@ -34,7 +35,7 @@ div.comment(:class="$style.comment" ref="dom_container")