From e25daa9371a7b1e5798fa037d0fde825ee8d535c Mon Sep 17 00:00:00 2001 From: bobi Date: Sat, 18 May 2019 21:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E9=99=90=E6=9E=81=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/menu.json | 106 ++++++++++++++++++++++++++++++++++++++++ index.html | 33 +++++++++++++ js/okadmin.js | 64 ++++++++++++++++++------ lib/okPlugins/okMenu.js | 10 ++++ 4 files changed, 197 insertions(+), 16 deletions(-) create mode 100644 lib/okPlugins/okMenu.js diff --git a/data/menu.json b/data/menu.json index 7949099..ea6f379 100644 --- a/data/menu.json +++ b/data/menu.json @@ -280,6 +280,112 @@ "spread": false } ] + }, + { + "title": "多级菜单", + "path": "", + "font": "layui-icon", + "icon": "", + "spread": false, + "children": [ + { + "title": "购物网站", + "path": "", + "font": "layui-icon", + "icon": "", + "spread": false, + "children": [ + { + "title": "苏宁", + "path": "https://www.suning.com", + "font": "layui-icon", + "icon": "", + "spread": false + }, + { + "title": "京东", + "path": "https://www.jd.com", + "font": "layui-icon", + "icon": "", + "spread": false + }, + { + "title": "阿里", + "path": "", + "font": "layui-icon", + "icon": "", + "spread": false, + "children": [ + { + "title": "淘宝", + "path": "https://www.taobao.com", + "font": "layui-icon", + "icon": "", + "spread": false + }, + { + "title": "天猫", + "path": "https://www.tmall.com", + "font": "layui-icon", + "icon": "", + "spread": false + }, + { + "title": "聚划算", + "path": "https://ju.taobao.com", + "font": "layui-icon", + "icon": "", + "spread": false + } + ] + } + ] + }, + { + "title": "二级菜单", + "path": "pages/use/use-okTab.html", + "font": "layui-icon", + "icon": "", + "spread": false + }, + { + "title": "二级菜单", + "path": "pages/use/use-okTab.html", + "font": "layui-icon", + "icon": "", + "spread": false, + "children": [ + { + "title": "三级菜单", + "path": "pages/use/use-okTab.html", + "font": "layui-icon", + "icon": "", + "spread": false + }, + { + "title": "三级菜单", + "path": "pages/use/use-okTab.html", + "font": "layui-icon", + "icon": "", + "spread": false + } + ] + }, + { + "title": "二级菜单", + "path": "pages/use/use-okTab.html", + "font": "layui-icon", + "icon": "", + "spread": false + }, + { + "title": "二级菜单", + "path": "pages/use/use-okTab.html", + "font": "layui-icon", + "icon": "", + "spread": false + } + ] } ] } diff --git a/index.html b/index.html index 2e50b5c..4c7936b 100644 --- a/index.html +++ b/index.html @@ -45,6 +45,39 @@
    + +