|
|
@@ -135,13 +135,11 @@ Layout = "~/Views/Shared/_Index.cshtml"; |
|
|
|
var modulesTree = top.learun.clientdata.get(['modulesTree']); |
|
|
|
var parentId = '0'; |
|
|
|
var modules = modulesTree[parentId] || []; |
|
|
|
//console.log(modulesTree) |
|
|
|
$('.nav').on('click', '.navMoreBox .navMore', function(){//查看更多 |
|
|
|
$('.nav').on('click', '.navMoreBox .navMore', function(){//查看更多 |
|
|
|
var id = $(this).parents('.navBox').attr('id'); |
|
|
|
$('.navCon').css('display', 'none').removeClass('active'); |
|
|
|
$('.navCon[parentid="'+ id +'"]').addClass('active').fadeIn(); |
|
|
|
//console.log($('.navRow[parentid="'+ id +'"]')) |
|
|
|
}).on('click', '.navTitle .fa-angle-left', function(){//返回上一页 |
|
|
|
}).on('click', '.navTitle .fa-angle-left', function(){//返回上一页 |
|
|
|
var id = $(this).parents('.navCon').attr('parentid'); |
|
|
|
$('.navCon').css('display', 'none').removeClass('active'); |
|
|
|
$('#' + id).parents('.navCon').addClass('active').fadeIn(); |
|
|
@@ -189,8 +187,7 @@ Layout = "~/Views/Shared/_Index.cshtml"; |
|
|
|
var $threeMenux = $('<div class="navCon navCons" num="3" parentid="'+ secondItem.F_ModuleId +'"><div class="navTitle" style="background: '+ color +';color:#fff"><i class="fa fa-angle-left"></i><i class="'+ secondItem.F_Icon +'"></i>'+ secondItem.F_FullName +'</div></div>'); |
|
|
|
var threeMenuHad = false; |
|
|
|
var secondClassName = '', secondMore = ''; |
|
|
|
//console.log(threeModules.length) |
|
|
|
if(threeModules.length != 0){ |
|
|
|
if(threeModules.length != 0){ |
|
|
|
secondClassName = 'navMoreBox', secondMore = '展开更多 <i class="fa fa-caret-right"></i>'; |
|
|
|
} |
|
|
|
|
|
|
|