Commit e475b778 authored by yun's avatar yun

回复试验

parent 7cf88bca
...@@ -314,6 +314,7 @@ ...@@ -314,6 +314,7 @@
:maxlength="500" :maxlength="500"
autosize autosize
focus="true" focus="true"
ref="discussInputTest"
> >
<van-image <van-image
:disabled="loadingToSendDiscuss || commentContent.trim() === ''" :disabled="loadingToSendDiscuss || commentContent.trim() === ''"
...@@ -697,11 +698,11 @@ export default { ...@@ -697,11 +698,11 @@ export default {
}, },
// 回复点击 // 回复点击
textareaHeightBiggerRe(type, replyName) { textareaHeightBiggerRe(type, replyName) {
const input = document.getElementById('discussInput') // const input = document.getElementById('discussInput')
this.discussType = type this.discussType = type
this.discussPlaceHloder = '回复@' + replyName this.discussPlaceHloder = '回复@' + replyName
console.log('还在走', document.getElementById('discussInput')) console.log('还在走2', this.$refs.discussInputTest)
input.focus() this.$refs.discussInputTest.focus()
}, },
textareaHeightSmaller() { textareaHeightSmaller() {
if (this.commentContent.trim() === '') { if (this.commentContent.trim() === '') {
......
...@@ -471,8 +471,7 @@ export default { ...@@ -471,8 +471,7 @@ export default {
search() { search() {
const that = this const that = this
if (that.$route.params.searchFocus !== 'focus') { if (that.$route.params.searchFocus !== 'focus') {
console.log('删掉了') document.getElementById('searchInputP').focus()
// document.getElementById('searchInputP').focus()
} }
const navBar = document.getElementById('navBar') const navBar = document.getElementById('navBar')
navBar.style.display = 'none' navBar.style.display = 'none'
......
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