|
@@ -3470,12 +3470,13 @@ export default {
|
|
|
let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
|
|
|
let client = $(".course_left")[0].clientHeight - stepsBottom2
|
|
|
let top = $(".rightBox")[0].scrollTop - 400
|
|
|
- if (top > client) {
|
|
|
- let top = $(".rightBox")[0].offsetTop
|
|
|
- $('.stepsBottom2')[0].style.position = 'fixed'
|
|
|
- $('.stepsBottom2')[0].style.top = top + 'px'
|
|
|
- // $('.stepsBottom2')[0].style.top = client + 'px'
|
|
|
- } else if (top > 0) {
|
|
|
+ // if (top > client) {
|
|
|
+ // let top = $(".rightBox")[0].offsetTop
|
|
|
+ // $('.stepsBottom2')[0].style.position = 'fixed'
|
|
|
+ // $('.stepsBottom2')[0].style.top = top + 'px'
|
|
|
+ // // $('.stepsBottom2')[0].style.top = client + 'px'
|
|
|
+ // } else
|
|
|
+ if (top > 0) {
|
|
|
let top = $(".rightBox")[0].offsetTop
|
|
|
$('.stepsBottom2')[0].style.position = 'fixed'
|
|
|
$('.stepsBottom2')[0].style.top = top + 'px'
|