Commit e475b778 authored by yun's avatar yun

回复试验

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