fielchind.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>湖北智慧水运</title>
  5. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  6. <meta http-equiv="description" content="this is my page">
  7. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  9. <link>
  10. <link href="../css/base.min.css" rel="stylesheet">
  11. <link rel="stylesheet" type="text/css" href="../css/mui.min.css">
  12. <script type="text/javascript" src="../js/zepto.min.js"></script>
  13. <script type="text/javascript">
  14. $(function(){
  15. $.ajax({
  16. type: 'post',
  17. url: '../../wdglcontroller/querywdgl.do',
  18. data:{uid:"402881e44e86c26d014e86c9ae8c0008",si:getQueryString("id")},
  19. dataType: 'json',
  20. success: function(data){
  21. if(data.dirList.length<1&&data.fileList.length<1){
  22. layer.open({
  23. shade:false,
  24. content: '没有相关数据',
  25. style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
  26. time: 1
  27. });
  28. return;
  29. }
  30. console.log(data)
  31. var result = '';
  32. for(var i = 0; i < data.dirList.length; i++){
  33. result += '<li class="mui-table-view-cell" onclick="xiayibu(\''+data.dirList[i].priId+data.dirList[i].dirid+'\')">'+
  34. '<span class="mui-navigate-right">'+
  35. '<img alt="" src="../images/wenjianjia.png" style="width:40px;height: 40px;"/>'+data.dirList[i].name+
  36. '</span>'+
  37. '</li>';
  38. }
  39. console.log(data)
  40. for(var i = 0; i < data.fileList.length; i++){
  41. result += '<li class="mui-table-view-cell" onclick="window.location.href=\'../../wdglcontroller/download.do?id='+data.fileList[i].id+'\'" >'+
  42. '<span class="mui-navigate-right">'+
  43. '<img alt="" src="../images/wenjian.png" style="width:40px;height: 40px;"/>'+data.fileList[i].name+"."+data.fileList[i].filetype+
  44. '</span>'+
  45. '</li>';
  46. }
  47. $('#lists').html(result);
  48. }})
  49. })
  50. function xiayibu(id){
  51. window.location.href="fielchind.html?id="+id;
  52. }
  53. </script>
  54. <style type="text/css">
  55. *{padding: 0px;margin: 0px;}
  56. .header {
  57. width:100%;
  58. height:45px;
  59. line-height:45px;
  60. padding:0;
  61. color:#eee;
  62. font-size:22px;
  63. text-align:center;
  64. color:white;
  65. background: #2196f3;
  66. }
  67. #header {
  68. position:fixed; z-index:2;
  69. top:0; left:0;
  70. width:100%;
  71. height:45px;
  72. line-height:45px;
  73. text-align:center;
  74. padding:0;
  75. font-size:22px;
  76. color:white;
  77. background: #2196f3;
  78. color: white;
  79. }
  80. #header a{
  81. color:white;
  82. }
  83. body,button,input,div{margin: 0px;padding: 0px}
  84. .mui-input-group:after {
  85. position: absolute;
  86. right: 0;
  87. bottom: 0;
  88. left: 0;
  89. height: 0px;
  90. content: '';
  91. background-color: #c8c7cc;
  92. -webkit-transform: scaleY(.5);
  93. transform: scaleY(.5);
  94. }
  95. input::-webkit-outer-spin-button,
  96. input::-webkit-inner-spin-button{
  97. -webkit-appearance: none !important;
  98. margin: 0;
  99. }
  100. .load-bar-content, .modal-content, .modal-dialog, .modal-heading, .nav, .nav .a, .nav a, .nav li, .progress {
  101. position: fixed;
  102. }
  103. .mui-card{margin: 0px}
  104. </style>
  105. </head>
  106. <body>
  107. <header class="header">
  108. <ul class="nav nav-list pull-left">
  109. <li><a href="javascript:void(0);" id="goback" onclick="history.back()" ><span class="icon icon-arrow-back icback"></span>
  110. </a></li>
  111. </ul>
  112. <a href="#">资料库</a>
  113. </header>
  114. <div class="mui-content" style="margin-top: 45px;background: white;padding-right: 10px">
  115. <ul class="mui-table-view mui-table-view-chevron" id="lists">
  116. </ul>
  117. </div>
  118. </body>
  119. </html>