首页及后台-jsk
This commit is contained in:
parent
829a901af3
commit
c147641d4b
|
|
@ -82,7 +82,7 @@
|
|||
</ul>
|
||||
<div class="layui-tab-content" style="min-height: 150px; padding: 5px 0 0 0;background-color: #F2F2F2;">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<iframe src=""></iframe>
|
||||
<iframe id="sy" src=""></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
initMenu();
|
||||
initsy();
|
||||
function initMenu(){
|
||||
$.ajax({
|
||||
url: ctxPath + "/permissions/current",
|
||||
|
|
@ -54,7 +55,14 @@ function initMenu(){
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
function initsy() {
|
||||
var $tabs=$('#menu');
|
||||
var $tabsTitle = $tabs.find('.layui-nav-item a');
|
||||
$.each($tabsTitle,function(idx, ele){
|
||||
var id=$(ele).attr("lay-id");
|
||||
$("#sy").attr("src","pages/home/home.html?token="+localStorage.getItem("token"));
|
||||
})
|
||||
}
|
||||
function setChild(parentElement, child){
|
||||
if(child != null && child.length > 0){
|
||||
$.each(child, function(j,item2){
|
||||
|
|
|
|||
Loading…
Reference in New Issue