Commit 50eb4a93 authored by yun's avatar yun

回复试验

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