自动化立体仓库 - WCS系统
#
luxiaotao1123
2022-12-23 d88a5a7ba824740d4bdcafab42c7820fcc689241
#
2个文件已修改
10 ■■■■■ 已修改文件
src/main/webapp/views/index.html 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/news.html 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/index.html
@@ -76,7 +76,8 @@
                    }
                    , onrestore:{
                        after: function () {
                            top.autoScroll = true;
                            let win = layx.getFrameContext('wcs-news');
                            win.autoScroll = true
                        }
                    }
                }
src/main/webapp/views/news.html
@@ -42,7 +42,8 @@
</body>
<script src="../static/js/jquery/jquery-3.3.1.min.js"></script>
<script>
    top.autoScroll = true;
    var autoScroll = true;
    var asdsa = '1231';
    function scrollUp(){
        const scrollUp = document.getElementById('scroll-up');
@@ -56,12 +57,12 @@
    })
    $(document).on('click ','body', function () {
        top.autoScroll = false;
        autoScroll = false;
    })
    setInterval(()=>{
        $("body").append("<h1>Hello World</h1>");
        if (top.autoScroll) {
        if (autoScroll) {
            window.scrollTo(0, document.body.scrollHeight)
        }
    }, 500)