hjkzGzxxHaifmMain.htm 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>hjkzGzxxHaifmMain</title>
  5. <script type="text/javascript">
  6. $(function(){
  7. if ($("#zsid").val() > 0) {
  8. jQuery.ajax({
  9. type : "get",
  10. url : "getHaifmGzxxTjt.htm",
  11. data : {"zsid" : $("#zsid").val()},
  12. dataType : "json",
  13. async : true,
  14. success : function(data) {
  15. if (data) {
  16. getHighchartTjt(data);
  17. }
  18. }
  19. });
  20. }
  21. });
  22. function showGzxxList(val,iscroll) {
  23. var html = "";
  24. jQuery.getJSON("getGzxxList.htm", {time : val,"zsid" : $("#zsid").val()}, function(data,iscroll,refresh) {
  25. var count = 1;
  26. for (var o in data) {
  27. html += "<div style='white-space: pre-wrap;'>"+ count + "." + data[o].gzxx + "</div>";
  28. count++;
  29. }
  30. $("#errorDiv").html(html);
  31. });
  32. loaded();
  33. }
  34. function loaded() {
  35. /**
  36. * 初始化滚动条
  37. * */
  38. var iscroll;
  39. iscroll = new IScroll(".hjkzGzxxIscroll",{
  40. scrollbars: true,
  41. fadeScrollbars:true,
  42. scrollbars: 'custom',
  43. shrinkScrollbars:'clip',
  44. click:true
  45. });
  46. setTimeout(function(){
  47. iscroll.refresh();
  48. }, 100);
  49. }
  50. </script>
  51. <style type="text/css">
  52. /* #errorDiv {
  53. margin-bottom:85px;
  54. } */
  55. #errorDiv div{
  56. border-bottom: 1px solid #bbb;
  57. padding: 4px;
  58. }
  59. .hjkzGzxxIscroll{
  60. overflow: hidden;
  61. position: absolute;
  62. margin: 0;
  63. width: 100%;
  64. bottom: 60px;
  65. margin-bottom: 0;
  66. top: 70px;
  67. }
  68. </style>
  69. </head>
  70. <body>
  71. <input type="hidden" id="zsid" value="$!zsid"/>
  72. <div>
  73. <div class="hjkzGzxxIscroll">
  74. <div>
  75. <div id="chartDiv" style="margin-bottom:0;"></div>
  76. <div id="errorDiv"></div>
  77. </div>
  78. </div>
  79. </div>
  80. </body>
  81. </html>