|
@@ -78,7 +78,7 @@
|
|
</NuxtLink>
|
|
</NuxtLink>
|
|
<div
|
|
<div
|
|
@click.stop="addReply(item, item?.id)"
|
|
@click.stop="addReply(item, item?.id)"
|
|
- class="box-border mb-12 line-clamp-1 rounded-full border w-95 h-26 flex justify-center items-center text-base px-8 text-black-3 leading-4xl bg-[#F5F5F5] active:bg-black/[0.1]"
|
|
|
|
|
|
+ class="box-border mb-12 line-clamp-1 rounded-full w-95 h-26 flex justify-center items-center text-base px-8 text-black-3 leading-4xl bg-[#F5F5F5] active:bg-black/[0.1]"
|
|
>
|
|
>
|
|
<div class="w-16 h-16 rounded-full shrink-0 mr-4">
|
|
<div class="w-16 h-16 rounded-full shrink-0 mr-4">
|
|
<img
|
|
<img
|
|
@@ -197,10 +197,9 @@
|
|
@click="handleBlur"
|
|
@click="handleBlur"
|
|
class="w-[100vw] h-[100vh] fixed top-0 border-[#000] left-0 z-100 bg-[#000]/[0.1]"
|
|
class="w-[100vw] h-[100vh] fixed top-0 border-[#000] left-0 z-100 bg-[#000]/[0.1]"
|
|
>
|
|
>
|
|
- 123132
|
|
|
|
- <div @click.stop="" class="fixed bottom-0 left-0 w-full bg-[#fff] pt-10 pb-30 border z-52">
|
|
|
|
|
|
+ <div @click.stop="" class="fixed bottom-0 left-0 w-full bg-[#fff] pt-10 pb-30 z-52">
|
|
<div class="flex items-start">
|
|
<div class="flex items-start">
|
|
- <!-- border-[#FD9A00] -->
|
|
|
|
|
|
+ <!-- border-[#FD9A00] @blur="handleBlur"-->
|
|
<div
|
|
<div
|
|
class="relative bg-[#F3F3F3] flex-1 ml-12 mr-12 pl-5 pr-5 pt-4 pb-4 rounded-[4px] h-50 border flex items-center justify-between"
|
|
class="relative bg-[#F3F3F3] flex-1 ml-12 mr-12 pl-5 pr-5 pt-4 pb-4 rounded-[4px] h-50 border flex items-center justify-between"
|
|
>
|
|
>
|
|
@@ -211,12 +210,11 @@
|
|
replyComment?.id ? `回复:${replyComment?.commentUserIdDictMap?.name}` : ''
|
|
replyComment?.id ? `回复:${replyComment?.commentUserIdDictMap?.name}` : ''
|
|
"
|
|
"
|
|
@focus="textareaFocus"
|
|
@focus="textareaFocus"
|
|
- @blur="handleBlur"
|
|
|
|
class="ml-8 flex-1 h-full bg-black/[0]"
|
|
class="ml-8 flex-1 h-full bg-black/[0]"
|
|
maxlength="5000"
|
|
maxlength="5000"
|
|
style="resize: none"
|
|
style="resize: none"
|
|
></textarea>
|
|
></textarea>
|
|
- <!-- <img @click="openEmoji" src="~/assets/img/yj/emoji.png" class="w-22 h-22" alt="" /> -->
|
|
|
|
|
|
+ <img @click="openEmoji" src="~/assets/img/yj/emoji.png" class="w-22 h-22" alt="" />
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@click="addComment"
|
|
@click="addComment"
|
|
@@ -296,7 +294,7 @@ function onCommentFilterClose(value) {
|
|
|
|
|
|
// 获取焦点
|
|
// 获取焦点
|
|
function textareaFocus() {
|
|
function textareaFocus() {
|
|
- // showEmoji.value = false
|
|
|
|
|
|
+ showEmoji.value = false
|
|
showInput.value = true
|
|
showInput.value = true
|
|
textareaRef.value?.focus()
|
|
textareaRef.value?.focus()
|
|
}
|
|
}
|
|
@@ -462,6 +460,7 @@ async function addComment() {
|
|
showToast('评论成功')
|
|
showToast('评论成功')
|
|
|
|
|
|
// getMyCommentList()
|
|
// getMyCommentList()
|
|
|
|
+ showInput.value = false
|
|
showEmoji.value = false
|
|
showEmoji.value = false
|
|
})
|
|
})
|
|
.finally(() => (canAddComment.value = true), (replyComment.value = {}), (cursorIndex.value = 0))
|
|
.finally(() => (canAddComment.value = true), (replyComment.value = {}), (cursorIndex.value = 0))
|