Açıklama Yok

WorkAnn.html 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>公告通知</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <!--标准mui.css-->
  10. <link rel="stylesheet" href="../css/mui.min.css">
  11. <!--App自定义的css-->
  12. <!--<link rel="stylesheet" type="text/css" href="css/app.css" />-->
  13. <style>
  14. .mui-table h4,
  15. .mui-table h5,
  16. .mui-table .mui-h5,
  17. .mui-table .mui-h6,
  18. .mui-table p {
  19. margin-top: 0;
  20. }
  21. .mui-table h4 {
  22. line-height: 21px;
  23. font-size: 16px;
  24. font-weight: 500;
  25. }
  26. .mui-table .oa-icon {
  27. position: absolute;
  28. right: 0;
  29. bottom: 0;
  30. }
  31. .mui-table .oa-icon-star-filled {
  32. color: #f14e41;
  33. }
  34. .mui-bar-nav {
  35. background-color: #00a1cb;
  36. }
  37. </style>
  38. </head>
  39. <body>
  40. <div class="mui-content mui-content mui-scroll-wrapper" id="pullrefresh">
  41. <div class="mui-scroll">
  42. <ul class="mui-table-view" id="order_list">
  43. <!--<li class="mui-table-view-cell">
  44. <div class="mui-input-row mui-search">
  45. <input type="search" class="mui-input-clear go_search" placeholder="请输入关键字" style="margin-bottom: 0;">
  46. </div>
  47. <div class="mui-btn mui-btn-primary turnGo">更多</div>
  48. </li>-->
  49. </ul>
  50. </div>
  51. </div>
  52. </body>
  53. <script src="../js/zepto.js"></script>
  54. <script src="../Script/Common/huayi.config.js"></script>
  55. <script src="../Script/Common/huayi.http.js"></script>
  56. <script src="../js/mui.min.js"></script>
  57. <script>
  58. var page = 1; //页数
  59. var pageSize = 10; //每页显示条目
  60. var total; //数据总条数
  61. var token =localStorage.getItem("T"); //获取本地存储
  62. Ajax();
  63. mui.init({
  64. swipeBack: false,
  65. pullRefresh: {
  66. container: '#pullrefresh',
  67. up: {
  68. contentrefresh: "正在加载...", //可选,正在加载状态时,上拉加载控件上显示的标题内容
  69. contentnomore: '没有更多数据了', //可选,请求完毕若没有更多数据时显示的提醒内容;
  70. callback: pullupRefresh
  71. }
  72. }
  73. });
  74. //下拉刷新
  75. function pullupRefresh() {
  76. setTimeout(function() {
  77. mui('#pullrefresh').pullRefresh().endPullupToRefresh((page++ >= Math.ceil(total / 10)));
  78. $.ajax({
  79. type:"get",
  80. url:huayi.config.callcenter_url + 'Notice/GetList',
  81. dataType: 'json', //服务器返回json格式数据
  82. data: {
  83. openid: helper.cookies.get("openid"),
  84. page:page,
  85. pagesize: pageSize
  86. },
  87. success: function(data) {
  88. total = data.total;
  89. var a = "";
  90. $(data.rows).each(function(i, n) {
  91. var T = n.F_CreateOn.substring(0, n.F_CreateOn.indexOf(' '));
  92. a = '<li class="mui-table-view-cell order" index=' + n.F_NoticeId + '>' +
  93. '<div class="mui-table">' +
  94. '<div class="mui-table-cell mui-col-xs-8">' +
  95. '<h4 class="mui-ellipsis">' + n.F_Title + '</h4>' +
  96. '<span class="mui-h5">' + T + '</span>' +
  97. '</div>' +
  98. '<div class="mui-table-cell mui-col-xs-4 mui-text-right">' +
  99. ' <a class="mui-navigate-right"></a>'+
  100. '</div>' +
  101. '</div>' +
  102. '</li>'
  103. $(a).appendTo($("#order_list"));
  104. })
  105. },
  106. })
  107. }, 1000);
  108. }
  109. //初次加载
  110. function Ajax() {
  111. $(".order").remove();
  112. $.ajax({
  113. type:"get",
  114. url:huayi.config.callcenter_url + 'Notice/GetList',
  115. dataType: 'json', //服务器返回json格式数据
  116. data: {
  117. openid: helper.cookies.get("openid"),
  118. page: page,
  119. pagesize: pageSize
  120. },
  121. success: function(data) {
  122. total = data.total;
  123. var a = "";
  124. $(data.rows).each(function(i, n) {
  125. var T = n.F_CreateOn.substring(0, n.F_CreateOn.indexOf(' '));
  126. a = '<li class="mui-table-view-cell order" index=' + n.F_NoticeId + '>' +
  127. '<div class="mui-table">' +
  128. '<div class="mui-table-cell mui-col-xs-8">' +
  129. '<h4 class="mui-ellipsis">' + n.F_Title + '</h4>' +
  130. '<span class="mui-h5">' + T + '</span>' +
  131. '</div>' +
  132. '<div class="mui-table-cell mui-col-xs-4 mui-text-right">' +
  133. ' <a class="mui-navigate-right"></a>'+
  134. '</div>' +
  135. '</div>' +
  136. '</li>'
  137. $(a).appendTo($("#order_list"));
  138. })
  139. ////详情
  140. $('.order').on('tap',function(){
  141. var index=$(this).attr("index");
  142. window.location.href = "AnnDeal.html?index="+index;
  143. })
  144. },
  145. })
  146. }
  147. </script>
  148. </html>