notice.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <div th:replace="~{mobile/header :: header}"></div>
  4. <body>
  5. <header>
  6. <a class="back" href="javascript:history.go(-1);"> <i class="iconfont icon-fanhui"></i></a>
  7. <span >通知公告</span>
  8. </header>
  9. <!-- 内容 -->
  10. <section class="content has_header">
  11. <div class="text" id="notifyContent">
  12. <!-- 下面是拷贝的一段富文本内容 -->
  13. <!-- 结束正文拷贝 -->
  14. </div>
  15. </section>
  16. <script type="text/javascript">
  17. $(document).ready(function(){
  18. String.prototype.getParameter = function (key) {
  19. var re = new RegExp(key + '=([^&]*)(?:&)?');
  20. return this.match(re) && this.match(re)[1];
  21. };
  22. var notifyId = location.href.getParameter("notifyId");
  23. $.ajax({
  24. type: "POST",
  25. dataType: "json",
  26. url: pagePath+"/mobile/notify/getNotifyDetail/"+notifyId,
  27. data: {
  28. "timestamp": new Date().getTime()
  29. },
  30. success: function (result) {
  31. if (result.success) {
  32. var notify=result.obj.notify;
  33. var html=notify.content;
  34. var $html=$(html);
  35. $("#notifyContent").append($html);
  36. } else {
  37. sadMessage(result.message);
  38. }
  39. },
  40. error: function () {
  41. }
  42. });
  43. });
  44. </script>
  45. <div class="bottom-fxied">
  46. <footer>
  47. <span>
  48. <a th:href="@{/mobile/home}" >
  49. <i class="iconfont icon-shouye"></i>
  50. <div>首页</div>
  51. </a>
  52. </span>
  53. <span>
  54. <a th:href="@{/mobile/company/companyPage}" >
  55. <i class="iconfont icon-enterprise"></i>
  56. <div>产品</div>
  57. </a>
  58. </span>
  59. <span>
  60. <a th:href="@{/mobile/service}" class="active">
  61. <i class="iconfont icon-msnui-service"></i>
  62. <div>服务</div>
  63. </a>
  64. </span>
  65. <span>
  66. <a th:href="@{/mobile/account}">
  67. <i class="iconfont icon-wo"></i>
  68. <div>我</div>
  69. </a>
  70. </span>
  71. </footer>
  72. </div>
  73. </body>
  74. </html>