Commit 1b7bd109 authored by 张伯涛's avatar 张伯涛

注释掉跳转滚动

parent 5caca94d
...@@ -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(() => {
......
...@@ -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="">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment