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
ce3e18eb
Commit
ce3e18eb
authored
Apr 27, 2020
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回复试验
parent
283516d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
index.vue
src/views/CourseDetail/index.vue
+7
-4
index.vue
src/views/More/index.vue
+10
-3
No files found.
src/views/CourseDetail/index.vue
View file @
ce3e18eb
...
...
@@ -300,10 +300,12 @@
</div>
<div
class=
"input"
v-if=
"currentTag == tags[2] && !isOutLine && !isFull"
>
<van-field
:disabled=
"course.releaseState === '4'"
rows=
"1.5"
@
focus=
"matterIos()"
@
blur=
"textareaHeightSmaller()"
v-model=
"commentContent"
id=
"discussInput"
...
...
@@ -695,13 +697,14 @@ export default {
},
// 回复点击
textareaHeightBiggerRe(type, replyName) {
const input = document.getElementById('discussInput')
const input = document.getElementById('discussInput'),
focusBtn = document.getElementById('btnFocus2')
this.discussType = type
this.discussPlaceHloder = '回复
2
@' + replyName
input
.addEventListener('click', function() {
this.discussPlaceHloder = '回复@' + replyName
focusBtn
.addEventListener('click', function() {
input.focus()
})
input
.click()
focusBtn
.click()
},
textareaHeightSmaller() {
if (this.commentContent.trim() === '') {
...
...
src/views/More/index.vue
View file @
ce3e18eb
...
...
@@ -175,7 +175,6 @@
</div>
</transition>
<search-box
v-show=
"hackReset"
@
onCancel=
"onCancel"
:hackReset =
'hackReset'
/>
...
...
@@ -239,6 +238,10 @@ export default {
methods
:
{
// 点击搜索 事件
search
()
{
const
that
=
this
if
(
that
.
$route
.
params
.
searchFocus
!==
'focus'
)
{
document
.
getElementById
(
'searchInputP'
).
focus
()
}
const
navBar
=
document
.
getElementById
(
'navBar'
)
navBar
.
style
.
display
=
'none'
// 重建组件
...
...
@@ -247,8 +250,12 @@ export default {
// this.$refs.scollElement.scrollIntoView()
this
.
hackReset
=
true
setTimeout
(()
=>
{
document
.
getElementById
(
'searchInputP'
).
focus
()
},
100
)
if
(
that
.
$route
.
params
.
searchContent
!==
undefined
)
{
that
.
$refs
.
searchBox
.
backToSearch
(
that
.
$route
.
params
.
searchContent
)
}
delete
that
.
$route
.
params
.
searchContent
delete
that
.
$route
.
params
.
searchFocus
},
500
)
})
},
// 搜索取消关闭事件
...
...
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