提交 39fb47a4 编写于 作者: Skyeye云's avatar Skyeye云

菜单修改,api界面修改

上级 470fd1eb
...@@ -42,12 +42,12 @@ layui.config({ ...@@ -42,12 +42,12 @@ layui.config({
+ '<font id="exitBtn">退出</font>'; + '<font id="exitBtn">退出</font>';
$("#operatorBtn").html(str); $("#operatorBtn").html(str);
}else{ }else{
location.href = "../../tpl/index/login.html?url=" + escape("../../tpl/apipage/apipage.html"); location.href = "../../tpl/index/login.html?url=" + escape("../../tpl/apiPage/apiPage.html");
} }
loadListMation(); loadListMation();
}}); }});
}else{ }else{
location.href = "../../tpl/index/login.html?url=" + escape("../../tpl/apipage/apipage.html"); location.href = "../../tpl/index/login.html?url=" + escape("../../tpl/apiPage/apiPage.html");
} }
} }
...@@ -217,7 +217,7 @@ layui.config({ ...@@ -217,7 +217,7 @@ layui.config({
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "login003", params:{}, type:'json', callback:function(json){ AjaxPostUtil.request({url:reqBasePath + "login003", params:{}, type:'json', callback:function(json){
$.cookie('userToken', "", {path: '/' }); $.cookie('userToken', "", {path: '/' });
location.href = "../../tpl/index/login.html?url=" + escape("../../tpl/apipage/apipage.html"); location.href = "../../tpl/index/login.html?url=" + escape("../../tpl/apiPage/apiPage.html");
}}); }});
}); });
}); });
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
<script src="../../assets/lib/layui/layui.js"></script> <script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script> <script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript"> <script type="text/javascript">
layui.config({base : '../../js/apipage/'}).use('apipage'); layui.config({base : '../../js/apiPage/'}).use('apiPage');
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
background-color: white; background-color: white;
} }
.apiListForm .api-left{ .apiListForm .api-left{
width: 220px; width: 250px;
float: left; float: left;
height: 100%; height: 100%;
border-right: 1px solid grey; border-right: 1px solid grey;
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
overflow: hidden; overflow: hidden;
} }
.apiListForm .api-right{ .apiListForm .api-right{
width: calc(100% - 241px); width: calc(100% - 271px);
float: left; float: left;
height: 100%; height: 100%;
padding: 0px 10px; padding: 0px 10px;
......
...@@ -83,14 +83,14 @@ layui.config({ ...@@ -83,14 +83,14 @@ layui.config({
initDeskTopMenuBox(); initDeskTopMenuBox();
// 加载菜单 // 加载菜单
AjaxPostUtil.request({url:reqBasePath + "login004", params:{}, type:'json', method: "GET", callback:function(json){ AjaxPostUtil.request({url:reqBasePath + "login005", params:{}, type:'json', method: "GET", callback:function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
var menuStr; var menuStr;
$.each(json.rows, function(i, row){ $.each(json.rows, function(i, row){
menuStr = ""; menuStr = "";
if(row.menuIconType === '1'){//icon if(row.menuIconType === 1){//icon
row.icon = '<i class="fa ' + row.icon + ' fa-fw"></i>'; row.icon = '<i class="fa ' + row.icon + ' fa-fw"></i>';
}else if(row.menuIconType === '2'){//图片 }else if(row.menuIconType === 2){//图片
row.icon = '<img src="' + fileBasePath + row.menuIconPic + '" />'; row.icon = '<img src="' + fileBasePath + row.menuIconPic + '" />';
} }
if(languageType == 'cn'){ if(languageType == 'cn'){
...@@ -109,9 +109,9 @@ layui.config({ ...@@ -109,9 +109,9 @@ layui.config({
//二级菜单 //二级菜单
if(!isNull(row.childs)){ if(!isNull(row.childs)){
$.each(row.childs, function(j, child){ $.each(row.childs, function(j, child){
if(child.menuIconType === '1'){//icon if(child.menuIconType === 1){//icon
child.icon = '<i class="fa ' + child.icon + ' fa-fw"></i>'; child.icon = '<i class="fa ' + child.icon + ' fa-fw"></i>';
}else if(child.menuIconType === '2'){//图片 }else if(child.menuIconType === 2){//图片
child.icon = '<img src="' + fileBasePath + child.menuIconPic + '" />'; child.icon = '<img src="' + fileBasePath + child.menuIconPic + '" />';
} }
if(languageType == 'cn'){ if(languageType == 'cn'){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册