|
@@ -205,8 +205,15 @@
|
|
|
|
|
|
<div class="indexsub-bread-crumbs-box" style="margin: 70px 19px 0px;width: calc(100% - 38px)">
|
|
<div class="indexsub-bread-crumbs-box" style="margin: 70px 19px 0px;width: calc(100% - 38px)">
|
|
<a href="{:url('index/index')}" class="active">首页</a>
|
|
<a href="{:url('index/index')}" class="active">首页</a>
|
|
- <a href="javascript:;">首页</a>
|
|
|
|
- <a href="javascript:;">首页</a>
|
|
|
|
|
|
+ {if $menuTitle}
|
|
|
|
+ <a href="javascript:;" id="onebreadcrumbs">{$menuTitle}</a>
|
|
|
|
+ {/if}
|
|
|
|
+ {if $menuTitle1}
|
|
|
|
+ <a href="javascript:;" id="twobreadcrumbs">{$menuTitle1}</a>
|
|
|
|
+ {/if}
|
|
|
|
+ {if $menuTitle2}
|
|
|
|
+ <a href="javascript:;" id="threebreadcrumbs">{$menuTitle2}</a>
|
|
|
|
+ {/if}
|
|
</div>
|
|
</div>
|
|
<div class="qsidenav" style="height: calc(100% - 58px)!important;">
|
|
<div class="qsidenav" style="height: calc(100% - 58px)!important;">
|
|
<div class="qsidenav-list qsidenablistthreemenulist" >
|
|
<div class="qsidenav-list qsidenablistthreemenulist" >
|
|
@@ -756,88 +763,26 @@
|
|
|
|
|
|
function changeMenu(_self) {
|
|
function changeMenu(_self) {
|
|
var menuId = $(_self).attr('data-id');
|
|
var menuId = $(_self).attr('data-id');
|
|
- // $('.menu-name-box').removeClass('cur-menu-style');
|
|
|
|
- // $(_self).addClass('cur-menu-style');
|
|
|
|
window.location.href="{:url('indexsub','','')}/curmenu/"+menuId;
|
|
window.location.href="{:url('indexsub','','')}/curmenu/"+menuId;
|
|
- // if(menuId == 500){
|
|
|
|
- // location.reload();
|
|
|
|
- // $('.gyindexsub-menu-list-box').css('display','none');
|
|
|
|
- // $('.gongzuotaimenu').css('display','block');
|
|
|
|
- // }else{
|
|
|
|
- //
|
|
|
|
- // $('.gyindexsub-menu-list-box').css('display','block');
|
|
|
|
- // $('.gongzuotaimenu').css('display','none');
|
|
|
|
- // var newMenus = [];
|
|
|
|
- // var menuurl = '';
|
|
|
|
- // menus.forEach((item) => {
|
|
|
|
- // if(Number(menuId) == Number(item.id)){
|
|
|
|
- // newMenus = item.child;
|
|
|
|
- // var childList = item.child;
|
|
|
|
- // if(childList.length >0){
|
|
|
|
- // for (let i in childList){
|
|
|
|
- // if(childList[0].url){
|
|
|
|
- // menuurl = childList[0].url
|
|
|
|
- // }else{
|
|
|
|
- // var subChildList = childList[0].child;
|
|
|
|
- // if(childList[0].child){
|
|
|
|
- // for(let o in subChildList){
|
|
|
|
- // if(subChildList[0].url){
|
|
|
|
- // menuurl = subChildList[0].url;
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- //
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- //
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- //
|
|
|
|
- // var str = '';
|
|
|
|
- // for (let i in newMenus){
|
|
|
|
- // var childList = newMenus[i].child;
|
|
|
|
- // if(childList.length >0){
|
|
|
|
- // str += '<div class="qsidenav-list">';
|
|
|
|
- // str += '<div class="qsidenav-twomenu-name">'+newMenus[i].title+'</div>';
|
|
|
|
- // str += '<div class="sub">';
|
|
|
|
- // if(childList.length >0){
|
|
|
|
- // for (let o in childList){
|
|
|
|
- // str += '<a href="javascript:;">';
|
|
|
|
- // str += '<div class="sub-list endmenuactive" data-url="'+childList[o].url+'" data-id="'+newMenus[i].id+'" onclick="changeEndSubMenu(this)">'+childList[o].title+'</div>';
|
|
|
|
- // str += '</a>';
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // str += '</div>';
|
|
|
|
- // str += '</div>';
|
|
|
|
- // }else{
|
|
|
|
- // str += '<div class="qsidenav-list">';
|
|
|
|
- // // str += '<div class="qsidenav-twomenu-name">'+newMenus[i].title+'</div>';
|
|
|
|
- // str += '<div class="sub">';
|
|
|
|
- // str += '<a href="javascript:;">';
|
|
|
|
- // str += '<div class="sub-list endmenuactive" data-url="'+newMenus[i].url+'" data-id="'+newMenus[i].id+'" onclick="changeEndSubMenu(this)">'+newMenus[i].title+'</div>';
|
|
|
|
- // str += '</a>';
|
|
|
|
- // str += '</div>';
|
|
|
|
- // str += '</div>';
|
|
|
|
- // }
|
|
|
|
- //
|
|
|
|
- // }
|
|
|
|
- // $('.qsidenablistthreemenulist').html(str);
|
|
|
|
- //
|
|
|
|
- //
|
|
|
|
- // let menustr = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl+'" frameborder="0" data-id="'+menuurl+'" seamless></iframe>';
|
|
|
|
- // $('#gy-main-iframe-menu').html(menustr);
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- function changeEndSubMenu(_self){
|
|
|
|
|
|
+ function changeEndSubMenu(_self,type){
|
|
var menuId = $(_self).attr('data-id');
|
|
var menuId = $(_self).attr('data-id');
|
|
var menuurl = $(_self).attr('data-url');
|
|
var menuurl = $(_self).attr('data-url');
|
|
- $('.endmenuactive').removeClass('cur');
|
|
|
|
|
|
+ $('.sub-list').removeClass('cur');
|
|
$(_self).addClass('cur');
|
|
$(_self).addClass('cur');
|
|
|
|
|
|
|
|
+ var menutitle = $(_self).attr('data-title');
|
|
|
|
+ var menuftitle = $(_self).attr('data-ftitle');
|
|
|
|
+ if(type == 1){
|
|
|
|
+ $('#twobreadcrumbs').html(menuftitle)
|
|
|
|
+ $('#threebreadcrumbs').html(menutitle)
|
|
|
|
+ }else{
|
|
|
|
+ $('#twobreadcrumbs').html(menutitle)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
let str = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl+'" frameborder="0" data-id="'+menuurl+'" seamless></iframe>';
|
|
let str = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl+'" frameborder="0" data-id="'+menuurl+'" seamless></iframe>';
|
|
$('#gy-main-iframe-menu').html(str);
|
|
$('#gy-main-iframe-menu').html(str);
|
|
return false;
|
|
return false;
|
|
@@ -858,6 +803,7 @@
|
|
|
|
|
|
var menusublist = [];
|
|
var menusublist = [];
|
|
var menuurl2 = '';
|
|
var menuurl2 = '';
|
|
|
|
+ var firstmenuid = '';
|
|
for (let i in menus){
|
|
for (let i in menus){
|
|
if(curmenu == menus[i].id){
|
|
if(curmenu == menus[i].id){
|
|
menusublist = menus[i].child;
|
|
menusublist = menus[i].child;
|
|
@@ -865,10 +811,12 @@
|
|
if(submenulistaa.length >0){
|
|
if(submenulistaa.length >0){
|
|
for (let a in submenulistaa){
|
|
for (let a in submenulistaa){
|
|
menuurl2 = submenulistaa[0].url;
|
|
menuurl2 = submenulistaa[0].url;
|
|
|
|
+ firstmenuid = submenulistaa[0].id;
|
|
let aaaa = submenulistaa[0].child;
|
|
let aaaa = submenulistaa[0].child;
|
|
if(aaaa.length > 0){
|
|
if(aaaa.length > 0){
|
|
for (let z in aaaa){
|
|
for (let z in aaaa){
|
|
menuurl2 = aaaa[0].url;
|
|
menuurl2 = aaaa[0].url;
|
|
|
|
+ firstmenuid = aaaa[0].id;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -885,10 +833,11 @@
|
|
str += '<div class="qsidenav-list">';
|
|
str += '<div class="qsidenav-list">';
|
|
str += '<div class="qsidenav-twomenu-name">'+menusublist[i].title+'</div>';
|
|
str += '<div class="qsidenav-twomenu-name">'+menusublist[i].title+'</div>';
|
|
str += '<div class="sub">';
|
|
str += '<div class="sub">';
|
|
|
|
+ let ftitle = menusublist[i].title;
|
|
if(childList.length >0){
|
|
if(childList.length >0){
|
|
for (let o in childList){
|
|
for (let o in childList){
|
|
str += '<a href="javascript:;">';
|
|
str += '<a href="javascript:;">';
|
|
- str += '<div class="sub-list endmenuactive" data-url="'+childList[o].url+'" data-id="'+menusublist[i].id+'" onclick="changeEndSubMenu(this)">'+childList[o].title+'</div>';
|
|
|
|
|
|
+ str += '<div class="sub-list endmenuactive'+childList[o].id+'" data-url="'+childList[o].url+'" data-id="'+menusublist[i].id+'" data-title="'+childList[o].title+'" data-ftitle="'+ftitle+'" onclick="changeEndSubMenu(this,1)">'+childList[o].title+'</div>';
|
|
str += '</a>';
|
|
str += '</a>';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -898,7 +847,7 @@
|
|
str += '<div class="qsidenav-list">';
|
|
str += '<div class="qsidenav-list">';
|
|
str += '<div class="sub">';
|
|
str += '<div class="sub">';
|
|
str += '<a href="javascript:;">';
|
|
str += '<a href="javascript:;">';
|
|
- str += '<div class="sub-list endmenuactive" data-url="'+menusublist[i].url+'" data-id="'+menusublist[i].id+'" onclick="changeEndSubMenu(this)">'+menusublist[i].title+'</div>';
|
|
|
|
|
|
+ str += '<div class="sub-list endmenuactive'+menusublist[i].id+'" data-url="'+menusublist[i].url+'" data-id="'+menusublist[i].id+'" data-ftitle="" data-title="'+menusublist[i].title+'" onclick="changeEndSubMenu(this,2)">'+menusublist[i].title+'</div>';
|
|
str += '</a>';
|
|
str += '</a>';
|
|
str += '</div>';
|
|
str += '</div>';
|
|
str += '</div>';
|
|
str += '</div>';
|
|
@@ -910,6 +859,10 @@
|
|
|
|
|
|
let menustr = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl2+'" frameborder="0" data-id="'+menuurl2+'" seamless></iframe>';
|
|
let menustr = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl2+'" frameborder="0" data-id="'+menuurl2+'" seamless></iframe>';
|
|
$('#gy-main-iframe-menu').html(menustr);
|
|
$('#gy-main-iframe-menu').html(menustr);
|
|
|
|
+
|
|
|
|
+ if(firstmenuid){
|
|
|
|
+ $('.endmenuactive'+firstmenuid).addClass('cur');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
}else{
|
|
}else{
|
|
@@ -918,6 +871,7 @@
|
|
|
|
|
|
var menusublist = [];
|
|
var menusublist = [];
|
|
var menuurl2 = '';
|
|
var menuurl2 = '';
|
|
|
|
+ var firstmenuid = '';
|
|
for (let i in submenus){
|
|
for (let i in submenus){
|
|
if(menuId == submenus[i].id){
|
|
if(menuId == submenus[i].id){
|
|
menusublist.push(submenus[i]);
|
|
menusublist.push(submenus[i]);
|
|
@@ -926,10 +880,12 @@
|
|
if(submenulistaa.length >0){
|
|
if(submenulistaa.length >0){
|
|
for (let a in submenulistaa){
|
|
for (let a in submenulistaa){
|
|
menuurl2 = submenulistaa[0].url;
|
|
menuurl2 = submenulistaa[0].url;
|
|
|
|
+ firstmenuid = submenulistaa[0].id;
|
|
let aaaa = submenulistaa[0].child;
|
|
let aaaa = submenulistaa[0].child;
|
|
if(aaaa.length > 0){
|
|
if(aaaa.length > 0){
|
|
for (let z in aaaa){
|
|
for (let z in aaaa){
|
|
menuurl2 = aaaa[0].url;
|
|
menuurl2 = aaaa[0].url;
|
|
|
|
+ firstmenuid = aaaa[0].id;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -938,7 +894,6 @@
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- console.log(menusublist,'xxxx');
|
|
|
|
var str = '';
|
|
var str = '';
|
|
for (let i in menusublist){
|
|
for (let i in menusublist){
|
|
var childList = menusublist[i].child;
|
|
var childList = menusublist[i].child;
|
|
@@ -946,10 +901,11 @@
|
|
str += '<div class="qsidenav-list">';
|
|
str += '<div class="qsidenav-list">';
|
|
str += '<div class="qsidenav-twomenu-name">'+menusublist[i].title+'</div>';
|
|
str += '<div class="qsidenav-twomenu-name">'+menusublist[i].title+'</div>';
|
|
str += '<div class="sub">';
|
|
str += '<div class="sub">';
|
|
|
|
+ let ftitle = menusublist[i].title;
|
|
if(childList.length >0){
|
|
if(childList.length >0){
|
|
for (let o in childList){
|
|
for (let o in childList){
|
|
str += '<a href="javascript:;">';
|
|
str += '<a href="javascript:;">';
|
|
- str += '<div class="sub-list endmenuactive" data-url="'+childList[o].url+'" data-id="'+menusublist[i].id+'" onclick="changeEndSubMenu(this)">'+childList[o].title+'</div>';
|
|
|
|
|
|
+ str += '<div class="sub-list endmenuactive'+childList[o].id+'" data-url="'+childList[o].url+'" data-id="'+menusublist[i].id+'" data-title="'+childList[o].title+'" data-ftitle="'+ftitle+'" onclick="changeEndSubMenu(this,1)">'+childList[o].title+'</div>';
|
|
str += '</a>';
|
|
str += '</a>';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -959,7 +915,7 @@
|
|
str += '<div class="qsidenav-list">';
|
|
str += '<div class="qsidenav-list">';
|
|
str += '<div class="sub">';
|
|
str += '<div class="sub">';
|
|
str += '<a href="javascript:;">';
|
|
str += '<a href="javascript:;">';
|
|
- str += '<div class="sub-list endmenuactive" data-url="'+menusublist[i].url+'" data-id="'+menusublist[i].id+'" onclick="changeEndSubMenu(this)">'+menusublist[i].title+'</div>';
|
|
|
|
|
|
+ str += '<div class="sub-list endmenuactive'+menusublist[i].id+'" data-url="'+menusublist[i].url+'" data-id="'+menusublist[i].id+'" data-ftitle="" data-title="'+menusublist[i].title+'" onclick="changeEndSubMenu(this,2)">'+menusublist[i].title+'</div>';
|
|
str += '</a>';
|
|
str += '</a>';
|
|
str += '</div>';
|
|
str += '</div>';
|
|
str += '</div>';
|
|
str += '</div>';
|
|
@@ -971,6 +927,10 @@
|
|
|
|
|
|
let menustr = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl2+'" frameborder="0" data-id="'+menuurl2+'" seamless></iframe>';
|
|
let menustr = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+menuurl2+'" frameborder="0" data-id="'+menuurl2+'" seamless></iframe>';
|
|
$('#gy-main-iframe-menu').html(menustr);
|
|
$('#gy-main-iframe-menu').html(menustr);
|
|
|
|
+
|
|
|
|
+ if(firstmenuid){
|
|
|
|
+ $('.endmenuactive'+firstmenuid).addClass('cur');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|