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