Commit 7d78c6f8 authored by yun's avatar yun

回复试验

parent e475b778
...@@ -304,7 +304,6 @@ ...@@ -304,7 +304,6 @@
<van-field <van-field
:disabled="course.releaseState === '4'" :disabled="course.releaseState === '4'"
rows="1.5" rows="1.5"
@focus="matterIos()"
@blur="textareaHeightSmaller()" @blur="textareaHeightSmaller()"
v-model="commentContent" v-model="commentContent"
id="discussInput" id="discussInput"
...@@ -698,11 +697,10 @@ export default { ...@@ -698,11 +697,10 @@ export default {
}, },
// 回复点击 // 回复点击
textareaHeightBiggerRe(type, replyName) { textareaHeightBiggerRe(type, replyName) {
// const input = document.getElementById('discussInput') document.getElementById('discussInput').focus()
this.discussType = type this.discussType = type
this.discussPlaceHloder = '回复@' + replyName this.discussPlaceHloder = '回复@' + replyName
console.log('还在走2', this.$refs.discussInputTest) console.log('还在走3', document.getElementById('discussInput'))
this.$refs.discussInputTest.focus()
}, },
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