优化列表加时间,讨论默认显示第一条
This commit is contained in:
6
app.vue
6
app.vue
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user