no message

This commit is contained in:
A1300399510
2024-01-25 19:29:12 +08:00
parent 89020a40b7
commit bd7c792cbe
970 changed files with 119575 additions and 101 deletions

View File

@@ -4,7 +4,11 @@
<span class="comment-amount">{{ commentComments || "" }}</span>
</div>
<div class="post-comment flexacenter" ref="postInputRef" :class="{ 'post-comment-focus': postCommentFocusState }" @click="loginJudgment()">
<!-- <div class=""> -->
<el-input class="post-input flex1" type="textarea" :autosize="postCommentFocusState" placeholder="说说你的想法或疑问…" v-model="commentInputTop" @blur="postCommentFocusBlur" @focus="postCommentFocusState = true"></el-input>
<!-- </div> -->
<div class="post-ok flexcenter" @click="submitAnswerComments(commentInputTop)">发送</div>
</div>
@@ -302,6 +306,7 @@ const submitAnswerComments = (content, index, i) => {
},
voteoption: haveVotedValue.value || null,
...data,
...data.data
}
targetCommentList[index]["child"].unshift(targetData)
@@ -314,6 +319,7 @@ const submitAnswerComments = (content, index, i) => {
islike: 0,
likenum: 0,
...data,
...data.data,
child: [],
voteoption: haveVotedValue.value || null,
}
@@ -469,13 +475,14 @@ const floorCommentBtn = inject("floorCommentBtn")
const postInputRef = ref(null)
const postCommentFocusBlur = () => {
postCommentFocusState.value = false
const refref = postInputRef.value
nextTick(() => {
let targetDom = refref.querySelector(".el-textarea__inner")
targetDom.style.height = ""
})
setTimeout(() => {
postCommentFocusState.value = false
nextTick(() => {
let targetDom = refref.querySelector(".el-textarea__inner")
targetDom.style.height = ""
})
}, 200)
}
defineExpose({ changeCommentVoteoption, wipeCommentVoteoption, reviewsComment, bottomNavigationBar })