商丘12345 前端

personal.html 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  8. <link rel="stylesheet" href="../layui/css/layui.mobile.css" />
  9. <link href="../css/mui.min.css" rel="stylesheet" />
  10. <link rel="stylesheet" href="../css/iconfont.css" />
  11. <link rel="stylesheet" href="../css/inits.css" />
  12. <title>个人中心</title>
  13. <style>
  14. .count {
  15. color: #ff0006;
  16. }
  17. .icon_color {
  18. color: #00b4ff;
  19. margin-right: 3px;
  20. vertical-align: middle;
  21. }
  22. ul li a {
  23. font-size: 14px;
  24. color: #585858;
  25. }
  26. .head {
  27. /*background: url(../img/per_bg_01.png) no-repeat;*/
  28. background: url(../img/banner.png) no-repeat;
  29. background-size: 100% 100%;
  30. width: 100%;
  31. height: 200px;
  32. position: relative;
  33. }
  34. .count_list {
  35. padding: 0;
  36. margin: 0;
  37. width: 100%;
  38. border: 0;
  39. }
  40. .count_list li {
  41. width: 33.3%;
  42. text-align: center;
  43. float: left;
  44. background: #eef7fd;
  45. list-style: none;
  46. padding: 5px 0;
  47. }
  48. .nickName_box {
  49. color: #fff;
  50. font-size: 20px;
  51. position: absolute;
  52. right: 0;
  53. left: 0;
  54. top: 90px;
  55. bottom: 0;
  56. text-align: center;
  57. }
  58. .change_nickName {
  59. display: block;
  60. font-size: 10px;
  61. border: 1px solid #fff;
  62. width: 100px;
  63. margin: 9px auto;
  64. border-radius: 20px;
  65. }
  66. .right_wz {
  67. background: transparent;
  68. color: #929292;
  69. }
  70. .mui-segmented-control .mui-control-item.mui-active {
  71. color: #000 !important;
  72. background-color: #eef7fd !important;
  73. }
  74. </style>
  75. </head>
  76. <body>
  77. <div class="mui-content">
  78. <div class="head">
  79. <!--<p class="nickName_box"><span class="nickName">豆芽儿</span><span class="change_nickName">请设置您的昵称</span></p>-->
  80. <p class="nickName_box"><span class="nickName"></span></p>
  81. </div>
  82. <ul class="count_list clearFix mui-segmented-control" id="segmentedControl">
  83. <li><a href="#type_con0" class="mui-control-item mui-active">全部记录<span class="count total"</span></a></li>
  84. <li><a href="#type_con1" class="mui-control-item">处理中<span class="count blzcount"></span></a></li>
  85. <li><a href="#type_con2" class="mui-control-item">已办结<span class="count yblcount"></span></a></li>
  86. </ul>
  87. <ul class="mui-table-view mui-control-content mui-active" id="type_con0">
  88. <li class="mui-table-view-cell turn_gdlist" data-index="-1">
  89. <a class="mui-navigate-right">
  90. <span class="type_data">全部诉求</span><span class="count all_count"></span>
  91. <span class="mui-badge right_wz">查看全部诉求</span>
  92. </a>
  93. </li>
  94. <!--
  95. <li class="mui-table-view-cell">
  96. <a class="mui-navigate-right">
  97. 建议记录<span class="count">(0)</span>
  98. </a>
  99. </li>-->
  100. </ul>
  101. <ul class="mui-table-view mui-control-content" id="type_con1">
  102. <li class="mui-table-view-cell turn_gdlist" data-index="0">
  103. <a class="mui-navigate-right">
  104. <span class="type_data">处理中总数</span><span class="count going"></span>
  105. <span class="mui-badge right_wz">查看处理中诉求</span>
  106. </a>
  107. </li>
  108. </ul>
  109. <ul class="mui-table-view mui-control-content" id="type_con2">
  110. <li class="mui-table-view-cell turn_gdlist" data-index="1">
  111. <a class="mui-navigate-right">
  112. <span class="type_data">已处理总数</span><span class="count finish"></span>
  113. <span class="mui-badge right_wz">查看已处理诉求</span>
  114. </a>
  115. </li>
  116. </ul>
  117. </div>
  118. <script src="layui/layui.js"></script>
  119. <script src="../js/mui.min.js"></script>
  120. <script src="../layui/layui.js"></script>
  121. <script src="../js/zepto.js"></script>
  122. <script src="../Script/Common/huayi.config.js"></script>
  123. <script src="../Script/Common/huayi.http.js"></script>
  124. <script>
  125. var openid = helper.cookies.get("openid");
  126. if (!openid) {
  127. window.location.replace("../html/error.html");
  128. }
  129. var type = 0;
  130. Ajax(type);
  131. $('.count_list li').on('tap', function () {
  132. type = $(this).index();
  133. Ajax(type)
  134. })
  135. function Ajax(type) {
  136. $('#type_con' + type).children('.order_jl').remove();
  137. $.ajax({
  138. type: "get",
  139. url: huayi.config.callcenter_url + 'WxLogin/GetWorkOrderCount',
  140. data: {
  141. openid: openid,
  142. type: type
  143. },
  144. dataType: 'json',
  145. success: function (result) {
  146. console.log(result.state)
  147. var con = result.data;
  148. if (result.state.toLowerCase() == 'success') {
  149. $('.total').html(con.total);//全部记录
  150. $('.blzcount').html(con.blzcount);//办理中
  151. $('.yblcount').html(con.yblcount);//已办理
  152. $('.all_count').html('(' + con.total + ')');//所有诉求
  153. $('.going').html('(' + con.blzcount + ')');//办理中
  154. $('.finish').html('(' + con.yblcount + ')');//已办理
  155. var typeData = con.typedata;
  156. $(typeData).each(function (i, n) {
  157. $('<li class="mui-table-view-cell order_jl" data-index="' + n.F_ValueId + '">' +
  158. '<a class="mui-navigate-right">' +
  159. '<span class="type_data">' + n.F_Value + '记录</span><span class="count">(' + n.Count + ')</span>' +
  160. '</a>' +
  161. '</li>').appendTo('#type_con' + type)
  162. })
  163. }
  164. }
  165. });
  166. }
  167. $('.turn_gdlist').on('tap', function () {
  168. var isdeal = $(this).attr('data-index');
  169. location.href = "allSuQiu.html?isdeal=" + isdeal;
  170. })
  171. $('#type_con' + type).on('tap', '.order_jl', function () {
  172. var order_type = $(this).attr('data-index');
  173. location.href = "allSuQiu.html?types=" + order_type;
  174. })
  175. </script>
  176. </body>
  177. </html>