Bez popisu

widgets.html 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. <!--[if lt IE 10]>
  9. <script>
  10. window.location.href = './ieTips.html';
  11. </script>
  12. <![endif]-->
  13. <script src="./Script/Common/huayi.load.js"></script>
  14. <script src="./Script/Common/huayi.config.js"></script>
  15. <link rel="stylesheet" href="css/animate.min.css" />
  16. <link rel="stylesheet" href="css/bootstrap.min.css" />
  17. <style>
  18. .home_page {
  19. margin-top: 20px;
  20. position: relative;
  21. /* width: 298px;
  22. margin: 20% auto 0 auto;
  23. text-align: center;
  24. color: #333333; */
  25. }
  26. h1{
  27. text-align: center;
  28. font-weight: bold;
  29. }
  30. /* .home_page img {
  31. width: 298px;
  32. height: 94px;
  33. }
  34. .home_page h1 {
  35. font-size: 14px;
  36. margin-top: 26px;
  37. margin-bottom: 18px;
  38. }
  39. .home_page p {
  40. font-size: 12px;
  41. padding: 0;
  42. margin: 0;
  43. }
  44. .home_page p a {
  45. color: #249fea;
  46. } */
  47. .home_page img {
  48. width: 298px;
  49. height: 94px;
  50. position: absolute;
  51. z-index: -1;
  52. opacity: .3;
  53. left: 40%;
  54. bottom: 50%;
  55. }
  56. ul, ol, li {
  57. list-style: none;
  58. list-style-type: none;
  59. }
  60. .List2 li {
  61. padding: 18px 4px 18px 60px;
  62. display: block;
  63. transition: all .6s;
  64. border-bottom: 1px solid #e7e7e7;
  65. position: relative;
  66. }
  67. .Right {
  68. float: right;
  69. }
  70. .List2 .num {
  71. width: 60px;
  72. height: 61px;
  73. position: absolute;
  74. left: 0;
  75. top: 0;
  76. background: #fff;
  77. color: red;
  78. text-align: center;
  79. }
  80. .List2 .num i {
  81. display: block;
  82. width: 24px;
  83. height: 24px;
  84. line-height: 24px;
  85. background: #689DFC;
  86. border-radius: 5px;
  87. position: absolute;
  88. left: 15px;
  89. top: 17px;
  90. z-index: 10;
  91. color: #fff;
  92. font-style: normal;
  93. }
  94. .List2 a {
  95. font-size: 16px;
  96. display: inline-block;
  97. width: 800px;
  98. white-space: nowrap;
  99. overflow: hidden;
  100. text-overflow: ellipsis;
  101. }
  102. A {
  103. outline-style: none;
  104. color: #444;
  105. font-size: 14px;
  106. text-decoration: none!important;
  107. line-height: 150%;
  108. }
  109. .List2 .Black14 {
  110. padding: 0 15px;
  111. }
  112. .Gray, .Gray a {
  113. color: #666!important;
  114. text-decoration: none;
  115. }
  116. .List2{
  117. /* background-image: url(img/hom_page_img.png);
  118. background-position: center;
  119. background-repeat: no-repeat; */
  120. margin-top: 20px;
  121. position: relative;
  122. z-index: 1;
  123. }
  124. .fenye {
  125. padding: 40px 0 30px;
  126. text-align: right;
  127. }
  128. .fenye a {
  129. background: #fff;
  130. border: 1px solid #eee;
  131. display: inline-block;
  132. padding: 5px 15px;
  133. border-radius: 2px;
  134. transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1) 0s;
  135. cursor: pointer;
  136. }
  137. #updata{
  138. width: 50px;
  139. height: 30px;
  140. position: absolute;
  141. left: 10px;
  142. top: 10px;
  143. cursor: pointer;
  144. z-index: 10;
  145. }
  146. </style>
  147. </head>
  148. <body>
  149. <div class="container animated fadeInRight">
  150. <div class="home_page">
  151. <img src="img/updata2.png" alt="" id="updata">
  152. <h1>通告信息</h1>
  153. <div class="List2">
  154. <ul>
  155. </ul>
  156. </div>
  157. <div class="fenye">
  158. 总共:<span class="total"></span>&nbsp;<a href="#" onclick="upPage()">上一页</a><a href="#" onclick="downPage()">下一页</a>
  159. </div>
  160. <!-- <div class="img"></div> -->
  161. <!-- <img src="img/hom_page_img.png" alt="图片" /> -->
  162. <!-- <h1>郑州市第一人民医院</h1> -->
  163. <!--<p>
  164. 联系我们请咨询
  165. &nbsp;&nbsp;<a href="javascript:;">在线客服</a>&nbsp;&nbsp;
  166. 或致电
  167. <a href="javascript:;">400-555-9999</a>
  168. </p>-->
  169. </div>
  170. </div>
  171. </body>
  172. <script language="javascript" type="text/javascript" src="./css/layer/layer.js"></script>
  173. <script>
  174. var total=0;
  175. var index=1
  176. var $storages = window.localStorage;
  177. $(document).ready(function() {
  178. newOreder()
  179. getNoticInfor(index)
  180. setInterval(function(){
  181. getNoticInfor(index)
  182. },1000*60*2)
  183. })
  184. $('#updata').click(function(){
  185. location.reload()
  186. })
  187. function upPage(){
  188. if(index==1){
  189. return
  190. }
  191. console.log('上一页')
  192. index-=1
  193. getNoticInfor(index)
  194. }
  195. function downPage(){
  196. console.log(Math.ceil(total/8))
  197. if(index>=(Math.ceil(total/8))){
  198. return
  199. }
  200. console.log('下一页')
  201. index+=1;
  202. getNoticInfor(index)
  203. }
  204. function getNoticInfor(index){
  205. $.ajax({
  206. type: "get",
  207. url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/getimportmassage",
  208. async: true,
  209. dataType: 'json',
  210. data:{
  211. conterinfo:'',
  212. PageIndex: index,
  213. PageSize: 8
  214. },
  215. success: function(data) {
  216. let str=''
  217. // data.data.rows.reverse()
  218. if (data.state.toLowerCase() == 'success') {
  219. let num=0
  220. data.data.rows.forEach(function(v,n){
  221. num=n+1
  222. str+='<li><span class="Right"><span class="Black14 Gray">'+v.createtime+'</span></span><span class="num"><i>'+num+'</i></span>'+
  223. '<a href="noticeDetail.html?id='+v.id+'">'+v.conterinfo+'</a></li>'
  224. })
  225. total=data.data.total
  226. $('.total').html(data.data.total)
  227. $('.List2 ul').html(str)
  228. }
  229. }
  230. });
  231. }
  232. function newOreder() {
  233. $.ajax({
  234. type: "post",
  235. url: huayi.config.callcenter_url + "equipmentapi/api/WoRepairBase/getnopjwocode",
  236. async: true,
  237. dataType: 'json',
  238. success: function(data) {
  239. if (data.state.toLowerCase() == 'success') {
  240. if (data.data.total > 0) {
  241. layer.confirm('你有待评价工单请尽快处理', {
  242. icon: 7,
  243. closeBtn: 0,
  244. btn: ['确定', '取消'], //按钮
  245. });
  246. }
  247. }
  248. }
  249. });
  250. }
  251. </script>
  252. </html>