From c203547ff1e3330faaf8bfbcc581805b55da75b8 Mon Sep 17 00:00:00 2001 From: sassassin <530521314@qq.com> Date: Thu, 9 Jul 2020 21:29:16 +0800 Subject: [PATCH 1/3] =?UTF-8?q?pearTab=E5=88=A0=E9=99=A4=E5=AE=8C=E6=AF=95?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=A7=A6=E5=8F=91pearAdmin=E4=B8=AD=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E6=96=B9=E4=BE=BF=E5=B7=A6=E4=BE=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=BD=92=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/layui/lay/extends/pearTab.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/component/layui/lay/extends/pearTab.js b/component/layui/lay/extends/pearTab.js index 8ef0136..92286c8 100644 --- a/component/layui/lay/extends/pearTab.js +++ b/component/layui/lay/extends/pearTab.js @@ -409,6 +409,8 @@ layui.define(['jquery', 'element'], function(exports) { tabContent.remove(); + // 方便左侧菜单滚动到相应菜单项 + $("#" + elem + " .layui-tab-title .layui-this").click(); } -- Gitee From a5c29dd63620e688605dba7f1ac16c7b79df46e1 Mon Sep 17 00:00:00 2001 From: sassassin <530521314@qq.com> Date: Mon, 20 Jul 2020 23:13:37 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/layui/lay/extends/pearAdmin.js | 8 ++++---- index.html | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/component/layui/lay/extends/pearAdmin.js b/component/layui/lay/extends/pearAdmin.js index 9040853..43b0622 100644 --- a/component/layui/lay/extends/pearAdmin.js +++ b/component/layui/lay/extends/pearAdmin.js @@ -276,11 +276,11 @@ layui.define(['table', 'jquery', 'element', 'form', 'pearAuth', 'pearTab', 'pear } }; - $("body").on("click", ".pearson", function() { + $("body").on("click", ".navMenu", function() { pearTab.addTabOnlyByElem("content", { - id: 111, - title: "个人信息", - url: "view/system/person.html", + id: $(this).attr("data-id"), + title: $(this).text(), + url: $(this).attr("data-url"), close: true }) }) diff --git a/index.html b/index.html index 380417d..80a19eb 100644 --- a/index.html +++ b/index.html @@ -34,9 +34,9 @@
  • 就眠仪式
    -
    个人信息
    -
    安全配置
    -
    打开百度
    +
    个人信息
    +
    安全配置
    +
    打开百度
    注销登陆
  • -- Gitee From d505bb7befb6b2cf1eaa0af8f3ce63a28d0681e8 Mon Sep 17 00:00:00 2001 From: sassassin <530521314@qq.com> Date: Mon, 20 Jul 2020 23:18:07 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/layui/lay/extends/pearTab.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/component/layui/lay/extends/pearTab.js b/component/layui/lay/extends/pearTab.js index 58c8d47..202bf94 100644 --- a/component/layui/lay/extends/pearTab.js +++ b/component/layui/lay/extends/pearTab.js @@ -407,8 +407,6 @@ layui.define(['jquery', 'element'], function(exports) { tabContent.remove(); - // 方便左侧菜单滚动到相应菜单项 - $("#" + elem + " .layui-tab-title .layui-this").click(); } -- Gitee