Commit e981f43e authored by 于广洋's avatar 于广洋

生产环境页面地址栏用djxh传递会报错404

parent c3c62d41
This diff is collapsed.
......@@ -105,6 +105,10 @@
// -->
var initpage;
$(function(){
// 如果生产环境上,传递djxh,则视为无效
if(config.environmental=="production" && getUrlParam("djxh")){
window.open(config.webUrl + "error/newError.html",'_self')
}
showLoading();
$.ajax({
type: "post",
......
......@@ -83,6 +83,10 @@
// }
var initpage;
$(function(){
// 如果生产环境上,传递djxh,则视为无效
if(config.environmental=="production" && getUrlParam("djxh")){
window.open(config.webUrl + "error/newError.html",'_self')
}
showLoading();
$.ajax({
type: "POST",
......
<!doctype html>
<html>
<head lang="en">
<meta charset="UTF-8">
<!--样式-->
<style>
.parentDiv{ padding-top: 150px}
.all404{width: 100% ;height: 100%;}
.head404{ width:580px; height:366px; margin:0px auto 0 auto; }
.txtbg404{ width:499px; height:169px; margin:10px auto 0 auto; }
.txtbg404 .txtbox{ width:390px; position:relative; top:30px; left:60px;color:black; font-size:13px;}
.txtbg404 .txtbox p {margin:5px 0; line-height:18px;}
.txtbg404 .txtbox .paddingbox { padding-top:15px;}
.txtbg404 .txtbox p a { color:black; text-decoration:none;}
.txtbg404 .txtbox p a:hover { color:#FC9D1D; text-decoration:underline;}
</style>
<title></title>
</head>
<body>
<div class="parentDiv">
<div class="all404">
<div class="head404"></div>
<div class="txtbg404">
<div class="txtbox">
<p>对不起,页面遇到了错误</p>
<!--<p class="paddingbox">请点击以下链接继续浏览网页</p>-->
<!--<p>》<a style="cursor:pointer" @click="returnHomePageType(-3)">返回上一页面</a></p>-->
</div>
</div>
</div>
</div>
</body>
<script>
document.write("<script type='text/javascript' src='/web/onlineReport/static/config.js?time="+Math.random()+"'></"+"script"+">")
</script>
<script src="/web/onlineReport/static/tools/js/jquery-1.11.3.js?v=1.1"></script>
<!--<script src="/web/onlineReport/static/biz/error.js?v=1.1"></script>-->
<script>
$(function(){
$(".parentDiv").css({
height:$(window).height()-150,
});
$("body").css({
margin:0,
});
$(".head404").css("background-image","url(/web/onlineReport/static/img/-e-404.png)");
})
</script>
</html>
\ No newline at end of file
......@@ -127,6 +127,10 @@
// }
var initpage;
$(function(){
// 如果生产环境上,传递djxh,则视为无效
if(config.environmental=="production" && getUrlParam("djxh")){
window.open(config.webUrl + "error/newError.html",'_self')
}
showLoading();
$.ajax({
type: "GET",
......
var initpage;
var sbqDate = ''
$(function () {
//
// 如果生产环境上,传递djxh,则视为无效
if(config.environmental=="production" && getUrlParam("djxh")){
window.open(config.webUrl + "error/newError.html",'_self')
}
showLoading();
getInitTable();
})
......
......@@ -11,20 +11,22 @@ function getUrlParam (name) {
if (r != null) return decodeURIComponent(r[2]);
return null;
}
// 公共配置 生产
var config = {
// 公共配置 生产环境
/*var config = {
environmental:"production",//production 生产 test 测试
webUrl:"http://sbjs.tjsat.gov.cn:18001/web/onlineReport/jsp/", // 测试环境/生产环境
url:"",// 开发环境配置跨域设置 // 开发环境
spreadUrl:"sbjs.tjsat.gov.cn:18001",// 注册地址
ssfwptPage:"/web/taxservicedesk/index.html#/taxTableList",// 涉税服务平台填报页面地址
value:'',//加密token
}
//公共配置 本地
/*var config = {
webUrl:"http://localhost:8088/web/onlineReport/jsp/", // 开发环境
}*/
//公共配置 本地环境,测试环境
var config = {
environmental:"test",//production 生产 test 测试
webUrl:"http://localhost:80/web/onlineReport/jsp/", // 开发环境
url:"",// 开发环境配置跨域设置 // 开发环境
spreadUrl:"sbjs.tjsat.gov.cn:18001",// 注册地址
ssfwptPage:"/web/taxservicedesk/index.html#/taxTableList",// 涉税服务平台填报页面地址
value:'',//加密token
}*/
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment