| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link href="../css/mui.min.css" rel="stylesheet" />
- <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">
- <style type="text/css">
- html {
- width: 100%;
- height: 100%;
- }
-
- body {
- height: 100%;
- background-color: transparent;
- }
-
- .mui-popover .mui-popover-arrow {
- left: auto;
- right: 10px!important;
- }
-
- .mui-popover {
- display: block;
- width: auto;
- opacity: 1;
- text-align: center;
- }
-
- .mui-table-view-cell>a:not(.mui-btn) {
- color: #000;
- }
-
- .fa {
- margin-right: 8px;
- color: #535353;
- }
-
- .mui-table-view-cell>a:not(.mui-btn) {
- color: #535353;
- }
- #userGroup{
- display: none;
- }
- </style>
- </head>
- <body>
- <div id="topPopover" class="mui-popover" style="position:fixed ;top: 55px;right:5px;">
- <div class="mui-popover-arrow" style="top: -30px;"></div>
- <ul class="mui-table-view" style="color: #fff; top: -4px;right: 0;">
- <li class="mui-table-view-cell ">
- <a href="#" id="addUser">
- <i class="fa fa-user-plus" aria-hidden="true"></i>添加用户
- </a>
- </li>
- </ul>
- </div>
- <script src="../js/mui.min.js"></script>
- <script type="text/javascript">
- mui.init({
- beforeback: function() { //获得父页面的webview
- plus.webview.currentWebview().hide()
- return false;
- }
- })
- mui.plusReady(function() {
- ws = plus.webview.currentWebview();
- ws.setStyle({
- mask: "none"
- });
- window.addEventListener("tap", function() {
- ws.hide();
- })
- window.addEventListener("dragstart", function() {
- ws.hide();
- })
- //用户判断
- var isuser = plus.storage.getItem('isuser');
- console.log(isuser)
- if(isuser == 'agency'){
- document.getElementById('userGroup').style.display = 'none';
- }else{
- document.getElementById('userGroup').style.display = 'block';
- }
- })
- document.getElementById('addUser').addEventListener('tap', function() {
- mui.openWindow({
- url: 'systemmanage_user_add.html',
- id: 'systemmanage_user_add'
- })
- })
- document.getElementById('addUserGroup').addEventListener('tap', function() {
- mui.openWindow({
- url: 'systemmanage_usergroup_add.html',
- id: 'systemmanage_usergroup_add'
- })
- })
- </script>
- </body>
- </html>
|