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

菜单修改,api界面修改

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