1
luxiaotao1123
2021-10-29 e099ea9f38a6aeb9eb4046c5eb383820c36ec762
src/main/webapp/views/pda/index.html
@@ -5,6 +5,7 @@
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
    <title>PDA首页</title>
    <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="../../static/js/common.js"></script>
    <style>
        * {
            margin: 0;
@@ -148,6 +149,38 @@
</body>
<script>
    $(function(){
        $.ajax({
            url: baseUrl+"/user/roleId/auth",
            headers: {'token': localStorage.getItem('token')},
            method: 'GET',
            success: function (res) {
                if (res.code === 200){
                    console.log(res)
                    if (true) {
                        $("#").show();
                        $("#").show();
                        $("#").show();
                        $("#").show();
                        $("#").hide();
                        $("#").hide();
                    } else {
                        $("#").show();
                        $("#").show();
                        $("#").show();
                        $("#").show();
                        $("#").show();
                        $("#").show();
                    }
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/";
                }else {
                    layer.msg(res.msg, {icon: 2});
                }
            }
        })
    });
    // 导航栏
    function nav(id) {
//        $('.nav-select').attr("class", "nav-unselect");
@@ -169,4 +202,4 @@
        $('#content').css('display', 'none');
    }
</script>
</html>
</html>