| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title></title>
- <link href="../css/mui.min.css" rel="stylesheet" />
- <link href="../css/mui.indexedlist.css" rel="stylesheet" />
- <link rel="stylesheet" href="../css/iconfont.css" />
- <style>
- html,
- body {
- height: 100%;
- overflow: hidden;
- }
-
- .mui-bar {
- -webkit-box-shadow: none;
- box-shadow: none;
- }
-
-
-
-
-
- .oa-contact-cell.mui-table .mui-table-cell {
- padding: 5px 0;
- margin-right: 5px;
- vertical-align: middle;
- }
-
- .oa-contact-cell {
- position: relative;
- margin: -11px 0;
- }
-
- .oa-contact-avatar {
- width: 35px;
- }
-
- .oa-contact-avatar img {
- width: 40px;
- height: 40px;
- }
-
- .oa-contact-content {
- width: 60%;
- }
-
- .oa-contact-name {
- margin-right: 10px;
- }
-
- .oa-contact-name,
- oa-contact-position {
- float: left;
- }
-
- .size-14 {
- font-size: 14px;
- color: #4d4d4d;
- }
-
- .oa-contact-email {
- margin-top: 2px;
- }
-
- .yellow {
- background-color: #fa9d3b;
- width: 40px;
- height: 40px;
- }
- </style>
- </head>
- <body>
- <header class="mui-bar mui-bar-nav">
- <h1 id="title" class="mui-title">通讯录</h1>
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
- </header>
- <div class="mui-content">
- <div id='list' class="mui-indexed-list">
- <div class="mui-indexed-list-search mui-input-row mui-search">
- <input type="search" class="mui-input-clear mui-indexed-list-search-input" placeholder="搜索">
- </div>
- <div class="mui-indexed-list-bar">
- <a>A</a>
- <a>B</a>
- <a>C</a>
- <a>D</a>
- <a>E</a>
- <a>F</a>
- <a>G</a>
- <a>H</a>
- <a>I</a>
- <a>J</a>
- <a>K</a>
- <a>L</a>
- <a>M</a>
- <a>N</a>
- <a>O</a>
- <a>P</a>
- <a>Q</a>
- <a>R</a>
- <a>S</a>
- <a>T</a>
- <a>U</a>
- <a>V</a>
- <a>W</a>
- <a>X</a>
- <a>Y</a>
- <a>Z</a>
- </div>
- <div class="mui-indexed-list-alert"></div>
- <div class="mui-indexed-list-inner">
- <div class="mui-indexed-list-empty-alert">没有数据</div>
- <ul class="mui-table-view TX">
-
-
- </ul>
- </div>
- </div>
- </div>
- <script src="../js/zepto.js"></script>
- <script src="../js/mui.min.js"></script>
- <script src="../js/huayi.config.js"></script>
- <script src="../js/mui.indexedlist.js"></script>
- <script type="text/javascript" charset="utf-8">
- window.onload=function(){
- mui.plusReady(function() {
- mui('.mui-scroll-wrapper').scroll({
- deceleration: 0.0005
- });
- var wv = plus.webview.currentWebview();
- var rolecodeid=wv.ids;
- console.log(rolecodeid);
- plus.nativeUI.closeWaiting();
- //显示当前页面
- mui.currentWebview.show();
- mui.ajax(huayi.config.callcenter_url + 'Index/GetRoleList?', {
- data: {
- token: localStorage.getItem('token'),
- rolecodeid:rolecodeid
- },
- dataType: 'json', //服务器返回json格式数据
- type: 'get', //HTTP请求类型
- timeout: 10000, //超时时间设置为10秒;
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
- },
- success: function(data) {
- if(data.state = "success") {
- var html
- $(data.rows).each(function(i, n) {
- html = '<li data-group="'+n.NameOneCode+'" class="mui-table-view-divider mui-indexed-list-group">'+n.NameOneCode+'</li>';
- $(n.AddressBooklist).each(function(j, m) {
- html += '<li data-value="'+m.NameOneCode+'" data-tags="'+m.NameOneCode+'" class="mui-table-view-cell mui-indexed-list-item">'+
- '<div class="mui-slider-cell">'+
- '<div class="oa-contact-cell mui-table">'+
- '<div class="oa-contact-avatar mui-table-cell">'+
- '<img src="../img/2.png"/>'+
- '</div>'+
- '<div class="oa-contact-content mui-table-cell">'+
- '<h4 class="oa-contact-name size-14">'+m.F_Name+'</h4>'+
- '<span class="oa-contact-position mui-h6">'+m.F_Position+'</span>'+
- '<h4 class="oa-contact-email mui-h6">'+m.F_Mobile+'</h4>'+
- '</div>'+
- '</div>'+
- '</div>'+
- '</li>';
- })
- html += '</li>';
- $(html).appendTo($(".TX"));
- })
- var header = document.querySelector('header.mui-bar');
- var list = document.getElementById('list');
- //calc hieght
- list.style.height = (document.body.offsetHeight - header.offsetHeight) + 'px';
- //create
- window.indexedList = new mui.IndexedList(list);
- }
- },
- error: function(xhr, type, errorThrown) {
- //异常处理;
- mui.alert("");
- }
- });
- });
- }
- </script>
- </body>
- </html>
|