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
50eb4a93
Commit
50eb4a93
authored
Apr 27, 2020
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回复试验
parent
8f375ab6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
18 deletions
+23
-18
Coursediscuss.vue
src/components/CourseDiscuss/Coursediscuss.vue
+13
-17
index.vue
src/views/CourseDetail/index.vue
+10
-1
No files found.
src/components/CourseDiscuss/Coursediscuss.vue
View file @
50eb4a93
...
...
@@ -169,15 +169,11 @@ export default {
this
.
saveReplyBusinessId
=
businessId
this
.
saveDiscussIndex
=
discussIndex
this
.
saveReplyIndex
=
replyIndex
console
.
log
(
'ffffffffffffff'
)
document
.
getElementById
(
'discussInput'
).
focus
()
this
.
$emit
(
'ReplyParentInputShow'
,
2
,
replyName
)
},
// 回复评论
ReplyShow
(
index
,
replyName
)
{
this
.
saveDiscussIndex
=
index
console
.
log
(
'ffffffffffffff'
)
document
.
getElementById
(
'discussInput'
).
focus
()
this
.
$emit
(
'ReplyParentInputShow'
,
1
,
replyName
)
},
// 发表一层楼的评论 有头像的最外层
...
...
@@ -501,19 +497,19 @@ export default {
background:rgba(237,240,245,1);
border-radius:10px 10px 0px 0px;
}
.Coursediscuss{
.Coursediscuss{
width: 100%;
height: 100%;
padding: 0 0 30px;
overflow-y: auto;
overflow-x: hidden;
margin-top: 20px;
}
.discussHeader{
}
.discussHeader{
border-bottom: 1px solid rgba(231,231,231,1);
padding: 0 0 5px 38px;
margin-bottom: 20px;
}
}
.discussContent{
padding: 0 16px 15px 20px;
}
...
...
src/views/CourseDetail/index.vue
View file @
50eb4a93
...
...
@@ -304,6 +304,8 @@
<van-field
:disabled=
"course.releaseState === '4'"
rows=
"1.5"
@
focus=
"matterIos()"
@
blur=
"textareaHeightSmaller()"
v-model=
"commentContent"
id=
"discussInput"
class=
"comment-input"
...
...
@@ -694,8 +696,15 @@ export default {
},
// 回复点击
textareaHeightBiggerRe(type, replyName) {
document.getElementById('discussInput').focus()
/* const input = document.getElementById('discussInput'),
focusBtn = document.getElementById('btnFocus2') */
this.discussType = type
this.discussPlaceHloder = '7777@' + replyName
this.discussPlaceHloder = '回复@' + replyName
/* focusBtn.addEventListener('click', function() {
input.focus()
})
focusBtn.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