123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>客服</title>
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="stylesheet" type="text/css" href="../../../css/common/mui.min.css" />
- <link rel="stylesheet" href="../../../css/common/common.css">
- <link rel="stylesheet" type="text/css" href="../../../css/index/index-menu/procurement.css" />
- <link rel="stylesheet" type="text/css" href="../../../css/index/index-procurement/svm.css" />
- </head>
- <body>
- <style type="text/css">
- /*分页框*/
-
- .tabs {
- position: absolute;
- top: 97px;
- right: 0;
- left: 0;
- background: #FFFFFF;
- }
-
- #sliderSegmentedControl {
- background: #FFFFFF;
- border-bottom: 1px solid #F5F5F5;
- }
-
- .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
- color: #1badf8;
- box-shadow: inset 0 -2px 0 0 #1badf8;
- }
-
- #scroll1,
- #scroll2 {
- margin-top: 42px;
- }
- </style>
- <header id="header" class="mui-bar mui-bar-nav">
- <a class="mui-action-back mui-icon mui-icon-arrowleft">
- <span class="back">返回</span>
- </a>
- <h1 class="mui-title">客服</h1>
- </header>
- <div class="mui-content mui-slider mui-fullscreen">
- <!--搜索框-->
- <div class="mui-input-row mui-search">
- <input id="search" type="search" class="mui-input-clear" placeholder="Search">
- </div>
- <header class="mui-bar mui-bar-nav">
- <div class="tabs">
- <div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
- <a class="mui-control-item sm-mo-word mui-active" href="#item1mobile">
- 已解决
- </a>
- <a class="mui-control-item sm-mo-word" href="#item2mobile">
- 未解决
- </a>
- </div>
- </div>
- </header>
- <div class="mui-slider-group">
- <div id="item1mobile" class="mui-slider-item mui-control-content mui-active mui-scroll-wrapper">
- <div id="scroll1" class="mui-scroll">
- <div class="svm">
- <ul>
- </ul>
- </div>
- </div>
- </div>
- <div id="item2mobile" class="mui-slider-item mui-control-content mui-scroll-wrapper">
- <div id="scroll2" class="mui-scroll">
- <div class="svm">
- <ul>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <!-- click -->
- <div class="fixed-box">
- <div id="../home-index-custom/custom-add.html" onclick="hrefTo(this.id)">
- 发起
- </div>
- <div class="mo-word xx">
- <img src="../../../img/home-index/add.png" />
- </div>
- </div>
- </div>
- <script src="../../../libs/mui.min.js"></script>
- <script src="../../../libs/href.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript">
- (function($, doc) {
- $.plusReady(function() {
- $('.mui-scroll-wrapper').scroll({
- deceleration: 0.0006 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
- });
- var str = plus.storage.getItem('user');
- var user = JSON.parse(str);
- var token = user.Data.Token;
- //查询
- GetdataList();
- //固定菜单
- var count = 0;
- $(doc.body).on('tap', '.xx', function() {
- if(count % 2 == 0) {
- $('.fixed-box')[0].childNodes[1].className = 'move1';
- $('.fixed-box')[0].childNodes[3].className = 'mo-word xx move7';
- } else {
- $('.fixed-box')[0].childNodes[1].className = 'move4';
- $('.fixed-box')[0].childNodes[3].className = 'mo-word xx move8';
- }
- count++
- });
- //跳转
- $(doc.body).on('tap', 'li', function() {
- var exist = $(this)[0].childNodes[1].innerHTML
- $.openWindow({
- url: '../home-index-custom/custom-details.html',
- waiting: {
- autoShow: false, //自动显示等待框,默认为true
- },
- extras: {
- exist: exist
- },
- show: {
- autoShow: true, //页面loaded事件发生后自动显示,默认为true
- duration: 200, //页面动画持续时间,Android平台默认100毫秒,iOS平台默认200毫秒;
- }
- })
- });
- //搜索
- doc.getElementById("search").addEventListener('input', function() {
- var li = $('li');
- for(var i = 0; i < li.length; i++) {
- if(li[i].childNodes[0].innerHTML.indexOf(this.value) == -1) {
- li[i].style.display = 'none'
- } else {
- li[i].style.display = 'block'
- }
- }
- });
- //搜索差号
- $(doc.body).on('tap', '.mui-icon-clear', function() {
- var li = $('li');
- for(var i = 0; i < li.length; i++) {
- li[i].style.display = 'block'
- }
- })
- function GetdataList() {
- var postData = {
- "pageIndex": 1,
- "pageSize": 100,
- "exist": "", // 类型
- }
- $.ajax('http://www.bosshand.cn/api/Invoicing/GetCSDRecordPageList', {
- data: postData,
- type: 'post',
- dataType: 'json',
- timeout: 1000,
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded',
- authorization: token
- },
- success: function(resp) {
- var data = resp.Data.list;
- var html = '';
- var htmls = '';
- for(var i = 0; i < data.length; i++) {
- if(data[i].IsSolve == 1) {
- html += '<li><span>' + data[i].ConsultingProblem + '</span><span>' + data[i].AdvisoryParty + '</span></li>'
- $('#scroll1 ul')[0].innerHTML = html;
- } else if(data[i].IsSolve == 0) {
- htmls += '<li><span>' + data[i].ConsultingProblem + '</span><span>' + data[i].AdvisoryParty + '</span></li>'
- $('#scroll2 ul')[0].innerHTML = htmls;
- }
- }
- },
- error: function(err, e) {
- }
- });
- };
- })
- })(mui, document)
- </script>
- </body>
- </html>
|