systemmanage_user_nav.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <link href="../css/mui.min.css" rel="stylesheet" />
  8. <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">
  9. <style type="text/css">
  10. html {
  11. width: 100%;
  12. height: 100%;
  13. }
  14. body {
  15. height: 100%;
  16. background-color: transparent;
  17. }
  18. .mui-popover .mui-popover-arrow {
  19. left: auto;
  20. right: 10px!important;
  21. }
  22. .mui-popover {
  23. display: block;
  24. width: auto;
  25. opacity: 1;
  26. text-align: center;
  27. }
  28. .mui-table-view-cell>a:not(.mui-btn) {
  29. color: #000;
  30. }
  31. .fa {
  32. margin-right: 8px;
  33. color: #535353;
  34. }
  35. .mui-table-view-cell>a:not(.mui-btn) {
  36. color: #535353;
  37. }
  38. #userGroup{
  39. display: none;
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <div id="topPopover" class="mui-popover" style="position:fixed ;top: 55px;right:5px;">
  45. <div class="mui-popover-arrow" style="top: -30px;"></div>
  46. <ul class="mui-table-view" style="color: #fff; top: -4px;right: 0;">
  47. <li class="mui-table-view-cell ">
  48. <a href="#" id="addUser">
  49. <i class="fa fa-user-plus" aria-hidden="true"></i>添加用户 
  50. </a>
  51. </li>
  52. </ul>
  53. </div>
  54. <script src="../js/mui.min.js"></script>
  55. <script type="text/javascript">
  56. mui.init({
  57. beforeback: function() {     //获得父页面的webview
  58. plus.webview.currentWebview().hide()
  59. return false;
  60. }
  61. })
  62. mui.plusReady(function() {
  63. ws = plus.webview.currentWebview();
  64. ws.setStyle({
  65. mask: "none"
  66. });
  67. window.addEventListener("tap", function() {
  68. ws.hide();
  69. })
  70. window.addEventListener("dragstart", function() {
  71. ws.hide();
  72. })
  73. //用户判断
  74. var isuser = plus.storage.getItem('isuser');
  75. console.log(isuser)
  76. if(isuser == 'agency'){
  77. document.getElementById('userGroup').style.display = 'none';
  78. }else{
  79. document.getElementById('userGroup').style.display = 'block';
  80. }
  81. })
  82. document.getElementById('addUser').addEventListener('tap', function() {
  83. mui.openWindow({
  84. url: 'systemmanage_user_add.html',
  85. id: 'systemmanage_user_add'
  86. })
  87. })
  88. document.getElementById('addUserGroup').addEventListener('tap', function() {
  89. mui.openWindow({
  90. url: 'systemmanage_usergroup_add.html',
  91. id: 'systemmanage_usergroup_add'
  92. })
  93. })
  94. </script>
  95. </body>
  96. </html>