src/main/resources/public/js/main.js

(完整代码) 1KB

layui.use(['element', 'layer', 'layuimini','jquery','jquery_cookie'], function () {
    var $ = layui.jquery,
        layer = layui.layer,
        $ = layui.jquery_cookie($);

    // 菜单初始化
    $('#layuiminiHomeTabIframe').html('<iframe width="100%" height="100%" frameborder="0"  src="welcome"></iframe>')
    layuimini.initTab();


    //绑定点击事件,退出登录
    $(".login-out").click(function () {

        layer.confirm('确定退出吗?',{icon:3,title:'系统提示'},function (index) {
            //清空Cookie
            $.removeCookie("userIdStr",{domain:"localhost",path:"/crm"});
            $.removeCookie("userName",{domain:"localhost",path:"/crm"});
            $.removeCookie("trueName",{domain:"localhost",path:"/crm"});

           /* $.removeCookie("userIdStr",{domain:"www.nathan-ye.ltd",path:"/crm"});
            $.removeCookie("userName",{domain:"www.nathan-ye.ltd",path:"/crm"});
            $.removeCookie("trueName",{domain:"www.nathan-ye.ltd",path:"/crm"});*/
            window.parent.location.href=ctx+"/index";

            //关闭询问框
            layer.close(index);
        });

    })

});

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。