|
- <!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" href="css/mui.min.css">
- <link rel="stylesheet" href="css/style.css">
- <style>
- html,
- body {
- background-color: #efeff4;
- }
-
- .title {
- padding: 20px 15px 10px;
- color: #6d6d72;
- font-size: 15px;
- background-color: #fff;
- }
-
- .mui-control-item span {
- display: block;
- margin: 0;
- padding: 0;
- font-size: 20px
- }
-
- .mui-active {
- margin: 0;
- padding: 0;
- }
- </style>
- </head>
-
- <body>
- <div id="pullrefresh" class="mui-content">
- <div class="mui-table-view">
- <div class="mui-card-content">
- <div class="mui-card-content-inner">
- <div id="slider" class="mui-slider">
- <div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
- <a class="mui-control-item" id="bmselect"><span id="bmnum">0</span>报名学生</a>
- <a class="mui-control-item" id="jfselect"><span id="jfnum">0</span>缴费学生</a>
- <a class="mui-control-item" id="txselect"><span id="txnum">0</span>退学学生</a>
-
- </div>
-
- </div>
- </div>
- </div>
- </div>
-
- <div class="mui-scroll">
- <ul class="mui-table-view" style="margin-top: 25px;" id="entering">
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/lr.png"> 录入 学生信息</a>
- </li>
- </ul>
- <ul class="mui-table-view" style="margin-top: 25px;" id="search">
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/chaxun.png"> 查询信息</a>
- </li>
- </ul>
- <!--<ul class="mui-table-view " style="margin-top: 25px;" id="pay">
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right"><img style="max-width: 20px; height: 20px;" class="mui-pull-left" src="images/xsjg.png"> 学生缴费</a>
- </li>
- </ul>-->
- </div>
-
- </div>
- <script src="js/mui.min.js"></script>
- <script src="js/userinfos.js"></script>
- <script src="js/serverurl.js"></script>
- <script type="text/javascript">
- function GetCount() {
- // var xhr = new plus.net.XMLHttpRequest();
- // xhr.responseType = "json";
- // xhr.onreadystatechange = function() {
- // switch(xhr.readyState) {
- // case 4:
- // if(xhr.status == 200) {
- // if(xhr.response.result == "ok") {
- // document.getElementById("bmnum").innerText = xhr.response.bm;
- // document.getElementById("jfnum").innerText = xhr.response.jf;
- // document.getElementById("txnum").innerText = xhr.response.tx;
- // } else {
- // document.getElementById("bmnum").innerText ="0";
- // document.getElementById("jfnum").innerText = "0";
- // document.getElementById("txnum").innerText = "0";
- // //plus.nativeUI.toast("获取用户信息失败,请返回重新打开。");
- // }
- // } else {
- // plus.nativeUI.toast("获取用户信息失败,请返回重新打开。");
- // }
- // break;
- // default:
- // break;
- // }
- // }
- // xhr.open("GET", encodeURI(serverdomain + "/WebService/UserService.ashx?Action=strManageNum&content={'logname':'" + users.phone + "'}"));
- // xhr.send();
-
-
- mui.post(api+'/user/getstunum',{data:users.ID},function(res){//
- if(res.code=="200"){
- document.getElementById("bmnum").innerText = res.data.count;
- document.getElementById("jfnum").innerText = res.data.isPayNum;
- document.getElementById("txnum").innerText = res.data.isDropoutNum;
- }else{
- document.getElementById("bmnum").innerText ="0";
- document.getElementById("jfnum").innerText = "0";
- document.getElementById("txnum").innerText = "0";
- }
- },'json')
- }
- mui.plusReady(function() {
- CheckLogin();
- GetCount();
- document.getElementById("entering").addEventListener("tap", function() {
- mui.openWindow({
- url: 'studentsinf.html',
- id: 'studentsinf',
- show: {
- aniShow: 'pop-in'
- }
- });
- });
- document.getElementById("search").addEventListener("tap", function() {
- mui.openWindow({
- url: 'chaxuninf.html',
- id: 'chaxuninf',
- show: {
- aniShow: 'pop-in'
- }
- });
- });
- // document.getElementById("pay").addEventListener("tap", function() {
- // mui.openWindow({
- // url: 'pay.html',
- // id: 'pay',
- // show: {
- // aniShow: 'pop-in'
- // }
- // });
- // });
- document.getElementById("bmselect").addEventListener("tap", function() {
- mui.openWindow({
- url: 'chaxuninf.html',
- id: 'chaxuninf',
- extras:{
- activetab:'tablereg'
- },
- show: {
- aniShow: 'pop-in'
- }
- });
- });
- document.getElementById("jfselect").addEventListener("tap", function() {
- mui.openWindow({
- url: 'chaxuninf.html',
- id: 'chaxuninf',
- extras:{
- activetab:'tablejiaofei'
- },
- show: {
- aniShow: 'pop-in'
- }
- });
- });
- document.getElementById("txselect").addEventListener("tap", function() {
- mui.openWindow({
- url: 'chaxuninf.html',
- id: 'chaxuninf',
- extras:{
- activetab:'tabletuixue'
- },
- show: {
- aniShow: 'pop-in'
- }
- });
- });
- });
- </script>
- </body>
-
- </html>
|