Aucune description

noticeDetail.html 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7. <title>公告详情</title>
  8. <script src="./Script/Common/huayi.load.js"></script>
  9. <script src="./Script/Common/huayi.config.js"></script>
  10. <link rel="stylesheet" href="css/animate.min.css" />
  11. <link rel="stylesheet" href="css/bootstrap.min.css" />
  12. <style>
  13. .home_page {
  14. margin-top: 20px;
  15. position: relative;
  16. }
  17. h1{
  18. text-align: center;
  19. font-weight: bold;
  20. margin-bottom: 20px;
  21. }
  22. .home_page img {
  23. width: 298px;
  24. height: 94px;
  25. position: absolute;
  26. z-index: -1;
  27. opacity: .3;
  28. left: 40%;
  29. bottom: 50%;
  30. }
  31. .List2{
  32. margin-top: 20px;
  33. position: relative;
  34. z-index: 1;
  35. }
  36. .btn_back{
  37. padding: 10px 20px;
  38. outline: none;
  39. border: none;
  40. color: #fff;
  41. background-color: rgb(36,159,234);
  42. position: absolute;
  43. left: 10px;
  44. border-radius: 5px;
  45. }
  46. .s-date{
  47. width: 100%;
  48. margin: 10px 0;
  49. padding-bottom: 5px;
  50. text-align: center;
  51. border-bottom: 1px #D6DFEA dotted;
  52. }
  53. A {
  54. outline-style: none;
  55. color: #444;
  56. font-size: 14px;
  57. text-decoration: none!important;
  58. line-height: 150%;
  59. }
  60. .Content {
  61. padding: 10px 20px 20px;
  62. }
  63. .Content p{
  64. line-height: 180%;
  65. font-size: 16px;
  66. margin-top: 8px!important;
  67. margin-bottom: 8px!important;
  68. }
  69. </style>
  70. </head>
  71. <body>
  72. <div class="container animated fadeInRight">
  73. <div class="home_page">
  74. <button type="button" class="btn_back">返回通告页</button>
  75. <h1>通告详情</h1>
  76. <div class="List2">
  77. <div class="s-date">发布时间: <span class="createTime"></span> &nbsp;访问量: <a href="#" class="visits">222</a> </div>
  78. </div>
  79. <div class="Content">
  80. <p></p>
  81. </div>
  82. <!-- <img src="img/hom_page_img.png" alt="图片" /> -->
  83. </div>
  84. </div>
  85. </body>
  86. <script language="javascript" type="text/javascript" src="./css/layer/layer.js"></script>
  87. <script>
  88. var id = helper.request.queryString("id");
  89. $('.btn_back').click(function(){
  90. history.back()
  91. })
  92. getVisits(id)
  93. function getDetailInfor(id){
  94. $.ajax({
  95. type: "get",
  96. url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/getimportmassagebyid",
  97. async: true,
  98. dataType: 'json',
  99. data:{
  100. id:id
  101. },
  102. success: function(data) {
  103. if (data.state.toLowerCase() == 'success') {
  104. $('.Content p').html(data.data[0].conterinfo)
  105. $('.List2 .createTime').html(data.data[0].createtime)
  106. $('.List2 .visits').html(data.data[0].readcount)
  107. }
  108. }
  109. });
  110. }
  111. function getVisits(id){
  112. $.ajax({
  113. type: "get",
  114. url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/upimportmassageread",
  115. async: true,
  116. dataType: 'json',
  117. data:{
  118. id:id
  119. },
  120. success: function(data) {
  121. if (data.state.toLowerCase() == 'success') {
  122. getDetailInfor(id)
  123. }
  124. }
  125. });
  126. }
  127. </script>
  128. </html>