Commit 6a88d9fe authored by yun's avatar yun

回复试验

parent 709327e0
...@@ -304,8 +304,6 @@ ...@@ -304,8 +304,6 @@
<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"
...@@ -698,11 +696,12 @@ export default { ...@@ -698,11 +696,12 @@ export default {
textareaHeightBiggerRe(type, replyName) { textareaHeightBiggerRe(type, replyName) {
const focusBtn = document.getElementById('btnFocus2') const focusBtn = document.getElementById('btnFocus2')
this.discussType = type this.discussType = type
this.discussPlaceHloder = '回复2333@' + replyName this.discussPlaceHloder = '回复6666@' + replyName
focusBtn.addEventListener('click', function() { focusBtn.addEventListener('click', function() {
document.getElementById('discussInput').focus() document.getElementById('discussInput').focus()
}) })
focusBtn.click() focusBtn.click()
document.getElementById('discussInput').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