Commit 835714ca authored by yun's avatar yun

修改在线考试居中对齐

parent 29e36069
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</div> </div>
</div> </div>
<div <div
@click="ReplyShow(i, singleDiscuss.studentName)" @click="discussContentReplyShow(i, singleDiscuss.studentName)"
class="discuss-content" class="discuss-content"
v-html="singleDiscuss.content.replace(/ /g,'&nbsp;').replace(formatAscal,'<br/>')" v-html="singleDiscuss.content.replace(/ /g,'&nbsp;').replace(formatAscal,'<br/>')"
/> />
...@@ -177,6 +177,13 @@ export default { ...@@ -177,6 +177,13 @@ export default {
this.saveDiscussIndex = index this.saveDiscussIndex = index
this.$emit('ReplyParentInputShow', 1, replyName) this.$emit('ReplyParentInputShow', 1, replyName)
}, },
// 回复评论
discussContentReplyShow(index, replyName) {
document.getElementById('discussInput').focus()
setTimeout(() => {
this.ReplyShow(index, replyName)
}, 500)
},
// 发表一层楼的评论 有头像的最外层 // 发表一层楼的评论 有头像的最外层
sendMyDiscuss() { sendMyDiscuss() {
this.$emit('loadingShow') this.$emit('loadingShow')
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</div> </div>
<div <div
class="reply-con" class="reply-con"
@click="sendReplyEmit" @click="replyConSendReplyEmit"
v-html="(replyData.replyToId === '' ? '':replyData.studentName + ':回复@'+replyData.replyToName+':')+replyData.content.replace(/ /g,'&nbsp;').replace(formatAscal, '<br/>')" v-html="(replyData.replyToId === '' ? '':replyData.studentName + ':回复@'+replyData.replyToName+':')+replyData.content.replace(/ /g,'&nbsp;').replace(formatAscal, '<br/>')"
> >
<!-- {{}} <span style="color: #4098f0" v-if="replyData.replyToId !== '' ">@{{replyData.replyToName}}</span> {{replyData.content.replace(/ /g,'&nbsp;').replace(/\n/g,'<br>')}}--> <!-- {{}} <span style="color: #4098f0" v-if="replyData.replyToId !== '' ">@{{replyData.replyToName}}</span> {{replyData.content.replace(/ /g,'&nbsp;').replace(/\n/g,'<br>')}}-->
...@@ -102,6 +102,12 @@ export default { ...@@ -102,6 +102,12 @@ export default {
}, 300) }, 300)
} }
}, },
replyConSendReplyEmit() {
document.getElementById('discussInput').focus()
setTimeout(() => {
this.sendReplyEmit()
}, 300)
},
sendReplyEmit() { sendReplyEmit() {
this.$emit('ReplyInputShow', this.discussIndex, this.replyIndex, this.replyData.businessId, this.replyData.studentName) this.$emit('ReplyInputShow', this.discussIndex, this.replyIndex, this.replyData.businessId, this.replyData.studentName)
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment