a1300399510@qq.com 提交于 2023/04/06 -11:40:02
This commit is contained in:
parent
977f10ff7d
commit
a72a0a64b3
@ -3,10 +3,11 @@
|
||||
<!-- 弹窗-讨论-单行 -->
|
||||
<div class="pop-box flexflex flexcolumn" v-if="popState == 'discussionSingle'"
|
||||
@click="openDiscussionSingleState ? handlePopCancel() : ''">
|
||||
<div class="discussion-box pop-box-box flexflex flexcolumn" style="border-radius: .4rem .4rem 0 0;" @click.stop="">
|
||||
<div class="discussion-box pop-box-box flexflex flexcolumn" style="border-radius: .4rem .4rem 0 0;"
|
||||
@click.stop="">
|
||||
<div class="discussion-header flexacenter" v-if="twoCommentData">
|
||||
<img class="discussion-avatar" :src="twoCommentData.avatar" />
|
||||
<div class="discussion-text one-line">{{ twoCommentData.content }}</div>
|
||||
<img class="discussion-avatar" :src="twoCommentData && twoCommentData.avatar" />
|
||||
<div class="discussion-text one-line">{{ twoCommentData && twoCommentData.content }}</div>
|
||||
</div>
|
||||
<div class="discussion-single-box flexflex flex1">
|
||||
<div class="discussion-single-content flexacenter flex1">
|
||||
@ -67,13 +68,15 @@ export default {
|
||||
|
||||
// 提交回复
|
||||
postComment(commentContent) {
|
||||
console.log("dffgkgfk", commentContent);
|
||||
this.$parent.postComment(commentContent)
|
||||
},
|
||||
|
||||
// 关闭弹窗
|
||||
handlePopCancel() {
|
||||
console.log(this.$parent.popState, "this.$parent.popState");
|
||||
this.$parent.twoCommentData = null
|
||||
this.$parent.popState = ""
|
||||
|
||||
},
|
||||
|
||||
// 清空
|
||||
|
@ -258,10 +258,10 @@ export default {
|
||||
name: 'detailIndex',
|
||||
data() {
|
||||
return {
|
||||
twoCommentData: {
|
||||
avatar: "https://oss.gter.net/avatar/97KwEWANd_4DHWiY6VbnSUFSCKroYWFjYQ~~/middle",
|
||||
content: "评论回复",
|
||||
},
|
||||
twoCommentData: null,
|
||||
// avatar: "https://oss.gter.net/avatar/97KwEWANd_4DHWiY6VbnSUFSCKroYWFjYQ~~/middle",
|
||||
// content: "评论回复",
|
||||
// },
|
||||
popState: "",
|
||||
coinConfig: {
|
||||
strategy: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user