Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王旭
mt-education-mobile
Commits
e475b778
Commit
e475b778
authored
Apr 27, 2020
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回复试验
parent
7cf88bca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
index.vue
src/views/CourseDetail/index.vue
+4
-3
index.vue
src/views/Home/index.vue
+1
-2
No files found.
src/views/CourseDetail/index.vue
View file @
e475b778
...
@@ -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
)
inpu
t.focus()
this.$refs.discussInputTes
t.focus()
},
},
textareaHeightSmaller() {
textareaHeightSmaller() {
if (this.commentContent.trim() === '') {
if (this.commentContent.trim() === '') {
...
...
src/views/Home/index.vue
View file @
e475b778
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment