|
@@ -60,10 +60,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- // let listener = document.getElementById('floorBox')
|
|
|
- // listener.addEventListener('scroll', () => {
|
|
|
- // this.marginTop = document.getElementById('floorBox').scrollTop;
|
|
|
- // })
|
|
|
+ let listener = document.getElementById('floorBox')
|
|
|
+ listener.addEventListener('scroll', () => {
|
|
|
+ this.marginTop = document.getElementById('floorBox').scrollTop;
|
|
|
+ })
|
|
|
window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", () => {
|
|
|
setTimeout(() => {
|
|
|
if (window.orientation === 0 || window.orientation === 180) {
|