notice_list.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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="data_list">
  12. <ul id="notifyContent">
  13. </ul>
  14. </div>
  15. </section>
  16. <div class="bottom-fxied">
  17. <footer>
  18. <span>
  19. <a th:href="@{/mobile/home}" >
  20. <i class="iconfont icon-shouye"></i>
  21. <div>首页</div>
  22. </a>
  23. </span>
  24. <span>
  25. <a th:href="@{/mobile/company/companyPage}" >
  26. <i class="iconfont icon-enterprise"></i>
  27. <div>产品</div>
  28. </a>
  29. </span>
  30. <span>
  31. <a th:href="@{/mobile/service}" class="active">
  32. <i class="iconfont icon-msnui-service"></i>
  33. <div>服务</div>
  34. </a>
  35. </span>
  36. <span>
  37. <a th:href="@{/mobile/account}">
  38. <i class="iconfont icon-wo"></i>
  39. <div>我</div>
  40. </a>
  41. </span>
  42. </footer>
  43. </div>
  44. </body>
  45. <script type="text/javascript">
  46. $(document).ready(function(){
  47. $.ajax({
  48. type: "POST",
  49. dataType: "json",
  50. url: pagePath+"/mobile/notify/getNotifyInfo",
  51. data: {
  52. "timestamp": new Date().getTime()
  53. },
  54. success: function (result) {
  55. if (result.success) {
  56. for(var i=0;i<result.obj.notifyList.length;i++){
  57. var notify=result.obj.notifyList[i]
  58. var html='<li><span class=""> <a href='+pagePath+'/mobile/notify/noticeDetailPage?notifyId='+notify.id+'&notifyDetailId='+notify.notify_detail_id+'>';
  59. html+='【公告】'+notify.title+'</a></span>';
  60. html+='<span class="">'+notify.create_time+'<div class="is_read">';
  61. if(notify.is_read){
  62. html+='已读</div> </span></li> ';
  63. }else{
  64. html+='未读</div> </span></li> ';
  65. }
  66. var $html=$(html);
  67. $("#notifyContent").append($html);
  68. }
  69. } else {
  70. sadMessage(result.message);
  71. }
  72. },
  73. error: function () {
  74. }
  75. });
  76. });
  77. </script>
  78. </html>