Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea_resources_pc
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
张伯涛
tea_resources_pc
Commits
1b7bd109
Commit
1b7bd109
authored
Jul 25, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释掉跳转滚动
parent
5caca94d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
App.vue
src/App.vue
+11
-11
index.vue
src/views/courseResources/courseDetails/index.vue
+3
-3
No files found.
src/App.vue
View file @
1b7bd109
...
@@ -47,17 +47,17 @@ export default {
...
@@ -47,17 +47,17 @@ export default {
// 深度观察监听
// 深度观察监听
deep
:
true
deep
:
true
},
},
scroll
(
newValue
,
oldValue
)
{
//
scroll(newValue, oldValue) {
// 监听myVar变量的变化
//
// 监听myVar变量的变化
// console.log('scrollscrollscrollscrollscrollscroll scroll:', newValue)
//
// console.log('scrollscrollscrollscrollscrollscroll scroll:', newValue)
if
(
newValue
===
'1'
&&
this
.
$route
.
path
===
'/courseResources/courseMall/index'
)
{
//
if (newValue === '1' && this.$route.path === '/courseResources/courseMall/index') {
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
$store
.
dispatch
(
'app/scroll'
,
null
)
//
this.$store.dispatch('app/scroll', null)
this
.
$refs
[
'scrollContainer'
].
scrollTo
({
top
:
this
.
$route
.
query
.
params
.
height
||
0
,
behavior
:
'smooth'
})
//
this.$refs['scrollContainer'].scrollTo({ top: this.$route.query.params.height || 0, behavior: 'smooth' })
},
500
)
//
}, 500)
}
//
}
// 这里可以执行一些操作,比如根据变化的值进行一些逻辑处理
//
// 这里可以执行一些操作,比如根据变化的值进行一些逻辑处理
}
//
}
},
},
mounted
()
{
mounted
()
{
// setTimeout(() => {
// setTimeout(() => {
...
...
src/views/courseResources/courseDetails/index.vue
View file @
1b7bd109
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
<nav-list
:list=
"navList"
:current-menu=
"'/courseResources/index'"
/>
<nav-list
:list=
"navList"
:current-menu=
"'/courseResources/index'"
/>
<div
v-loading=
"loading"
class=
"courseDetails-content"
>
<div
v-loading=
"loading"
class=
"courseDetails-content"
>
<div
class=
"backBtnFather"
>
<div
class=
"backBtnFather"
>
<div
class=
backBtn
>
<!--
<div
class=
backBtn
>
--
>
<i
class=
"el-icon-d-arrow-left"
@
click=
"handleGoBack"
>
返回
</i
>
<!--
<i
class=
"el-icon-d-arrow-left"
@
click=
"handleGoBack"
>
返回
</i>
--
>
</div
>
<!--
</div>
--
>
</div>
</div>
<div
class=
"courseCard"
>
<div
class=
"courseCard"
>
<img
v-if=
"courseDetails.availableTrialTime === 0"
class=
"guoqiPathClass"
:src=
"guoqiPath"
alt=
""
>
<img
v-if=
"courseDetails.availableTrialTime === 0"
class=
"guoqiPathClass"
:src=
"guoqiPath"
alt=
""
>
...
...
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