xinyb
2024-03-12 a724cc9cb339f5ec0a13d5fae58e3edecfd6ff4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isErrorPage="true"%>
<%@page import="com.yc.sdk.shopping.util.SettingKey"%>
<%response.setStatus(HttpServletResponse.SC_OK);%>
<%
String hostUrl = SettingKey.getHostUrl(request) ;
String formid = (String)request.getAttribute("formid") ;
%>
<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/style/commons.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/commons.css")%>"> 
<script src="<%=hostUrl%>/shopping/view/javascript/jquery/jquery-2.1.1.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/jquery/jquery-2.1.1.min.js")%>" type="text/javascript"></script>
<link href="<%=hostUrl%>/shopping/view/javascript/bootstrap/css/bootstrap.min.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/bootstrap/css/bootstrap.min.css")%>" rel="stylesheet" media="screen" />
<script src="<%=hostUrl%>/shopping/view/javascript/bootstrap/js/bootstrap.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/bootstrap/js/bootstrap.min.js")%>" type="text/javascript"></script>
<link href="<%=hostUrl%>/shopping/view/javascript/font-awesome/css/font-awesome.min.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/font-awesome/css/font-awesome.min.css")%>" rel="stylesheet" type="text/css" />
<link href="<%=hostUrl%>/shopping/view/theme/default/stylesheet/googleapisFont.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/theme/default/stylesheet/googleapisFont.css")%>" rel="stylesheet" type="text/css" />
<link href="<%=hostUrl%>/shopping/view/theme/default/stylesheet/stylesheet.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/theme/default/stylesheet/stylesheet.css")%>" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<%=hostUrl%>/shopping/view/javascript/toast/jquery.toast.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/toast/jquery.toast.css")%>"> 
<link rel="stylesheet" type="text/css" href="<%=hostUrl%>/style/default/easyui.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/default/easyui.css")%>"> 
<script type="text/javascript" src="<%=hostUrl%>/js/general/easyui/jquery.easyui.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/general/easyui/jquery.easyui.min.js")%>"></script>
<script type="text/javascript" src="<%=hostUrl%>/shopping/view/javascript/toast/jquery.toast.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/toast/jquery.toast.js")%>"></script>
 
<script type="text/javascript" src="<%=hostUrl%>/js/hotkey.js"></script>
<title>404页面找不到</title>
</head>
<body>
 
<style>  
.col-center-block {  
    float: none;  
    display: block;  
    margin-left: auto;  
    margin-right: auto;  
}  
</style>
<div id="loading" class="loading" style="display:none;">
    <p class="loadingMsg">加载中、请稍候....</p>
    <iframe class="loadingIFRM"></iframe>
</div>
<div class="container">  
  <div class="row">
  <div class="col-md-7 col-center-block">
     <div class="buttons clearfix" style="text-align: center;">
       <div style="font-size:30px;margin-top: 50px" >
<%--               <img src="<%=hostUrl%>/images/404.png" height="180" width="610"></img>--%>
    因系统升级需要重新加载页面
           </div>
           <% if (formid != null && !"".equals(formid)) { %>
           <div class="" style="font-size: 18px;margin-top:30px;">
            <button id="button-reload" style="padding: 7px 10px;">重新加载</button>
        </div>
        <% } else{ %>
        <div class="" style="font-size: 18px;margin-top:30px;">
            <button onclick="javascript:location.reload();" style="padding: 7px 10px;">刷新</button>
        </div>
        <% } %>
     </div>
   </div>  
   </div>
</div>
<script type="text/javascript">
    $('#button-reload').on('click', function() {
        $.ajax({
            url: '<%=hostUrl%>/buildv2.do?formID=<%=formid%>',
            dataType: 'html',
            beforeSend: function() {
                //showLoading();
                $("#loading").show();
            },
            complete: function() {
                //closeLoading();
                $("#loading").hide();
            },
            success: function(data) {
                var icon="error";
                var hider=false;
                if(data!=null&&data.indexOf("生成成功")>0){
                    data='生成成功,即将打开页面!';
                    icon="info";
                    hider=3000;
                }
                $.toast({
                    text: data, // Text that is to be shown in the toast
                   // text:'生成成功,即将打开页面!',
                   // heading: '提示', // Optional heading to be shown on the toast
 
                    icon: icon, // Type of toast icon
                    showHideTransition: 'fade', // fade, slide or plain
                    allowToastClose: true, // Boolean value true or false
                    hideAfter: hider, // false to make it sticky or number representing the miliseconds as time after which toast needs to be hidden
                    stack: 5, // false if there should be only one toast at a time or a number representing the maximum number of toasts to be shown at a time
                    position: 'mid-center', // bottom-left or bottom-right or bottom-center or top-left or top-right or top-center or mid-center or an object representing the left, right, top, bottom values
 
                    textAlign: 'left',  // Text alignment i.e. left, right or center
                    loader: true,  // Whether to show loader or not. True by default
                    loaderBg: '#9ec600',  // Background color of the toast loader
                    beforeShow: function () {}, // will be triggered before the toast is shown
                    afterShown: function () {}, // will be triggered after the toat has been shown
                    beforeHide: function () {}, // will be triggered before the toast gets hidden
                    afterHidden: function () {
                        if(hider!=false){
                        location.reload();} }  // will be triggered after the toast has been hidden
                });
 
            },
            error: function(xhr, ajaxOptions, thrownError) {
                alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
            }
        });
 
    });
    </script>
 
 
 
 
 
 
</body>
</html>