window.status = getQuery().status; window.statusVal = 'editable'; $(function(){ if(window.status != window.statusVal){ var Alis = $('.nav>ul>li'); Alis.each(function (index, ele) { $(ele).find('.navCon,.navList .level02 a').on('click', function () { //非首页 if ($(this).attr('speAttr') != 1) { var ntype = $(this).attr('ntype'); var catId = $(this).attr('catId'); var refUrl = $(this).attr('refUrl'); var infoId = $(this).attr('infoId'); //区分首页还是二级页面 if ($('#devide_homePage').length > 0) { var openType = "new"; } else { var openType = 0; } jumpToPage({ ntype: ntype, parentId: catId, infoId: infoId, refUrl: refUrl, openType: openType, pageSize: PageSize }); } else {//跳转首页 var url = getAppServer() + "/" + identify; window.location.href = toDetailPage(url); } }) }) //logo点击跳转首页 $('.logoBlock').click(function () { var url = getAppServer() + "/" + identify; window.location.href = toDetailPage(url); }); //登录按钮点击事件 $(".cg_login .info").click(function () { var sCode = $(".main_container").attr('sCode'); var url = getAppServer() + '/page/login/' + sCode; window.location.href = toDetailPage(url); }); } });