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
706bf730
Commit
706bf730
authored
Apr 27, 2020
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回复试验
parent
9af0d022
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
26 deletions
+23
-26
index.vue
src/views/CourseDetail/index.vue
+23
-26
No files found.
src/views/CourseDetail/index.vue
View file @
706bf730
...
...
@@ -305,6 +305,7 @@
<van-field
:disabled=
"course.releaseState === '4'"
rows=
"1.5"
@
focus=
"matterIos()"
@
blur=
"textareaHeightSmaller()"
v-model=
"commentContent"
id=
"discussInput"
...
...
@@ -313,9 +314,6 @@
:placeholder=
"course.releaseState === '4' ? '该课程已关闭' : discussPlaceHloder"
:maxlength=
"500"
autosize
focus=
"true"
ref=
"discussInputTest"
@
click=
"aaa"
>
<van-image
:disabled=
"loadingToSendDiscuss || commentContent.trim() === ''"
...
...
@@ -586,10 +584,6 @@ export default {
})
},
methods
:
{
aaa
(
e
)
{
document
.
getElementById
(
'discussInput'
).
focus
()
console
.
log
(
e
,
'KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK'
)
},
isFullchange
(
data
)
{
console
.
log
(
data
,
'HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH'
)
this
.
isFull
=
data
...
...
@@ -703,10 +697,13 @@ export default {
},
// 回复点击
textareaHeightBiggerRe(type, replyName) {
document.getElementById('discussInput').click(
)
const input = document.getElementById('discussInput'
)
this.discussType = type
this.discussPlaceHloder = '回复@' + replyName
console.log('还在走4', document.getElementById('discussInput'))
this.discussPlaceHloder = '回复2@' + replyName
input.addEventListener('click', function() {
input.focus()
})
input.click()
},
textareaHeightSmaller() {
if (this.commentContent.trim() === '') {
...
...
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