优化列表加时间,讨论默认显示第一条

This commit is contained in:
A1300399510
2024-02-01 12:32:34 +08:00
parent 57b96dc063
commit 5322e4d74d
21 changed files with 166 additions and 292 deletions

View File

@@ -320,7 +320,7 @@
</div>
<template v-if="item['commentState']">
<div class="post-comment flexacenter">
<div class="post-comment flexacenter" :class="{ 'post-comment-radius': item.commentnum == 0 }">
<input class="post-input flex1" placeholder="说点什么…" v-model="item['commentInput']" />
<div class="post-ok flexcenter" @click="submitAnswerComments(index)">OK</div>
</div>
@@ -434,7 +434,7 @@
</div> -->
<!-- <div class="more-comments flexcenter" @click="showComments(index)"> -->
<div class="more-comments flexcenter" @click="handleAllComment(index)">
<div class="more-comments flexcenter" @click="handleAllComment(index)" v-if="item['showOneCommentState'] && item.commentnum > 1">
更多讨论
<img class="more-comments-icon" src="@/img/arrow-circular-gray.png" />
</div>
@@ -1296,7 +1296,7 @@ export default {
nextTick(() => {
openCommentState(index)
})
}
} else element["commentState"] = true
})
// console.log("data.data", data.data) showOneCommentState