Commit 50eb4a93 authored by yun's avatar yun

回复试验

parent 8f375ab6
......@@ -169,15 +169,11 @@ export default {
this.saveReplyBusinessId = businessId
this.saveDiscussIndex = discussIndex
this.saveReplyIndex = replyIndex
console.log('ffffffffffffff')
document.getElementById('discussInput').focus()
this.$emit('ReplyParentInputShow', 2, replyName)
},
// 回复评论
ReplyShow(index, replyName) {
this.saveDiscussIndex = index
console.log('ffffffffffffff')
document.getElementById('discussInput').focus()
this.$emit('ReplyParentInputShow', 1, replyName)
},
// 发表一层楼的评论 有头像的最外层
......@@ -501,19 +497,19 @@ export default {
background:rgba(237,240,245,1);
border-radius:10px 10px 0px 0px;
}
.Coursediscuss{
.Coursediscuss{
width: 100%;
height: 100%;
padding: 0 0 30px;
overflow-y: auto;
overflow-x: hidden;
margin-top: 20px;
}
.discussHeader{
}
.discussHeader{
border-bottom: 1px solid rgba(231,231,231,1);
padding: 0 0 5px 38px;
margin-bottom: 20px;
}
}
.discussContent{
padding: 0 16px 15px 20px;
}
......
......@@ -304,6 +304,8 @@
<van-field
:disabled="course.releaseState === '4'"
rows="1.5"
@focus="matterIos()"
@blur="textareaHeightSmaller()"
v-model="commentContent"
id="discussInput"
class="comment-input"
......@@ -694,8 +696,15 @@ export default {
},
// 回复点击
textareaHeightBiggerRe(type, replyName) {
document.getElementById('discussInput').focus()
/* const input = document.getElementById('discussInput'),
focusBtn = document.getElementById('btnFocus2') */
this.discussType = type
this.discussPlaceHloder = '7777@' + replyName
this.discussPlaceHloder = '回复@' + replyName
/* focusBtn.addEventListener('click', function() {
input.focus()
})
focusBtn.click() */
},
textareaHeightSmaller() {
if (this.commentContent.trim() === '') {
......
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