$(function () { "use strict"; var pageId = request('id'); var menuId = request('menuid'); var moduleName = unescape(request('module')); var pageType; var activeItem = null; var navList = []; // 判断下页面数据是否是全的,如果是不全就转到主页 $('.lr-site-banner-default .img').attr('src', $.rootUrl + '/home/GetPageImg?keyValue=' + pageId); $('body').on('click', '.site-menu-li', function () { var $this = $(this); var data = $this[0].data; if (data.F_UrlType == 1) {// 内部页面 window.location.href = $.rootUrl + '/Home/ChildIndex?id=' + data.F_Url + '&menuid=' + data.F_Id; } else {// 外部页面 window.open(data.F_Url); } return false; }); $('body').on('click', '.lr-site-article-list-item', function () { var data = $(this)[0].data; window.open($.rootUrl + '/Home/DetailIndex?id=' + data); return false; }); $('.homePage').on('click', function () { window.location.href = $.rootUrl + '/Home/Index'; }); // 渲染顶部菜单 var renderTopMenu = function (_topMenuList) { var $topUl = $('.lr-site-nav-ul'); $('.lr-site-sub-nav-ul').remove(); $.each(_topMenuList["0"] || [], function (_index, _item) { var $item = $('