again.jsp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <title>从——操作失败</title>
  11. <meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,initial-scale=1,user-scalable=no" />
  12. <meta http-equiv="pragma" content="no-cache">
  13. <meta http-equiv="cache-control" content="no-cache">
  14. <meta http-equiv="expires" content="0">
  15. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  16. <meta http-equiv="description" content="This is my page">
  17. <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  18. <!-- 导入jqueryWeui样式 -->
  19. <link rel="stylesheet" href="${pageContext.request.contextPath }/jsp/js/jqueryWeui/weui.min.css">
  20. <link rel="stylesheet" href="${pageContext.request.contextPath }/jsp/js/jqueryWeui/jquery-weui.css">
  21. <link rel="stylesheet" href="${pageContext.request.contextPath }/jsp/js/jqueryWeui/demos.css">
  22. <!-- 导入jqueryWeui样式 -->
  23. <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-2.1.4.js"></script>
  24. <script type="text/javascript">
  25. $(function(){
  26. /*这里如果点击返回键的话直接退出微信浏览器,回到消息页面*/
  27. pushHistory();
  28. function pushHistory() {
  29. window.history.pushState({page : 'state1'},'state','#state1');
  30. window.history.pushState({page : 'state2'},'state','#state2');
  31. };
  32. window.onpopstate = function(event) {
  33. if (event.state.page === 'state1') {
  34. WeixinJSBridge.call('closeWindow');
  35. }
  36. };
  37. });
  38. function fanhui(){
  39. /* window.location.href="http://www.0791youxi.com/fuzhuang/WxPayjump.action?urlx="+"jsp/weixin/sys.jsp"; */
  40. WeixinJSBridge.call('closeWindow');
  41. }
  42. </script>
  43. </head>
  44. <body>
  45. <div style="text-align: center; padding-top: 45%;">
  46. <i class="weui-icon-warn weui-icon_msg" ></i><br>
  47. 操作失败<br>
  48. 登录过期,请退出重新进入系统!
  49. </div>
  50. <a href="javascript:;" class="weui-btn weui-btn_plain-primary weui-footer_fixed-bottom" onclick="fanhui()">退出系统</a>
  51. <!-- jqueryWeui样式 -->
  52. <script src="${pageContext.request.contextPath }/jsp/js/jqueryWeui/jquery-2.1.4.js"></script>
  53. <script src="${pageContext.request.contextPath }/jsp/js/jqueryWeui/fastclick.js"></script>
  54. <script src="${pageContext.request.contextPath }/jsp/js/jqueryWeui/jquery-weui.js"></script>
  55. <!-- jqueryWeui样式 -->
  56. </body>
  57. </html>