界面嵌入外部URL cookie传递 (test)
This commit is contained in:
@@ -17,13 +17,8 @@
|
|||||||
|
|
||||||
<a class="nav-link nav-toggle"
|
<a class="nav-link nav-toggle"
|
||||||
<c:if test="${secondMenu.href != null && secondMenu.href != ''}" var="secondHref">
|
<c:if test="${secondMenu.href != null && secondMenu.href != ''}" var="secondHref">
|
||||||
<c:if test="${fn:startsWith(secondMenu.href,'http')}" var="secondFlag">
|
|
||||||
href="javascript:;" onclick="page_turn('${secondMenu.id }','${secondMenu.functionId }','1','','${secondMenu.href }',this)" target="mainFrame" >
|
|
||||||
</c:if>
|
|
||||||
<c:if test="${!secondFlag}">
|
|
||||||
href="javascript:;" onclick="page_turn('${secondMenu.id }','${secondMenu.functionId }','1','','${ctx}${secondMenu.href }',this)" target="mainFrame" >
|
href="javascript:;" onclick="page_turn('${secondMenu.id }','${secondMenu.functionId }','1','','${ctx}${secondMenu.href }',this)" target="mainFrame" >
|
||||||
</c:if>
|
</c:if>
|
||||||
</c:if>
|
|
||||||
<c:if test="${!secondHref }">
|
<c:if test="${!secondHref }">
|
||||||
href="javascript:;" class="nav-link nav-toggle">
|
href="javascript:;" class="nav-link nav-toggle">
|
||||||
</c:if>
|
</c:if>
|
||||||
@@ -47,12 +42,7 @@
|
|||||||
|
|
||||||
<a class="nav-link nav-toggle"
|
<a class="nav-link nav-toggle"
|
||||||
<c:if test="${thirdMenu.href != null && thirdMenu.href != ''}" var="thirdHref">
|
<c:if test="${thirdMenu.href != null && thirdMenu.href != ''}" var="thirdHref">
|
||||||
<c:if test="${fn:startsWith(thirdMenu.href,'http')}" var="thirdFlag">
|
|
||||||
href="javascript:;" onclick="page_turn('${thirdMenu.id }','${thirdMenu.functionId }','2','','${thirdMenu.href }',this)" target="mainFrame" >
|
|
||||||
</c:if>
|
|
||||||
<c:if test="${!thirdFlag}">
|
|
||||||
href="javascript:;" onclick="page_turn('${thirdMenu.id }','${thirdMenu.functionId }','2','','${ctx}${thirdMenu.href }',this)" target="mainFrame" >
|
href="javascript:;" onclick="page_turn('${thirdMenu.id }','${thirdMenu.functionId }','2','','${ctx}${thirdMenu.href }',this)" target="mainFrame" >
|
||||||
</c:if>
|
|
||||||
|
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${!thirdHref }">
|
<c:if test="${!thirdHref }">
|
||||||
@@ -72,12 +62,7 @@
|
|||||||
<c:if test="${fourthMenu.isShow==1}">
|
<c:if test="${fourthMenu.isShow==1}">
|
||||||
<li class="nav-item" id="menu_${fourthMenu.id }" menu-id="${fourthMenu.id }" menu-name="<spring:message code="${fourthMenu.code}"></spring:message>" >
|
<li class="nav-item" id="menu_${fourthMenu.id }" menu-id="${fourthMenu.id }" menu-name="<spring:message code="${fourthMenu.code}"></spring:message>" >
|
||||||
<a href="javascript:;"
|
<a href="javascript:;"
|
||||||
<c:if test="${fn:startsWith(fourthMenu.href,'http')}" var="fourFlag">
|
|
||||||
onclick="page_turn('${fourthMenu.id }','${fourthMenu.functionId }','3','','${fourthMenu.href }',this)" target="mainFrame"
|
|
||||||
</c:if>
|
|
||||||
<c:if test="${!fourFlag}">
|
|
||||||
onclick="page_turn('${fourthMenu.id }','${fourthMenu.functionId }','3','','${ctx}${fourthMenu.href }',this)" target="mainFrame"
|
onclick="page_turn('${fourthMenu.id }','${fourthMenu.functionId }','3','','${ctx}${fourthMenu.href }',this)" target="mainFrame"
|
||||||
</c:if>
|
|
||||||
class="nav-link ">
|
class="nav-link ">
|
||||||
<%-- ${fourthMenu.name } --%> <spring:message code="${fourthMenu.code}"></spring:message>
|
<%-- ${fourthMenu.name } --%> <spring:message code="${fourthMenu.code}"></spring:message>
|
||||||
<!-- <span class="badge badge-danger">1</span> -->
|
<!-- <span class="badge badge-danger">1</span> -->
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ function page_turn(id, functionId,level, name, url,obj){
|
|||||||
var $header = $(".page-breadcrumb");//添加头部信息
|
var $header = $(".page-breadcrumb");//添加头部信息
|
||||||
$(".page-breadcrumb").empty();
|
$(".page-breadcrumb").empty();
|
||||||
|
|
||||||
|
var lang = "${cookie.Language.value }".toLowerCase();
|
||||||
|
|
||||||
var parent_li = $object.parents("li");
|
var parent_li = $object.parents("li");
|
||||||
var parent_parent_li = $object.parents("li").parents("li");
|
var parent_parent_li = $object.parents("li").parents("li");
|
||||||
@@ -150,11 +151,17 @@ function page_turn(id, functionId,level, name, url,obj){
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
//调入页面
|
//调入页面
|
||||||
|
//进行区分是否为外部URL
|
||||||
|
if (url.split("http").length>1) {
|
||||||
|
url="http"+url.split("http")[url.split("http").length-1]+"?test_cookie="+lang;
|
||||||
|
}else{
|
||||||
if(url.indexOf("?")>0){
|
if(url.indexOf("?")>0){
|
||||||
url = url+"&functionId="+functionId;
|
url = url+"&functionId="+functionId;
|
||||||
}else{
|
}else{
|
||||||
url = url+"?functionId="+functionId;
|
url = url+"?functionId="+functionId;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
window.frames['mainFrame'].location=url;
|
window.frames['mainFrame'].location=url;
|
||||||
|
|
||||||
$("#mainFrame").load(function(){
|
$("#mainFrame").load(function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user