|
|
@@ -878,25 +878,13 @@ $(window).resize(function () {
|
|
|
|
|
|
|
|
|
// 邵根 -滚动条
|
|
|
-
|
|
|
- // 滚动条本身的高度占多少百分比
|
|
|
- let oldBai = (50 / window.innerHeight) * 100
|
|
|
-
|
|
|
- oldBai = Math.round(oldBai)
|
|
|
-
|
|
|
const nowImgNum = this.currentFrame + 1
|
|
|
|
|
|
console.log('-当前滚动到的图片:',nowImgNum);
|
|
|
|
|
|
let nowGunBai = (nowImgNum / imgCounts) * 100
|
|
|
|
|
|
- // 最大滚动百分比
|
|
|
- const maxBai =nowGunBai - oldBai
|
|
|
-
|
|
|
- if(nowGunBai>maxBai) nowGunBai=maxBai
|
|
|
- if(nowGunBai<=0) nowGunBai=0
|
|
|
-
|
|
|
- document.querySelector('.gunDongDom').style.top = nowGunBai + '%'
|
|
|
+ document.querySelector('.gunDongDomSon').style.top = nowGunBai + '%'
|
|
|
|
|
|
},
|
|
|
|