index.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <div th:replace="~{mobile/header :: header}"></div>
  4. <body>
  5. <!-- 内容 -->
  6. <section class="container">
  7. <div class="header">
  8. <img th:src="@{/assets/logo.png}">
  9. <h1 class="title">苏州高新区企业创新发展平台</h1>
  10. </div>
  11. <div class="content has_footer">
  12. <div class="data_header">通知公告</div>
  13. <div class="data_list">
  14. <ul id="notifyContent">
  15. </ul>
  16. </div>
  17. </div>
  18. </section>
  19. <!-- 底部 -->
  20. <div class="bottom-fxied">
  21. <footer>
  22. <span>
  23. <a th:href="@{/mobile/home}" class="active">
  24. <i class="iconfont icon-shouye"></i>
  25. <div>首页</div>
  26. </a>
  27. </span>
  28. <span>
  29. <a th:href="@{/mobile/company/companyPage}" >
  30. <i class="iconfont icon-enterprise"></i>
  31. <div>产品</div>
  32. </a>
  33. </span>
  34. <span>
  35. <a th:href="@{/mobile/service}">
  36. <i class="iconfont icon-msnui-service"></i>
  37. <div>服务</div>
  38. </a>
  39. </span>
  40. <span>
  41. <a th:href="@{/mobile/account}">
  42. <i class="iconfont icon-wo"></i>
  43. <div>我</div>
  44. </a>
  45. </span>
  46. </footer>
  47. </div>
  48. </body>
  49. <script type="text/javascript">
  50. $(document).ready(function(){
  51. $.ajax({
  52. type: "POST",
  53. dataType: "json",
  54. url: pagePath+"/mobile/home/getInfo",
  55. data: {
  56. "timestamp": new Date().getTime()
  57. },
  58. success: function (result) {
  59. if (result.success) {
  60. for(var i=0;i<result.obj.notifyList.length;i++){
  61. var notify=result.obj.notifyList[i]
  62. var html='<li><span class=""> <a href='+pagePath+'/mobile/notify/noticeDetailPage?notifyId='+notify.id+'&notifyDetailId='+notify.notify_detail_id+'>';
  63. html+='【公告】'+notify.title+'</a> </span>';
  64. html+='<span class="">'+notify.create_time+'</span></li>';
  65. var $html=$(html);
  66. $("#notifyContent").append($html);
  67. }
  68. } else {
  69. alert(result.message);
  70. }
  71. },
  72. error: function () {
  73. }
  74. });
  75. });
  76. </script>
  77. </html>