董佳音

修改管理员首页课堂信息 老师学生我的课堂时间显示

@@ -241,13 +241,13 @@ body{ @@ -241,13 +241,13 @@ body{
241 } 241 }
242 .slidesMap{ 242 .slidesMap{
243 float: left; 243 float: left;
244 - width: 100%; 244 + width:100%;
245 height:540px; 245 height:540px;
246 } 246 }
247 .slidesImg{ 247 .slidesImg{
248 width:100%; 248 width:100%;
249 height:100%; 249 height:100%;
250 - background-size: 100% 100%; 250 + background-size: 100%;
251 cursor: pointer; 251 cursor: pointer;
252 } 252 }
253 .dots{ 253 .dots{
@@ -470,7 +470,7 @@ body{ @@ -470,7 +470,7 @@ body{
470 width:46px; 470 width:46px;
471 height:46px; 471 height:46px;
472 border-radius: 50%; 472 border-radius: 50%;
473 - padding-bottom: 20px; 473 + margin-bottom: 20px;
474 } 474 }
475 .lanclassContentInfoName{ 475 .lanclassContentInfoName{
476 padding-left:20px; 476 padding-left:20px;
@@ -706,6 +706,10 @@ body{ @@ -706,6 +706,10 @@ body{
706 .classManagementRightContent0{ 706 .classManagementRightContent0{
707 height: 420px; 707 height: 420px;
708 } 708 }
  709 +.courseContent0{
  710 + width: 100%;
  711 + height:420px;
  712 +}
709 .recordUl{ 713 .recordUl{
710 width: 200px; 714 width: 200px;
711 text-align: center; 715 text-align: center;
@@ -1799,6 +1803,7 @@ body{ @@ -1799,6 +1803,7 @@ body{
1799 .courseMinuteList{ 1803 .courseMinuteList{
1800 float: left; 1804 float: left;
1801 margin-top:8px; 1805 margin-top:8px;
  1806 + height:400px;
1802 } 1807 }
1803 .courseMinuteListTimeTit{ 1808 .courseMinuteListTimeTit{
1804 height:60px; 1809 height:60px;
@@ -366,7 +366,7 @@ @@ -366,7 +366,7 @@
366 <label for="createClassBtn" class="iconfont">&#xe69b;</label> 366 <label for="createClassBtn" class="iconfont">&#xe69b;</label>
367 <span class="recordLiText" id="createClassBtn">创建课堂</span> 367 <span class="recordLiText" id="createClassBtn">创建课堂</span>
368 </li> 368 </li>
369 - <li class="recordLi" data="2"> 369 + <li class="recordLi" data="2" style="display: none;">
370 <label for="classManagement" class="iconfont">&#xe69c;</label> 370 <label for="classManagement" class="iconfont">&#xe69c;</label>
371 <span class="recordLiText" id="classManagement">班级管理</span> 371 <span class="recordLiText" id="classManagement">班级管理</span>
372 </li> 372 </li>
@@ -382,15 +382,15 @@ @@ -382,15 +382,15 @@
382 <label for="RecordManagement" class="iconfont">&#xe6a0;</label> 382 <label for="RecordManagement" class="iconfont">&#xe6a0;</label>
383 <span class="recordLiText" id="RecordManagement">录制管理</span> 383 <span class="recordLiText" id="RecordManagement">录制管理</span>
384 </li> 384 </li>
385 - <li class="recordLi" data="6"> 385 + <li class="recordLi" data="6" style="display: none;">
386 <label for="siteManagement" class="iconfont">&#xe6a3;</label> 386 <label for="siteManagement" class="iconfont">&#xe6a3;</label>
387 <span class="recordLiText" id="siteManagement">站点配置</span> 387 <span class="recordLiText" id="siteManagement">站点配置</span>
388 </li> 388 </li>
389 - <li class="recordLi" data="7"> 389 + <li class="recordLi" data="7" style="display: none;">
390 <label for="reportManagement" class="iconfont">&#xe6a2;</label> 390 <label for="reportManagement" class="iconfont">&#xe6a2;</label>
391 <span class="recordLiText" id="reportManagement">统计报告</span> 391 <span class="recordLiText" id="reportManagement">统计报告</span>
392 </li> 392 </li>
393 - <li class="recordLi" data="8"> 393 + <li class="recordLi" data="8" style="display: none;">
394 <label for="personManagement" class="iconfont">&#xe6a1;</label> 394 <label for="personManagement" class="iconfont">&#xe6a1;</label>
395 <span class="recordLiText" id="personManagement">个人设置</span> 395 <span class="recordLiText" id="personManagement">个人设置</span>
396 </li> 396 </li>
@@ -401,8 +401,8 @@ @@ -401,8 +401,8 @@
401 <div class="classManagementRightTitle" id="classManagementRightTitle0"> 401 <div class="classManagementRightTitle" id="classManagementRightTitle0">
402 <ul class="liveInfoLeft" id="liveInfoList0"> 402 <ul class="liveInfoLeft" id="liveInfoList0">
403 <li class="liveInfoLeftLi liveInfoLeftLiCheck" data="1">正在直播</li> 403 <li class="liveInfoLeftLi liveInfoLeftLiCheck" data="1">正在直播</li>
404 - <li class="liveInfoLeftLi" data="0">未开始</li>  
405 - <li class="liveInfoLeftLi" data="2">已结束</li> 404 + <li class="liveInfoLeftLi" data="2">未开始</li>
  405 + <li class="liveInfoLeftLi" data="4">已结束</li>
406 </ul> 406 </ul>
407 <div class="liveInfoRight" id="liveInfoRight0"> 407 <div class="liveInfoRight" id="liveInfoRight0">
408 <input class="liveInfoRightInput" id="liveInfoRightInput0" type="text"> 408 <input class="liveInfoRightInput" id="liveInfoRightInput0" type="text">
@@ -415,39 +415,105 @@ @@ -415,39 +415,105 @@
415 <div class="liveInfoCenterLiveCase liveInfoCenterLiveEnd" id="liveInfoCenterLiveEnd0"></div> 415 <div class="liveInfoCenterLiveCase liveInfoCenterLiveEnd" id="liveInfoCenterLiveEnd0"></div>
416 </div> 416 </div>
417 </div> 417 </div>
418 - <div class="classManagementRightContent classManagementRightContent0" id="courseContent0">  
419 - </div>  
420 - <div class="classHandlerPageBox" id="classHandlerPageBox0">  
421 - <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">  
422 - <tbody>  
423 - <tr>  
424 - <td height="60" colspan="11" class="tr_bottom" style="">  
425 - <span class="classHandlerPageMsg" id="classHandlerPageMsg0" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>  
426 - <ul class="classHandlerPageInfoBox">  
427 - <li class="classHandlerPageInfo">  
428 - <span class="classHandlerHomePage" id="classHandlerHomePage0">首页</span>  
429 - </li>  
430 - <li class="classHandlerPageInfo">  
431 - <span class="classHandlerUpPage" id="classHandlerUpPage0">上一页</span>  
432 - </li>  
433 - <li class="classHandlerPageInfo">  
434 - <span class="classHandlerDownPage" id="classHandlerDownPage0">下一页</span>  
435 - </li>  
436 - <li class="classHandlerPageInfo">  
437 - <span class="classHandlerEndPage" id="classHandlerEndPage0">尾页</span>  
438 - </li>  
439 - <li class="classHandlerPageInfo">  
440 - <input id="classHandlerPageInfoInput0" class="classHandlerPageInfoInput" type="text">  
441 - </li>  
442 - <li class="classHandlerPageInfo classHandlerPageInfoCheck">  
443 - <span id="classHandlerSpecificPage0">GO</span>  
444 - </li>  
445 - </ul>  
446 - </td>  
447 - </tr>  
448 - </tbody>  
449 - </table> 418 + <div class="classManagementRightContent classManagementRightContent0">
  419 + <div id="courseContent0" class="courseContent0"></div>
  420 + <div id="classHandlerPageBox0">
  421 + <div class="classHandlerPageBox" id="classHandlerPageBox0_0">
  422 + <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
  423 + <tbody>
  424 + <tr>
  425 + <td height="60" colspan="11" class="tr_bottom" style="">
  426 + <span class="classHandlerPageMsg" id="classHandlerPageMsg0_0" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
  427 + <ul class="classHandlerPageInfoBox">
  428 + <li class="classHandlerPageInfo">
  429 + <span class="classHandlerHomePage" id="classHandlerHomePage0_0">首页</span>
  430 + </li>
  431 + <li class="classHandlerPageInfo">
  432 + <span class="classHandlerUpPage" id="classHandlerUpPage0_0">上一页</span>
  433 + </li>
  434 + <li class="classHandlerPageInfo">
  435 + <span class="classHandlerDownPage" id="classHandlerDownPage0_0">下一页</span>
  436 + </li>
  437 + <li class="classHandlerPageInfo">
  438 + <span class="classHandlerEndPage" id="classHandlerEndPage0_0">尾页</span>
  439 + </li>
  440 + <li class="classHandlerPageInfo">
  441 + <input id="classHandlerPageInfoInput0_0" class="classHandlerPageInfoInput" type="text">
  442 + </li>
  443 + <li class="classHandlerPageInfo classHandlerPageInfoCheck">
  444 + <span id="classHandlerSpecificPage0_0">GO</span>
  445 + </li>
  446 + </ul>
  447 + </td>
  448 + </tr>
  449 + </tbody>
  450 + </table>
  451 + </div>
  452 + <div class="classHandlerPageBox" id="classHandlerPageBox0_1">
  453 + <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
  454 + <tbody>
  455 + <tr>
  456 + <td height="60" colspan="11" class="tr_bottom" style="">
  457 + <span class="classHandlerPageMsg" id="classHandlerPageMsg0_1" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
  458 + <ul class="classHandlerPageInfoBox">
  459 + <li class="classHandlerPageInfo">
  460 + <span class="classHandlerHomePage" id="classHandlerHomePage0_1">首页</span>
  461 + </li>
  462 + <li class="classHandlerPageInfo">
  463 + <span class="classHandlerUpPage" id="classHandlerUpPage0_1">上一页</span>
  464 + </li>
  465 + <li class="classHandlerPageInfo">
  466 + <span class="classHandlerDownPage" id="classHandlerDownPage0_1">下一页</span>
  467 + </li>
  468 + <li class="classHandlerPageInfo">
  469 + <span class="classHandlerEndPage" id="classHandlerEndPage0_1">尾页</span>
  470 + </li>
  471 + <li class="classHandlerPageInfo">
  472 + <input id="classHandlerPageInfoInput0_1" class="classHandlerPageInfoInput" type="text">
  473 + </li>
  474 + <li class="classHandlerPageInfo classHandlerPageInfoCheck">
  475 + <span id="classHandlerSpecificPage0_1">GO</span>
  476 + </li>
  477 + </ul>
  478 + </td>
  479 + </tr>
  480 + </tbody>
  481 + </table>
  482 + </div>
  483 + <div class="classHandlerPageBox" id="classHandlerPageBox0_2">
  484 + <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
  485 + <tbody>
  486 + <tr>
  487 + <td height="60" colspan="11" class="tr_bottom" style="">
  488 + <span class="classHandlerPageMsg" id="classHandlerPageMsg0_2" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
  489 + <ul class="classHandlerPageInfoBox">
  490 + <li class="classHandlerPageInfo">
  491 + <span class="classHandlerHomePage" id="classHandlerHomePage0_2">首页</span>
  492 + </li>
  493 + <li class="classHandlerPageInfo">
  494 + <span class="classHandlerUpPage" id="classHandlerUpPage0_2">上一页</span>
  495 + </li>
  496 + <li class="classHandlerPageInfo">
  497 + <span class="classHandlerDownPage" id="classHandlerDownPage0_2">下一页</span>
  498 + </li>
  499 + <li class="classHandlerPageInfo">
  500 + <span class="classHandlerEndPage" id="classHandlerEndPage0_2">尾页</span>
  501 + </li>
  502 + <li class="classHandlerPageInfo">
  503 + <input id="classHandlerPageInfoInput0_2" class="classHandlerPageInfoInput" type="text">
  504 + </li>
  505 + <li class="classHandlerPageInfo classHandlerPageInfoCheck">
  506 + <span id="classHandlerSpecificPage0_2">GO</span>
  507 + </li>
  508 + </ul>
  509 + </td>
  510 + </tr>
  511 + </tbody>
  512 + </table>
  513 + </div>
  514 + </div>
450 </div> 515 </div>
  516 +
451 </div> 517 </div>
452 <div class="classManagementRight" id="classManagementRight2"> 518 <div class="classManagementRight" id="classManagementRight2">
453 <div class="addUserBtn" id="addClassBtn"> 519 <div class="addUserBtn" id="addClassBtn">
@@ -1406,36 +1472,100 @@ @@ -1406,36 +1472,100 @@
1406 <div class="myCenterContentList" id="teacherMyCenterContentList"> 1472 <div class="myCenterContentList" id="teacherMyCenterContentList">
1407 <div class="myCenterTopRightContent">&nbsp;&nbsp;暂无课程!</div> 1473 <div class="myCenterTopRightContent">&nbsp;&nbsp;暂无课程!</div>
1408 </div> 1474 </div>
1409 - <div class="classHandlerPageBox" id="teacherMyCerterPageBox">  
1410 - <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">  
1411 - <tbody>  
1412 - <tr>  
1413 - <td height="60" colspan="11" class="tr_bottom" style="">  
1414 - <span class="classHandlerPageMsg" id="teacherMyCerterPageMsg" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>  
1415 - <ul class="classHandlerPageInfoBox">  
1416 - <li class="classHandlerPageInfo">  
1417 - <span class="classHandlerHomePage" id="teacherMyCerterHomePage">首页</span>  
1418 - </li>  
1419 - <li class="classHandlerPageInfo">  
1420 - <span class="classHandlerUpPage" id="teacherMyCerterUpPage">上一页</span>  
1421 - </li>  
1422 - <li class="classHandlerPageInfo">  
1423 - <span class="classHandlerDownPage" id="teacherMyCerterDownPage">下一页</span>  
1424 - </li>  
1425 - <li class="classHandlerPageInfo">  
1426 - <span class="classHandlerEndPage" id="teacherMyCerterEndPage">尾页</span>  
1427 - </li>  
1428 - <li class="classHandlerPageInfo">  
1429 - <input id="teacherMyCerterPageInfoInput" class="classHandlerPageInfoInput" type="text">  
1430 - </li>  
1431 - <li class="classHandlerPageInfo classHandlerPageInfoCheck">  
1432 - <span id="teacherMyCerterSpecificPage">GO</span>  
1433 - </li>  
1434 - </ul>  
1435 - </td>  
1436 - </tr>  
1437 - </tbody>  
1438 - </table> 1475 + <div class="teacherMyCerterPageBox" id="teacherMyCerterPage">
  1476 + <div class="classHandlerPageBox" id="teacherMyCerterPageBox0">
  1477 + <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
  1478 + <tbody>
  1479 + <tr>
  1480 + <td height="60" colspan="11" class="tr_bottom" style="">
  1481 + <span class="classHandlerPageMsg" id="teacherMyCerterPageMsg0" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
  1482 + <ul class="classHandlerPageInfoBox">
  1483 + <li class="classHandlerPageInfo">
  1484 + <span class="classHandlerHomePage" id="teacherMyCerterHomePage0">首页</span>
  1485 + </li>
  1486 + <li class="classHandlerPageInfo">
  1487 + <span class="classHandlerUpPage" id="teacherMyCerterUpPage0">上一页</span>
  1488 + </li>
  1489 + <li class="classHandlerPageInfo">
  1490 + <span class="classHandlerDownPage" id="teacherMyCerterDownPage0">下一页</span>
  1491 + </li>
  1492 + <li class="classHandlerPageInfo">
  1493 + <span class="classHandlerEndPage" id="teacherMyCerterEndPage0">尾页</span>
  1494 + </li>
  1495 + <li class="classHandlerPageInfo">
  1496 + <input id="teacherMyCerterPageInfoInput0" class="classHandlerPageInfoInput" type="text">
  1497 + </li>
  1498 + <li class="classHandlerPageInfo classHandlerPageInfoCheck">
  1499 + <span id="teacherMyCerterSpecificPage0">GO</span>
  1500 + </li>
  1501 + </ul>
  1502 + </td>
  1503 + </tr>
  1504 + </tbody>
  1505 + </table>
  1506 + </div>
  1507 + <div class="classHandlerPageBox" id="teacherMyCerterPageBox1">
  1508 + <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
  1509 + <tbody>
  1510 + <tr>
  1511 + <td height="60" colspan="11" class="tr_bottom" style="">
  1512 + <span class="classHandlerPageMsg" id="teacherMyCerterPageMsg1" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
  1513 + <ul class="classHandlerPageInfoBox">
  1514 + <li class="classHandlerPageInfo">
  1515 + <span class="classHandlerHomePage" id="teacherMyCerterHomePage1">首页</span>
  1516 + </li>
  1517 + <li class="classHandlerPageInfo">
  1518 + <span class="classHandlerUpPage" id="teacherMyCerterUpPage1">上一页</span>
  1519 + </li>
  1520 + <li class="classHandlerPageInfo">
  1521 + <span class="classHandlerDownPage" id="teacherMyCerterDownPage1">下一页</span>
  1522 + </li>
  1523 + <li class="classHandlerPageInfo">
  1524 + <span class="classHandlerEndPage" id="teacherMyCerterEndPage1">尾页</span>
  1525 + </li>
  1526 + <li class="classHandlerPageInfo">
  1527 + <input id="teacherMyCerterPageInfoInput1" class="classHandlerPageInfoInput" type="text">
  1528 + </li>
  1529 + <li class="classHandlerPageInfo classHandlerPageInfoCheck">
  1530 + <span id="teacherMyCerterSpecificPage1">GO</span>
  1531 + </li>
  1532 + </ul>
  1533 + </td>
  1534 + </tr>
  1535 + </tbody>
  1536 + </table>
  1537 + </div>
  1538 + <div class="classHandlerPageBox" id="teacherMyCerterPageBox2">
  1539 + <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
  1540 + <tbody>
  1541 + <tr>
  1542 + <td height="60" colspan="11" class="tr_bottom" style="">
  1543 + <span class="classHandlerPageMsg" id="teacherMyCerterPageMsg2" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
  1544 + <ul class="classHandlerPageInfoBox">
  1545 + <li class="classHandlerPageInfo">
  1546 + <span class="classHandlerHomePage" id="teacherMyCerterHomePage2">首页</span>
  1547 + </li>
  1548 + <li class="classHandlerPageInfo">
  1549 + <span class="classHandlerUpPage" id="teacherMyCerterUpPage2">上一页</span>
  1550 + </li>
  1551 + <li class="classHandlerPageInfo">
  1552 + <span class="classHandlerDownPage" id="teacherMyCerterDownPage2">下一页</span>
  1553 + </li>
  1554 + <li class="classHandlerPageInfo">
  1555 + <span class="classHandlerEndPage" id="teacherMyCerterEndPage2">尾页</span>
  1556 + </li>
  1557 + <li class="classHandlerPageInfo">
  1558 + <input id="teacherMyCerterPageInfoInput2" class="classHandlerPageInfoInput" type="text">
  1559 + </li>
  1560 + <li class="classHandlerPageInfo classHandlerPageInfoCheck">
  1561 + <span id="teacherMyCerterSpecificPage2">GO</span>
  1562 + </li>
  1563 + </ul>
  1564 + </td>
  1565 + </tr>
  1566 + </tbody>
  1567 + </table>
  1568 + </div>
1439 </div> 1569 </div>
1440 </div> 1570 </div>
1441 <div class="studentMyCerter" id="studentMyCerter"> 1571 <div class="studentMyCerter" id="studentMyCerter">
@@ -1460,45 +1590,110 @@ @@ -1460,45 +1590,110 @@
1460 <li class="liveInfoLeftLi" data="2">收藏</li> 1590 <li class="liveInfoLeftLi" data="2">收藏</li>
1461 </ul> 1591 </ul>
1462 <ul class="liveInfoLeft" id="teacherLiveList"> 1592 <ul class="liveInfoLeft" id="teacherLiveList">
1463 - <li class="liveInfoLeftLi liveInfoLeftLiCheck" data="0">正在直播</li>  
1464 - <li class="liveInfoLeftLi" data="1">未开始</li> 1593 + <li class="liveInfoLeftLi liveInfoLeftLiCheck" data="1">正在直播</li>
  1594 + <li class="liveInfoLeftLi" data="2">未开始</li>
1465 <li class="liveInfoLeftLi" data="4">已结束</li> 1595 <li class="liveInfoLeftLi" data="4">已结束</li>
1466 </ul> 1596 </ul>
1467 </div> 1597 </div>
1468 <div class="courseMinuteList" id="courseMinuteList"> 1598 <div class="courseMinuteList" id="courseMinuteList">
1469 1599
1470 </div> 1600 </div>
1471 - <div class="classHandlerPageBox" id="courseMinutePageBox">  
1472 - <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">  
1473 - <tbody>  
1474 - <tr>  
1475 - <td height="60" colspan="11" class="tr_bottom" style="">  
1476 - <span class="classHandlerPageMsg" id="courseMinutePageMsg" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>  
1477 - <ul class="classHandlerPageInfoBox">  
1478 - <li class="classHandlerPageInfo">  
1479 - <span class="classHandlerHomePage" id="courseMinuteHomePage">首页</span>  
1480 - </li>  
1481 - <li class="classHandlerPageInfo">  
1482 - <span class="classHandlerUpPage" id="courseMinuteUpPage">上一页</span>  
1483 - </li>  
1484 - <li class="classHandlerPageInfo">  
1485 - <span class="classHandlerDownPage" id="courseMinuteDownPage">下一页</span>  
1486 - </li>  
1487 - <li class="classHandlerPageInfo">  
1488 - <span class="classHandlerEndPage" id="courseMinuteEndPage">尾页</span>  
1489 - </li>  
1490 - <li class="classHandlerPageInfo">  
1491 - <input id="courseMinutePageInfoInput" class="classHandlerPageInfoInput" type="text">  
1492 - </li>  
1493 - <li class="classHandlerPageInfo classHandlerPageInfoCheck">  
1494 - <span id="courseMinuteSpecificPage">GO</span>  
1495 - </li>  
1496 - </ul>  
1497 - </td>  
1498 - </tr>  
1499 - </tbody>  
1500 - </table> 1601 + <div class="teacherMyCerterPageBox" id="courseMinutePage">
  1602 + <div class="classHandlerPageBox" id="courseMinutePageBox0">
  1603 + <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
  1604 + <tbody>
  1605 + <tr>
  1606 + <td height="60" colspan="11" class="tr_bottom" style="">
  1607 + <span class="classHandlerPageMsg" id="courseMinutePageMsg0" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
  1608 + <ul class="classHandlerPageInfoBox">
  1609 + <li class="classHandlerPageInfo">
  1610 + <span class="classHandlerHomePage" id="courseMinuteHomePage0">首页</span>
  1611 + </li>
  1612 + <li class="classHandlerPageInfo">
  1613 + <span class="classHandlerUpPage" id="courseMinuteUpPage0">上一页</span>
  1614 + </li>
  1615 + <li class="classHandlerPageInfo">
  1616 + <span class="classHandlerDownPage" id="courseMinuteDownPage0">下一页</span>
  1617 + </li>
  1618 + <li class="classHandlerPageInfo">
  1619 + <span class="classHandlerEndPage" id="courseMinuteEndPage0">尾页</span>
  1620 + </li>
  1621 + <li class="classHandlerPageInfo">
  1622 + <input id="courseMinutePageInfoInput0" class="classHandlerPageInfoInput" type="text">
  1623 + </li>
  1624 + <li class="classHandlerPageInfo classHandlerPageInfoCheck">
  1625 + <span id="courseMinuteSpecificPage0">GO</span>
  1626 + </li>
  1627 + </ul>
  1628 + </td>
  1629 + </tr>
  1630 + </tbody>
  1631 + </table>
  1632 + </div>
  1633 + <div class="classHandlerPageBox" id="courseMinutePageBox1">
  1634 + <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
  1635 + <tbody>
  1636 + <tr>
  1637 + <td height="60" colspan="11" class="tr_bottom" style="">
  1638 + <span class="classHandlerPageMsg" id="courseMinutePageMsg1" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
  1639 + <ul class="classHandlerPageInfoBox">
  1640 + <li class="classHandlerPageInfo">
  1641 + <span class="classHandlerHomePage" id="courseMinuteHomePage1">首页</span>
  1642 + </li>
  1643 + <li class="classHandlerPageInfo">
  1644 + <span class="classHandlerUpPage" id="courseMinuteUpPage1">上一页</span>
  1645 + </li>
  1646 + <li class="classHandlerPageInfo">
  1647 + <span class="classHandlerDownPage" id="courseMinuteDownPage1">下一页</span>
  1648 + </li>
  1649 + <li class="classHandlerPageInfo">
  1650 + <span class="classHandlerEndPage" id="courseMinuteEndPage1">尾页</span>
  1651 + </li>
  1652 + <li class="classHandlerPageInfo">
  1653 + <input id="courseMinutePageInfoInput1" class="classHandlerPageInfoInput" type="text">
  1654 + </li>
  1655 + <li class="classHandlerPageInfo classHandlerPageInfoCheck">
  1656 + <span id="courseMinuteSpecificPage1">GO</span>
  1657 + </li>
  1658 + </ul>
  1659 + </td>
  1660 + </tr>
  1661 + </tbody>
  1662 + </table>
  1663 + </div>
  1664 + <div class="classHandlerPageBox" id="courseMinutePageBox2">
  1665 + <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
  1666 + <tbody>
  1667 + <tr>
  1668 + <td height="60" colspan="11" class="tr_bottom" style="">
  1669 + <span class="classHandlerPageMsg" id="courseMinutePageMsg2" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
  1670 + <ul class="classHandlerPageInfoBox">
  1671 + <li class="classHandlerPageInfo">
  1672 + <span class="classHandlerHomePage" id="courseMinuteHomePage2">首页</span>
  1673 + </li>
  1674 + <li class="classHandlerPageInfo">
  1675 + <span class="classHandlerUpPage" id="courseMinuteUpPage2">上一页</span>
  1676 + </li>
  1677 + <li class="classHandlerPageInfo">
  1678 + <span class="classHandlerDownPage" id="courseMinuteDownPage2">下一页</span>
  1679 + </li>
  1680 + <li class="classHandlerPageInfo">
  1681 + <span class="classHandlerEndPage" id="courseMinuteEndPage2">尾页</span>
  1682 + </li>
  1683 + <li class="classHandlerPageInfo">
  1684 + <input id="courseMinutePageInfoInput2" class="classHandlerPageInfoInput" type="text">
  1685 + </li>
  1686 + <li class="classHandlerPageInfo classHandlerPageInfoCheck">
  1687 + <span id="courseMinuteSpecificPage2">GO</span>
  1688 + </li>
  1689 + </ul>
  1690 + </td>
  1691 + </tr>
  1692 + </tbody>
  1693 + </table>
  1694 + </div>
1501 </div> 1695 </div>
  1696 +
1502 </div> 1697 </div>
1503 <!--我的预约--> 1698 <!--我的预约-->
1504 <div class="myCenterContentBox"> 1699 <div class="myCenterContentBox">
@@ -1566,9 +1761,12 @@ @@ -1566,9 +1761,12 @@
1566 <li class="oneselfInfoList oneselfInfoList1"> 1761 <li class="oneselfInfoList oneselfInfoList1">
1567 <label class="oneselfInfoHeader">头像</label> 1762 <label class="oneselfInfoHeader">头像</label>
1568 <img src="images/u293.png" alt="" class="personagePortraitImg" id="personagePortrait"> 1763 <img src="images/u293.png" alt="" class="personagePortraitImg" id="personagePortrait">
1569 - <form id="personagePhotoForm">  
1570 - <input class="personagePhoto" id="personagePortraitBtn" type="file" name="file"/>  
1571 - </form> 1764 + <label for="personagePortrait">
  1765 + <form id="personagePhotoForm">
  1766 + <input class="personagePhoto" id="personagePortraitBtn" type="file" name="file"/>
  1767 + </form>
  1768 + </label>
  1769 +
1572 </li> 1770 </li>
1573 <li class="oneselfInfoList"> 1771 <li class="oneselfInfoList">
1574 <label class="oneselfInfoHeader">登录名</label> 1772 <label class="oneselfInfoHeader">登录名</label>
@@ -26,11 +26,14 @@ class CollectApe extends Ape { @@ -26,11 +26,14 @@ class CollectApe extends Ape {
26 26
27 } 27 }
28 _collectNoHandler(evt){ 28 _collectNoHandler(evt){
  29 + if(ClassDataProxy.userType == 0){
  30 + this.toLogin();
  31 + return;
  32 + }
29 let that = this; 33 let that = this;
30 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/addStudentMeeting'; 34 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/addStudentMeeting';
31 let status = $(evt.currentTarget).attr('data'); 35 let status = $(evt.currentTarget).attr('data');
32 let id = $('#lanclassBox').attr('data'); 36 let id = $('#lanclassBox').attr('data');
33 - loger.log('收藏数据信息',status,id)  
34 let data = {siteId:ClassDataProxy.siteId, 37 let data = {siteId:ClassDataProxy.siteId,
35 "studentId":ClassDataProxy.id, 38 "studentId":ClassDataProxy.id,
36 "status":parseInt(status), 39 "status":parseInt(status),
@@ -42,7 +45,10 @@ class CollectApe extends Ape { @@ -42,7 +45,10 @@ class CollectApe extends Ape {
42 ClassDataProxy.getMarginTopHandler($('#warnHintBox')); 45 ClassDataProxy.getMarginTopHandler($('#warnHintBox'));
43 ErrorApe.showWarnError('收藏成功'); 46 ErrorApe.showWarnError('收藏成功');
44 loger.log('收藏数据信息',_data) 47 loger.log('收藏数据信息',_data)
45 - } 48 + }/*else{
  49 + ClassDataProxy.getMarginTopHandler($('#warnHintBox'));//
  50 + ErrorApe.showWarnError('您已收藏这堂课');
  51 + }*/
46 52
47 }) 53 })
48 } 54 }
@@ -113,6 +119,10 @@ class CollectApe extends Ape { @@ -113,6 +119,10 @@ class CollectApe extends Ape {
113 $('#collectYes ').show(); 119 $('#collectYes ').show();
114 $('#collectNo ').hide(); 120 $('#collectNo ').hide();
115 } 121 }
  122 + toLogin(){
  123 + ClassDataProxy.getMarginTopHandler($('#userLogin'));
  124 + $('#userLoginBox').show();
  125 + }
116 //工具类 126 //工具类
117 _format(str, obj) { 127 _format(str, obj) {
118 return str.replace(/\{(\w+)\}/g, function (match, group, index) { 128 return str.replace(/\{(\w+)\}/g, function (match, group, index) {
@@ -130,7 +130,8 @@ class CreateGradeApe extends Ape { @@ -130,7 +130,8 @@ class CreateGradeApe extends Ape {
130 //获取课堂数据 130 //获取课堂数据
131 if(_data && _data.code == 200){ 131 if(_data && _data.code == 200){
132 //loger.log(_data,'班级界面用户列表数据') 132 //loger.log(_data,'班级界面用户列表数据')
133 - that._gainUserClassData(_data.returnData.data); 133 + // that._gainUserClassData(_data.returnData.data);
  134 + that._gainUserClassDataErr();
134 } 135 }
135 }, 136 },
136 error:function(error){ 137 error:function(error){
@@ -152,9 +153,9 @@ class CreateGradeApe extends Ape { @@ -152,9 +153,9 @@ class CreateGradeApe extends Ape {
152 $('#classHandlerPageMsg2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录'); 153 $('#classHandlerPageMsg2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
153 courseContent.append(adminListTit); 154 courseContent.append(adminListTit);
154 if(_dataList){ 155 if(_dataList){
155 - if(count <= 7){ 156 + // if(count <= 7){
156 $('#classHandlerPageBox2').hide(); 157 $('#classHandlerPageBox2').hide();
157 - } 158 + // }
158 for(let i = 0;i<_dataList.length;i++){ 159 for(let i = 0;i<_dataList.length;i++){
159 let _adminList = this._format(adminList,{ 160 let _adminList = this._format(adminList,{
160 _loginName : _dataList[i].loginName, 161 _loginName : _dataList[i].loginName,
@@ -175,6 +176,7 @@ class CreateGradeApe extends Ape { @@ -175,6 +176,7 @@ class CreateGradeApe extends Ape {
175 let courseContent = $('#courseContent2'); 176 let courseContent = $('#courseContent2');
176 courseContent.empty(); 177 courseContent.empty();
177 courseContent.append(adminListTit); 178 courseContent.append(adminListTit);
  179 + $('#classHandlerPageBox2').hide();
178 let _adminList = '<tr align="center" bgcolor="#FFFFFF" height="44" bordercolor="#e6e6e6">' + 180 let _adminList = '<tr align="center" bgcolor="#FFFFFF" height="44" bordercolor="#e6e6e6">' +
179 '<td class="tr_main tr_mainNone">' + 181 '<td class="tr_main tr_mainNone">' +
180 '该课堂暂无班级数据~'+ 182 '该课堂暂无班级数据~'+
@@ -75,7 +75,7 @@ class ListDetailsApe extends Ape { @@ -75,7 +75,7 @@ class ListDetailsApe extends Ape {
75 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting'; 75 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
76 this.detailPage(_url,data,function(_data){ 76 this.detailPage(_url,data,function(_data){
77 if(_data){ 77 if(_data){
78 - loger.log('detailPage',_data) 78 + // loger.log('detailPage',_data)
79 that._gainClassData(_data.returnData.data); 79 that._gainClassData(_data.returnData.data);
80 } 80 }
81 }) 81 })
@@ -91,6 +91,7 @@ class ListDetailsApe extends Ape { @@ -91,6 +91,7 @@ class ListDetailsApe extends Ape {
91 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting'; 91 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
92 this.detailPage(_url,data,function(_data){ 92 this.detailPage(_url,data,function(_data){
93 if(_data){ 93 if(_data){
  94 + // loger.log('detailPage',_data)
94 that._gainClassData(_data.returnData.data); 95 that._gainClassData(_data.returnData.data);
95 } 96 }
96 }) 97 })
@@ -105,10 +106,12 @@ class ListDetailsApe extends Ape { @@ -105,10 +106,12 @@ class ListDetailsApe extends Ape {
105 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting'; 106 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
106 this.detailPage(_url,data,function(_data){ 107 this.detailPage(_url,data,function(_data){
107 if(_data){ 108 if(_data){
  109 + // loger.log('detailPage',_data)
108 that._gainClassData(_data.returnData.data); 110 that._gainClassData(_data.returnData.data);
109 } 111 }
110 }) 112 })
111 } 113 }
  114 + //收藏
112 collectInfoDetail(_id){ 115 collectInfoDetail(_id){
113 let that = this; 116 let that = this;
114 let data = { 117 let data = {
@@ -121,10 +124,8 @@ class ListDetailsApe extends Ape { @@ -121,10 +124,8 @@ class ListDetailsApe extends Ape {
121 if(_data && _data.code == 200){ 124 if(_data && _data.code == 200){
122 let _dataList = _data.returnData.data; 125 let _dataList = _data.returnData.data;
123 if(_dataList && _dataList.length > 0 ){ 126 if(_dataList && _dataList.length > 0 ){
124 - loger.log('收藏',_data)  
125 that._collectNoClick(); 127 that._collectNoClick();
126 }else{ 128 }else{
127 - loger.log('未收藏')  
128 that._collectYesClick(); 129 that._collectYesClick();
129 } 130 }
130 } 131 }
@@ -71,13 +71,25 @@ class ManagementHomePageApe extends Ape { @@ -71,13 +71,25 @@ class ManagementHomePageApe extends Ape {
71 init() { 71 init() {
72 $('#liveInfoList0 li').on('click',this._liveInfoLeftLiHandler.bind(this));//首页 72 $('#liveInfoList0 li').on('click',this._liveInfoLeftLiHandler.bind(this));//首页
73 73
74 - $('#classHandlerHomePage0').on('click',this._homePageHandler.bind(this));//首页  
75 - $('#classHandlerUpPage0').on('click',this._upPageHandler.bind(this));//上页  
76 - $('#classHandlerDownPage0').on('click',this._downPageHandler.bind(this));//下页  
77 - $('#classHandlerEndPage0').on('click',this._endPageHandler.bind(this));//尾页  
78 - $('#classHandlerSpecificPage0').on('click',this._assignPageHandler.bind(this));//指定页 74 + $('#classHandlerHomePage0_0').on('click',this._homePageHandler.bind(this));//首页
  75 + $('#classHandlerUpPage0_0').on('click',this._upPageHandler.bind(this));//上页
  76 + $('#classHandlerDownPage0_0').on('click',this._downPageHandler.bind(this));//下页
  77 + $('#classHandlerEndPage0_0').on('click',this._endPageHandler.bind(this));//尾页
  78 + $('#classHandlerSpecificPage0_0').on('click',this._assignPageHandler.bind(this));//指定页
79 79
80 - // $('#courseContent0').on('click','.deleteClass',this._deleteClass.bind(this));//删除课堂 80 + $('#classHandlerHomePage0_1').on('click',this._homePageHandler.bind(this));//首页
  81 + $('#classHandlerUpPage0_1').on('click',this._upPageHandler.bind(this));//上页
  82 + $('#classHandlerDownPage0_1').on('click',this._downPageHandler.bind(this));//下页
  83 + $('#classHandlerEndPage0_1').on('click',this._endPageHandler.bind(this));//尾页
  84 + $('#classHandlerSpecificPage0_1').on('click',this._assignPageHandler.bind(this));//指定页
  85 +
  86 + $('#classHandlerHomePage0_2').on('click',this._homePageHandler.bind(this));//首页
  87 + $('#classHandlerUpPage0_2').on('click',this._upPageHandler.bind(this));//上页
  88 + $('#classHandlerDownPage0_2').on('click',this._downPageHandler.bind(this));//下页
  89 + $('#classHandlerEndPage0_2').on('click',this._endPageHandler.bind(this));//尾页
  90 + $('#classHandlerSpecificPage0_2').on('click',this._assignPageHandler.bind(this));//指定页
  91 +
  92 + $('#courseContent0').on('click','.deleteClass',this._deleteClass.bind(this));//删除课堂
81 $('#courseContent0').on('click','.joinClass',this._joinClass.bind(this));//加入课堂 93 $('#courseContent0').on('click','.joinClass',this._joinClass.bind(this));//加入课堂
82 94
83 $('#courseContent0').on('click','.updatacover',this._updatacover.bind(this));//上传课堂封面 95 $('#courseContent0').on('click','.updatacover',this._updatacover.bind(this));//上传课堂封面
@@ -93,38 +105,274 @@ class ManagementHomePageApe extends Ape { @@ -93,38 +105,274 @@ class ManagementHomePageApe extends Ape {
93 105
94 } 106 }
95 //首页 107 //首页
96 - _createClassHomePage(){  
97 - this.detailPage(1);  
98 - }  
99 - //首页  
100 _homePageHandler(){ 108 _homePageHandler(){
101 this.presentInd = 1; 109 this.presentInd = 1;
102 - this.detailPage(this.presentInd); 110 + let ind = $('#classHandlerPageBox0').attr('data');
  111 + switch (parseInt(ind)){
  112 + case 1:
  113 + this._adminLiveModule(this.presentInd);
  114 + break;
  115 + case 2:
  116 + this._adminNoneLiveModule(this.presentInd);
  117 + break;
  118 + case 4:
  119 + this._adminEndLiveModule(this.presentInd);
  120 + break;
  121 + default:
  122 + return;
  123 + }
103 } 124 }
104 //上页 125 //上页
105 _upPageHandler(){ 126 _upPageHandler(){
106 if(this.presentInd > 1){ 127 if(this.presentInd > 1){
107 this.presentInd--; 128 this.presentInd--;
108 - this.detailPage(this.presentInd); 129 + let ind = $('#classHandlerPageBox0').attr('data');
  130 + switch (parseInt(ind)){
  131 + case 1:
  132 + this._adminLiveModule(this.presentInd);
  133 + break;
  134 + case 2:
  135 + this._adminNoneLiveModule(this.presentInd);
  136 + break;
  137 + case 4:
  138 + this._adminEndLiveModule(this.presentInd);
  139 + break;
  140 + default:
  141 + return;
  142 + }
109 } 143 }
110 } 144 }
111 //下页 145 //下页
112 _downPageHandler(){ 146 _downPageHandler(){
113 if(this.presentInd < this.pageNo){ 147 if(this.presentInd < this.pageNo){
114 this.presentInd++; 148 this.presentInd++;
115 - this.detailPage(this.presentInd); 149 + let ind = $('#classHandlerPageBox0').attr('data');
  150 + switch (parseInt(ind)){
  151 + case 1:
  152 + this._adminLiveModule(this.presentInd);
  153 + break;
  154 + case 2:
  155 + this._adminNoneLiveModule(this.presentInd);
  156 + break;
  157 + case 4:
  158 + this._adminEndLiveModule(this.presentInd);
  159 + break;
  160 + default:
  161 + return;
  162 + }
116 } 163 }
117 } 164 }
118 //尾页 165 //尾页
119 _endPageHandler(){ 166 _endPageHandler(){
120 this.presentInd = this.pageNo; 167 this.presentInd = this.pageNo;
121 - this.detailPage(this.presentInd); 168 + let ind = $('#classHandlerPageBox0').attr('data');
  169 + switch (parseInt(ind)){
  170 + case 1:
  171 + this._adminLiveModule(this.presentInd);
  172 + break;
  173 + case 2:
  174 + this._adminNoneLiveModule(this.presentInd);
  175 + break;
  176 + case 4:
  177 + this._adminEndLiveModule(this.presentInd);
  178 + break;
  179 + default:
  180 + return;
  181 + }
122 } 182 }
123 //指定页 183 //指定页
124 _assignPageHandler(){ 184 _assignPageHandler(){
125 - let inputVal = $('#classHandlerPageInfoInput').val();  
126 - if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){  
127 - this.detailPage(parseInt(inputVal)); 185 + let val;
  186 + let ind = $('#classHandlerPageBox0').attr('data');
  187 + let card = $('#liveInfoList0 .liveInfoLeftLiCheck').index();
  188 + let inputVal = $('#classHandlerPageInfoInput0_'+card).val();
  189 + if(parseInt(inputVal) > this.pageNo ){
  190 + val = this.pageNo;
  191 + }else if(parseInt(inputVal) < 1){
  192 + val = 1;
  193 + }else{
  194 + val = parseInt(inputVal)
  195 + }
  196 + switch (parseInt(ind)){
  197 + case 1:
  198 + this._adminLiveModule(val);
  199 + break;
  200 + case 2:
  201 + this._adminNoneLiveModule(val);
  202 + break;
  203 + case 4:
  204 + this._adminEndLiveModule(val);
  205 + break;
  206 + default:
  207 + return;
  208 + }
  209 +
  210 + $('#classHandlerPageInfoInput0_'+card).val('')
  211 + }
  212 + _adminInfo(data,num,ind,callback){
  213 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
  214 + let that = this;
  215 + $.ajax({
  216 + type: "POST",
  217 + url: _url,
  218 + timeout:5000,
  219 + data : data,
  220 + headers: {siteId:ClassDataProxy.siteId,pageno:num, page:ind,
  221 + 'token':ClassDataProxy.token},
  222 + success:function(_data){
  223 +
  224 + //获取我的课程数据
  225 + if(_data && _data.code == 200){
  226 + if(callback){
  227 + callback(_data);
  228 + }
  229 + }else{
  230 + if(callback){
  231 + callback(null);
  232 + }
  233 + }
  234 + },
  235 + error:function(error){
  236 + //alert('直播数据获取失败')
  237 + if(callback){
  238 + callback(null);
  239 + }
  240 + loger.log(error,'直播数据获取失败')
  241 + }
  242 + })
  243 + }
  244 + adminListSwitch(){
  245 + let ind = $('#liveInfoList0 .liveInfoLeftLiCheck').attr('data');
  246 + let card = $('#liveInfoList0 .liveInfoLeftLiCheck').index();
  247 + $('#classHandlerPageBox0').attr('data',ind)
  248 + let status = parseInt(ind);
  249 + $('#classHandlerPageBox0_'+card).show().siblings().hide();
  250 + this.presentInd = 1;
  251 + switch (status){
  252 + case 1:
  253 + //正在直播
  254 + this._adminLiveModule(1);
  255 + break;
  256 + case 2:
  257 + //未开始
  258 + this._adminNoneLiveModule(1);
  259 + break;
  260 + case 4:
  261 + //已结束
  262 + this._adminEndLiveModule(1);
  263 + break;
  264 + default:
  265 + return;
  266 + }
  267 +
  268 + }
  269 + //正在直播
  270 + _adminLiveModule(ind){
  271 + let data = {siteId:ClassDataProxy.siteId,meetingStatus:1};
  272 + let that = this;
  273 + this._adminInfo(data,8,ind,function(_data){
  274 + //首页直播信息渲染
  275 + if(_data){
  276 + that._adminLiveCourse(_data.returnData.data);
  277 + that._adminLivePage(_data.returnData.data);
  278 + }
  279 + })
  280 + }
  281 + _adminLiveCourse(_data){
  282 + let courseContent = $('#courseContent0');
  283 + courseContent.empty();
  284 + let _dataList = _data.meetingInfo;
  285 + courseContent.append(adminListTit);
  286 + if(_dataList.length > 0){
  287 +
  288 + for(let i = 0;i<_dataList.length;i++){
  289 + let _adminList = this._format(adminList,{
  290 + _meetingName : _dataList[i].meetingName,
  291 + _esenglish : _dataList[i].meetingNumber,
  292 + _userName : _dataList[i].create_user,
  293 + _stateInfo : '准备',
  294 + _time: _dataList[i].beginTime+' - '+_dataList[i].endTime,
  295 + _onlineLen : '0',
  296 + _DocInd : 'classDoc'+i,
  297 + _mediaInd : 'classMedia'+i,
  298 + _musicInd : 'classMusic'+i,
  299 + _updateInd : 'classUpdate'+i,
  300 + _updatacover : 'updatacover'+i,
  301 + _removeInd : _dataList[i].id,
  302 + _value : _dataList[i].meetingPhoto ? _dataList[i].meetingPhoto : '',
  303 + _joinInd : _dataList[i].meetingNumber
  304 + })
  305 + courseContent.append(_adminList);
  306 + }
  307 + courseContent.append(adminListEnd);
  308 + }else{
  309 + this._gainUserClassDataErr();
  310 + }
  311 + }
  312 + _adminLivePage(_data){
  313 + if(_data){
  314 + let count = _data.count;
  315 + let page = _data.page;
  316 + let pageno = _data.pageno;
  317 + let pagenum = Math.ceil(count / pageno);
  318 + let _dataList = _data.meetingInfo;
  319 + this.pageNo = pagenum;
  320 + $('#classHandlerPageMsg0_0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
  321 + if(count <=8){
  322 + $('#classHandlerPageBox0_0').hide();
  323 + }
  324 + }
  325 + }
  326 + //未开始
  327 + _adminNoneLiveModule(ind){
  328 + let data = {siteId:ClassDataProxy.siteId,meetingStatus:2};
  329 + let that = this;
  330 + this._adminInfo(data,8,ind,function(_data){
  331 + //首页直播信息渲染
  332 + if(_data){
  333 + that._adminLiveCourse(_data.returnData.data);
  334 + that._adminNotPage(_data.returnData.data);
  335 + }
  336 + })
  337 + }
  338 + _adminNotPage(_data){
  339 + if(_data){
  340 + let count = _data.count;
  341 + let page = _data.page;
  342 + let pageno = _data.pageno;
  343 + let pagenum = Math.ceil(count / pageno);
  344 + let _dataList = _data.meetingInfo;
  345 + this.pageNo = pagenum;
  346 + $('#classHandlerPageMsg0_1').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
  347 + if(count <=8){
  348 + $('#classHandlerPageBox0_1').hide();
  349 + }
  350 + }
  351 + }
  352 + //已结束
  353 + _adminEndLiveModule(ind){
  354 + let data = {siteId:ClassDataProxy.siteId,meetingStatus:4};
  355 + let that = this;
  356 + this._adminInfo(data,8,ind,function(_data){
  357 + //首页直播信息渲染
  358 + if(_data){
  359 + that._adminLiveCourse(_data.returnData.data);
  360 + that._adminOverPage(_data.returnData.data);
  361 + }
  362 + })
  363 + }
  364 + _adminOverPage(_data){
  365 + if(_data){
  366 + let count = _data.count;
  367 + let page = _data.page;
  368 + let pageno = _data.pageno;
  369 + let pagenum = Math.ceil(count / pageno);
  370 + let _dataList = _data.meetingInfo;
  371 + this.pageNo = pagenum;
  372 + $('#classHandlerPageMsg0_2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
  373 + if(count <=8){
  374 + $('#classHandlerPageBox0_2').hide();
  375 + }
128 } 376 }
129 } 377 }
130 //点击翻页 378 //点击翻页
@@ -139,14 +387,13 @@ class ManagementHomePageApe extends Ape { @@ -139,14 +387,13 @@ class ManagementHomePageApe extends Ape {
139 headers: { 387 headers: {
140 siteId:ClassDataProxy.siteId, 388 siteId:ClassDataProxy.siteId,
141 page:ind, 389 page:ind,
142 - pageno:8, 390 + pageno:2,
143 'token':ClassDataProxy.token 391 'token':ClassDataProxy.token
144 }, 392 },
145 success:function(_data){ 393 success:function(_data){
146 if(_data && _data.code == 200){ 394 if(_data && _data.code == 200){
147 that._gainClassData(_data.returnData.data); 395 that._gainClassData(_data.returnData.data);
148 } 396 }
149 -  
150 }, 397 },
151 error:function(error){ 398 error:function(error){
152 that._gainUserClassDataErr(); 399 that._gainUserClassDataErr();
@@ -164,12 +411,10 @@ class ManagementHomePageApe extends Ape { @@ -164,12 +411,10 @@ class ManagementHomePageApe extends Ape {
164 let pagenum = Math.ceil(count / pageno); 411 let pagenum = Math.ceil(count / pageno);
165 let _dataList = _data.meetingInfo; 412 let _dataList = _data.meetingInfo;
166 this.pageNo = pagenum; 413 this.pageNo = pagenum;
167 - $('#classHandlerPageMsg0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录'); 414 + $('#classHandlerPageMsg0_0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
168 courseContent.append(adminListTit); 415 courseContent.append(adminListTit);
169 if(_dataList){ 416 if(_dataList){
170 - if(count <= 8){  
171 - $('#classHandlerPageBox0').hide();  
172 - } 417 + //
173 for(let i = 0;i<_dataList.length;i++){ 418 for(let i = 0;i<_dataList.length;i++){
174 let _adminList = this._format(adminList,{ 419 let _adminList = this._format(adminList,{
175 _meetingName : _dataList[i].meetingName, 420 _meetingName : _dataList[i].meetingName,
@@ -215,11 +460,15 @@ class ManagementHomePageApe extends Ape { @@ -215,11 +460,15 @@ class ManagementHomePageApe extends Ape {
215 data:"meeting.id=" + id + "&temp=" + new Date().getTime(), 460 data:"meeting.id=" + id + "&temp=" + new Date().getTime(),
216 success:function(_data){ 461 success:function(_data){
217 loger.log('删除课堂',_data) 462 loger.log('删除课堂',_data)
218 - window.location.href = "http://networkshool.xuedianyun.com/3m/conference_domain.do"; 463 + if(_data){
  464 + // window.location.href = "http://networkshool.xuedianyun.com/3m/meeting/updateToCancel.do";
  465 + }
219 }, 466 },
220 error:function(error){ 467 error:function(error){
221 loger.log(error,'失败') 468 loger.log(error,'失败')
222 - window.location.href = "http://networkshool.xuedianyun.com/3m/conference_domain.do"; 469 + window.location.href = "http://networkshool.xuedianyun.com/3m/meeting/updateToCancel.do";
  470 +
  471 + // window.location.href = "http://networkshool.xuedianyun.com/3m/conference_domain.do";
223 } 472 }
224 }) 473 })
225 } 474 }
@@ -293,7 +542,6 @@ class ManagementHomePageApe extends Ape { @@ -293,7 +542,6 @@ class ManagementHomePageApe extends Ape {
293 } 542 }
294 _submitBtnHandler(){ 543 _submitBtnHandler(){
295 let genre = $('#updataPhotoBox').attr('data'); 544 let genre = $('#updataPhotoBox').attr('data');
296 - loger.log('上传类型',genre)  
297 let _dataId = this.dataId; 545 let _dataId = this.dataId;
298 let _url = 'http://networkschool.xuedianyun.com:3001/upload/upLoadDoc?businessId='+_dataId+'&category='+parseInt(genre)+'&siteId='+ClassDataProxy.siteId; 546 let _url = 'http://networkschool.xuedianyun.com:3001/upload/upLoadDoc?businessId='+_dataId+'&category='+parseInt(genre)+'&siteId='+ClassDataProxy.siteId;
299 let files = this.files; 547 let files = this.files;
@@ -326,7 +574,7 @@ class ManagementHomePageApe extends Ape { @@ -326,7 +574,7 @@ class ManagementHomePageApe extends Ape {
326 } 574 }
327 _liveInfoLeftLiHandler(evt){ 575 _liveInfoLeftLiHandler(evt){
328 this._switchover(evt); 576 this._switchover(evt);
329 - this.detailPage(); 577 + this.adminListSwitch();
330 } 578 }
331 //工具类 579 //工具类
332 _format(str, obj) { 580 _format(str, obj) {
@@ -83,7 +83,6 @@ class MyCenterApe extends Ape { @@ -83,7 +83,6 @@ class MyCenterApe extends Ape {
83 this.data = 0; 83 this.data = 0;
84 this.dataList = {}; 84 this.dataList = {};
85 this.teacherList = {}; 85 this.teacherList = {};
86 - this.messageDetails = [];  
87 this.presentInd = 1;//点击翻页默认为第一页 86 this.presentInd = 1;//点击翻页默认为第一页
88 this.pageNo = 0; //首页老师端 直播默认页码 87 this.pageNo = 0; //首页老师端 直播默认页码
89 this.pageNo1 = 1; //首页老师端 课程默认页码 88 this.pageNo1 = 1; //首页老师端 课程默认页码
@@ -99,11 +98,23 @@ class MyCenterApe extends Ape { @@ -99,11 +98,23 @@ class MyCenterApe extends Ape {
99 $('#teacherInfoList li').on('click',this._teacherInfoListHandler.bind(this));//首页 老师 直播分类 正在直播 未开始 已结束 98 $('#teacherInfoList li').on('click',this._teacherInfoListHandler.bind(this));//首页 老师 直播分类 正在直播 未开始 已结束
100 $('#studentInfoList li').on('click',this._studentInfoListHandler.bind(this));//首页 学生 待学习 已学完 收藏 99 $('#studentInfoList li').on('click',this._studentInfoListHandler.bind(this));//首页 学生 待学习 已学完 收藏
101 100
102 - $('#teacherMyCerterHomePage').on('click',this._homePageHandler.bind(this));//首页  
103 - $('#teacherMyCerterUpPage').on('click',this._upPageHandler.bind(this));//上页  
104 - $('#teacherMyCerterDownPage').on('click',this._downPageHandler.bind(this));//下页  
105 - $('#teacherMyCerterEndPage').on('click',this._endPageHandler.bind(this));//尾页  
106 - $('#teacherMyCerterSpecificPage').on('click',this._assignPageHandler.bind(this));//指定页 101 + $('#teacherMyCerterHomePage0').on('click',this._homePageHandler.bind(this));//首页
  102 + $('#teacherMyCerterUpPage0').on('click',this._upPageHandler.bind(this));//上页
  103 + $('#teacherMyCerterDownPage0').on('click',this._downPageHandler.bind(this));//下页
  104 + $('#teacherMyCerterEndPage0').on('click',this._endPageHandler.bind(this));//尾页
  105 + $('#teacherMyCerterSpecificPage0').on('click',this._assignPageHandler.bind(this));//指定页
  106 +
  107 + $('#teacherMyCerterHomePage1').on('click',this._homePageHandler.bind(this));//首页
  108 + $('#teacherMyCerterUpPage1').on('click',this._upPageHandler.bind(this));//上页
  109 + $('#teacherMyCerterDownPage1').on('click',this._downPageHandler.bind(this));//下页
  110 + $('#teacherMyCerterEndPage1').on('click',this._endPageHandler.bind(this));//尾页
  111 + $('#teacherMyCerterSpecificPage1').on('click',this._assignPageHandler.bind(this));//指定页
  112 +
  113 + $('#teacherMyCerterHomePage2').on('click',this._homePageHandler.bind(this));//首页
  114 + $('#teacherMyCerterUpPage2').on('click',this._upPageHandler.bind(this));//上页
  115 + $('#teacherMyCerterDownPage2').on('click',this._downPageHandler.bind(this));//下页
  116 + $('#teacherMyCerterEndPage2').on('click',this._endPageHandler.bind(this));//尾页
  117 + $('#teacherMyCerterSpecificPage2').on('click',this._assignPageHandler.bind(this));//指定页
107 } 118 }
108 119
109 addEvent() { 120 addEvent() {
@@ -116,7 +127,7 @@ class MyCenterApe extends Ape { @@ -116,7 +127,7 @@ class MyCenterApe extends Ape {
116 //首页 127 //首页
117 _homePageHandler(){ 128 _homePageHandler(){
118 this.presentInd = 1; 129 this.presentInd = 1;
119 - let ind = $('#teacherMyCerterPageBox').attr('data'); 130 + let ind = $('#teacherMyCerterPage').attr('data');
120 switch (parseInt(ind)){ 131 switch (parseInt(ind)){
121 case 1: 132 case 1:
122 this._teacherLiveModule(this.presentInd); 133 this._teacherLiveModule(this.presentInd);
@@ -135,7 +146,7 @@ class MyCenterApe extends Ape { @@ -135,7 +146,7 @@ class MyCenterApe extends Ape {
135 _upPageHandler(){ 146 _upPageHandler(){
136 if(this.presentInd > 1){ 147 if(this.presentInd > 1){
137 this.presentInd--; 148 this.presentInd--;
138 - let ind = $('#teacherMyCerterPageBox').attr('data'); 149 + let ind = $('#teacherMyCerterPage').attr('data');
139 switch (parseInt(ind)){ 150 switch (parseInt(ind)){
140 case 1: 151 case 1:
141 this._teacherLiveModule(this.presentInd); 152 this._teacherLiveModule(this.presentInd);
@@ -153,10 +164,9 @@ class MyCenterApe extends Ape { @@ -153,10 +164,9 @@ class MyCenterApe extends Ape {
153 } 164 }
154 //下页 165 //下页
155 _downPageHandler(){ 166 _downPageHandler(){
156 - loger.log('点击下一页')  
157 if(this.presentInd < this.pageNo){ 167 if(this.presentInd < this.pageNo){
158 this.presentInd++; 168 this.presentInd++;
159 - let ind = $('#teacherMyCerterPageBox').attr('data'); 169 + let ind = $('#teacherMyCerterPage').attr('data');
160 switch (parseInt(ind)){ 170 switch (parseInt(ind)){
161 case 1: 171 case 1:
162 this._teacherLiveModule(this.presentInd); 172 this._teacherLiveModule(this.presentInd);
@@ -175,7 +185,7 @@ class MyCenterApe extends Ape { @@ -175,7 +185,7 @@ class MyCenterApe extends Ape {
175 //尾页 185 //尾页
176 _endPageHandler(){ 186 _endPageHandler(){
177 this.presentInd = this.pageNo; 187 this.presentInd = this.pageNo;
178 - let ind = $('#teacherMyCerterPageBox').attr('data'); 188 + let ind = $('#teacherMyCerterPage').attr('data');
179 switch (parseInt(ind)){ 189 switch (parseInt(ind)){
180 case 1: 190 case 1:
181 this._teacherLiveModule(this.presentInd); 191 this._teacherLiveModule(this.presentInd);
@@ -192,124 +202,36 @@ class MyCenterApe extends Ape { @@ -192,124 +202,36 @@ class MyCenterApe extends Ape {
192 } 202 }
193 //指定页 203 //指定页
194 _assignPageHandler(){ 204 _assignPageHandler(){
195 - let inputVal = $('#teacherMyCerterPageInfoInput').val();  
196 - if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){  
197 - let ind = $('#teacherMyCerterPageBox').attr('data');  
198 - switch (parseInt(ind)){  
199 - case 1:  
200 - this._teacherLiveModule(parseInt(inputVal));  
201 - break;  
202 - case 2:  
203 - this._teacherNoneLiveModule(parseInt(inputVal));  
204 - break;  
205 - case 4:  
206 - this._teacherEndLiveModule(parseInt(inputVal));  
207 - break;  
208 - default:  
209 - return;  
210 - } 205 + let val;
  206 + let ind = $('#teacherMyCerterPage').attr('data');
  207 + let card = $('#teacherInfoList .liveInfoLeftLiCheck').index();
  208 + let inputVal = $('#teacherMyCerterPageInfoInput'+card).val();
  209 + if(parseInt(inputVal) > this.pageNo ){
  210 + val = this.pageNo;
  211 + }else if(parseInt(inputVal) < 1){
  212 + val = 1;
  213 + }else{
  214 + val = parseInt(inputVal)
211 } 215 }
212 - }  
213 - detailpage(){  
214 - this._showStatus();  
215 - this.defaultDateList();  
216 - }  
217 - //首页  
218 - _homePageHandler(){  
219 - this.presentInd = 1;  
220 - let ind = $('#teacherMyCerterPageBox').attr('data');  
221 switch (parseInt(ind)){ 216 switch (parseInt(ind)){
222 case 1: 217 case 1:
223 - this._teacherLiveModule(this.presentInd); 218 + this._teacherLiveModule(val);
224 break; 219 break;
225 case 2: 220 case 2:
226 - this._teacherNoneLiveModule(this.presentInd); 221 + this._teacherNoneLiveModule(val);
227 break; 222 break;
228 case 4: 223 case 4:
229 - this._teacherEndLiveModule(this.presentInd); 224 + this._teacherEndLiveModule(val);
230 break; 225 break;
231 default: 226 default:
232 return; 227 return;
233 } 228 }
  229 +
  230 + $('#teacherMyCerterPageInfoInput'+card).val('')
234 } 231 }
235 - //上页  
236 - _upPageHandler(){  
237 - if(this.presentInd > 1){  
238 - this.presentInd--;  
239 - let ind = $('#teacherMyCerterPageBox').attr('data');  
240 - switch (parseInt(ind)){  
241 - case 1:  
242 - this._teacherLiveModule(this.presentInd);  
243 - break;  
244 - case 2:  
245 - this._teacherNoneLiveModule(this.presentInd);  
246 - break;  
247 - case 4:  
248 - this._teacherEndLiveModule(this.presentInd);  
249 - break;  
250 - default:  
251 - return;  
252 - }  
253 - }  
254 - }  
255 - //下页  
256 - _downPageHandler(){  
257 - loger.log('点击下一页')  
258 - if(this.presentInd < this.pageNo){  
259 - this.presentInd++;  
260 - let ind = $('#teacherMyCerterPageBox').attr('data');  
261 - switch (parseInt(ind)){  
262 - case 1:  
263 - this._teacherLiveModule(this.presentInd);  
264 - break;  
265 - case 2:  
266 - this._teacherNoneLiveModule(this.presentInd);  
267 - break;  
268 - case 4:  
269 - this._teacherEndLiveModule(this.presentInd);  
270 - break;  
271 - default:  
272 - return;  
273 - }  
274 - }  
275 - }  
276 - //尾页  
277 - _endPageHandler(){  
278 - this.presentInd = this.pageNo;  
279 - let ind = $('#teacherMyCerterPageBox').attr('data');  
280 - switch (parseInt(ind)){  
281 - case 1:  
282 - this._teacherLiveModule(this.presentInd);  
283 - break;  
284 - case 2:  
285 - this._teacherNoneLiveModule(this.presentInd);  
286 - break;  
287 - case 4:  
288 - this._teacherEndLiveModule(this.presentInd);  
289 - break;  
290 - default:  
291 - return;  
292 - }  
293 - }  
294 - //指定页  
295 - _assignPageHandler(){  
296 - let inputVal = $('#teacherMyCerterPageInfoInput').val();  
297 - if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){  
298 - let ind = $('#teacherMyCerterPageBox').attr('data');  
299 - switch (parseInt(ind)){  
300 - case 1:  
301 - this._teacherLiveModule(parseInt(inputVal));  
302 - break;  
303 - case 2:  
304 - this._teacherNoneLiveModule(parseInt(inputVal));  
305 - break;  
306 - case 4:  
307 - this._teacherEndLiveModule(parseInt(inputVal));  
308 - break;  
309 - default:  
310 - return;  
311 - }  
312 - } 232 + detailpage(){
  233 + this._showStatus();
  234 + this.defaultDateList();
313 } 235 }
314 loadMeeting(meeting){ 236 loadMeeting(meeting){
315 let status = meeting["meetingStatus"]; 237 let status = meeting["meetingStatus"];
@@ -402,10 +324,10 @@ class MyCenterApe extends Ape { @@ -402,10 +324,10 @@ class MyCenterApe extends Ape {
402 //首页直播信息 324 //首页直播信息
403 this.teacherListSwitch(); 325 this.teacherListSwitch();
404 } 326 }
405 - detailPageStudent(){ 327 + studentListSwitch(){
406 //首页课程 328 //首页课程
407 let ind = $('#studentInfoList .liveInfoLeftLiCheck').attr('data'); 329 let ind = $('#studentInfoList .liveInfoLeftLiCheck').attr('data');
408 - this._studentStudyModule(); 330 + // this._studentStudyModule();
409 switch (parseInt(ind)){ 331 switch (parseInt(ind)){
410 case 0: 332 case 0:
411 //待学习 333 //待学习
@@ -424,6 +346,13 @@ class MyCenterApe extends Ape { @@ -424,6 +346,13 @@ class MyCenterApe extends Ape {
424 } 346 }
425 347
426 } 348 }
  349 + //学生端首页默认数据
  350 + detailPageStudent(){
  351 + //首页课程
  352 + this._studentCourseModule();
  353 + //首页直播信息
  354 + this.studentListSwitch();
  355 + }
427 _anewLoad(ele){ 356 _anewLoad(ele){
428 ele.find('.liveInfoLeftLi').eq(0).addClass('liveInfoLeftLiCheck').siblings().removeClass('liveInfoLeftLiCheck') 357 ele.find('.liveInfoLeftLi').eq(0).addClass('liveInfoLeftLiCheck').siblings().removeClass('liveInfoLeftLiCheck')
429 } 358 }
@@ -504,9 +433,11 @@ class MyCenterApe extends Ape { @@ -504,9 +433,11 @@ class MyCenterApe extends Ape {
504 /*-------------------老师-------------------*/ 433 /*-------------------老师-------------------*/
505 teacherListSwitch(){ 434 teacherListSwitch(){
506 let ind = $('#teacherInfoList .liveInfoLeftLiCheck').attr('data'); 435 let ind = $('#teacherInfoList .liveInfoLeftLiCheck').attr('data');
507 - $('#teacherMyCerterPageBox').attr('data',ind)  
508 - let teacherMyCenterContentList = $('#teacherMyCenterContentList'); 436 + let card = $('#teacherInfoList .liveInfoLeftLiCheck').index();
  437 + $('#teacherMyCerterPage').attr('data',ind)
509 let status = parseInt(ind); 438 let status = parseInt(ind);
  439 + $('#teacherMyCerterPageBox'+card).show().siblings().hide();
  440 + this.presentInd = 1;
510 switch (status){ 441 switch (status){
511 case 1: 442 case 1:
512 //正在直播 443 //正在直播
@@ -540,17 +471,20 @@ class MyCenterApe extends Ape { @@ -540,17 +471,20 @@ class MyCenterApe extends Ape {
540 _teacherCourseCourse(_data){ 471 _teacherCourseCourse(_data){
541 let myCurriculumInfo = $('#myCurriculumInfo'); 472 let myCurriculumInfo = $('#myCurriculumInfo');
542 myCurriculumInfo.empty(); 473 myCurriculumInfo.empty();
  474 + loger.log('skdfjslfsdfsssssssssss',_data)
543 let that = this; 475 let that = this;
544 if(_data) { 476 if(_data) {
545 for (let i = 0; i < _data.length; i++) { 477 for (let i = 0; i < _data.length; i++) {
546 let item = _data[i]; 478 let item = _data[i];
547 let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime,item.meetingEndTime) 479 let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime,item.meetingEndTime)
  480 +
  481 + loger.log('skdfjslfsdfsssssssssss',timer)
548 if (item) { 482 if (item) {
549 let curInfo = this._format(curriculumList, { 483 let curInfo = this._format(curriculumList, {
550 _infoTit: item.meetingName, 484 _infoTit: item.meetingName,
551 _meetingNumber: item.meetingNumber, 485 _meetingNumber: item.meetingNumber,
552 _countDown: that.loadMeeting(item), 486 _countDown: that.loadMeeting(item),
553 - _isShow: (timer == '已结束') ? 'none' : 'block' 487 + // _isShow: (timer != '已结束') ? 'block' : 'none'
554 }) 488 })
555 myCurriculumInfo.append(curInfo); 489 myCurriculumInfo.append(curInfo);
556 } else { 490 } else {
@@ -568,6 +502,7 @@ class MyCenterApe extends Ape { @@ -568,6 +502,7 @@ class MyCenterApe extends Ape {
568 //首页直播信息渲染 502 //首页直播信息渲染
569 if(_data){ 503 if(_data){
570 that._teacherLiveCourse(_data.returnData.data); 504 that._teacherLiveCourse(_data.returnData.data);
  505 + that._teacherLivePage(_data.returnData.data);
571 } 506 }
572 }) 507 })
573 } 508 }
@@ -578,6 +513,7 @@ class MyCenterApe extends Ape { @@ -578,6 +513,7 @@ class MyCenterApe extends Ape {
578 //首页直播信息渲染 513 //首页直播信息渲染
579 if(_data){ 514 if(_data){
580 that._teacherLiveCourse(_data.returnData.data); 515 that._teacherLiveCourse(_data.returnData.data);
  516 + that._teacherNotPage(_data.returnData.data);
581 } 517 }
582 }) 518 })
583 } 519 }
@@ -588,6 +524,7 @@ class MyCenterApe extends Ape { @@ -588,6 +524,7 @@ class MyCenterApe extends Ape {
588 //首页直播信息渲染 524 //首页直播信息渲染
589 if(_data){ 525 if(_data){
590 that._teacherLiveCourse(_data.returnData.data); 526 that._teacherLiveCourse(_data.returnData.data);
  527 + that._teacherOverPage(_data.returnData.data);
591 } 528 }
592 }) 529 })
593 } 530 }
@@ -595,26 +532,16 @@ class MyCenterApe extends Ape { @@ -595,26 +532,16 @@ class MyCenterApe extends Ape {
595 let teacherMyCenterContentList = $('#teacherMyCenterContentList'); 532 let teacherMyCenterContentList = $('#teacherMyCenterContentList');
596 teacherMyCenterContentList.empty(); 533 teacherMyCenterContentList.empty();
597 if(_data){ 534 if(_data){
598 - let count = _data.count;  
599 - let page = _data.page;  
600 - let pageno = _data.pageno;  
601 - let pagenum = Math.ceil(count / pageno);  
602 let _dataList = _data.meetingInfo; 535 let _dataList = _data.meetingInfo;
603 - this.pageNo = pagenum;  
604 if(_dataList.length > 0){ 536 if(_dataList.length > 0){
605 - // loger.log('正在直播状态',_data)  
606 -  
607 - $('#teacherMyCerterPageMsg').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');  
608 - if(count <= 4){  
609 - $('#teacherMyCerterPageBox').hide();  
610 - }  
611 teacherMyCenterContentList.append(adminListTit) 537 teacherMyCenterContentList.append(adminListTit)
612 for(let i = 0;i<_dataList.length;i++){ 538 for(let i = 0;i<_dataList.length;i++){
613 let _adminList = this._format(adminList,{ 539 let _adminList = this._format(adminList,{
614 _meetingName : _dataList[i].meetingName, 540 _meetingName : _dataList[i].meetingName,
615 _meetingNumber : _dataList[i].meetingNumber, 541 _meetingNumber : _dataList[i].meetingNumber,
616 _create_user : _dataList[i].create_user, 542 _create_user : _dataList[i].create_user,
617 - _state : ClassDataProxy.getTimeEnd(_dataList[i].beginTime,_dataList[i].endTime), 543 + // _state : ClassDataProxy.getTimeEnd(_dataList[i].beginTime,_dataList[i].endTime),
  544 + _state : "准备",
618 _timer : _dataList[i].beginTime + '-' + _dataList[i].endTime, 545 _timer : _dataList[i].beginTime + '-' + _dataList[i].endTime,
619 _num : '0' 546 _num : '0'
620 }) 547 })
@@ -626,11 +553,53 @@ class MyCenterApe extends Ape { @@ -626,11 +553,53 @@ class MyCenterApe extends Ape {
626 teacherMyCenterContentList.append(_classifyList) 553 teacherMyCenterContentList.append(_classifyList)
627 } 554 }
628 }else{ 555 }else{
629 - loger.log('shujuweikong') 556 + loger.log('没有直播数据')
630 } 557 }
631 558
632 } 559 }
  560 + _teacherLivePage(_data){
  561 + if(_data){
  562 + let count = _data.count;
  563 + let page = _data.page;
  564 + let pageno = _data.pageno;
  565 + let pagenum = Math.ceil(count / pageno);
  566 + let _dataList = _data.meetingInfo;
  567 + this.pageNo = pagenum;
  568 + $('#teacherMyCerterPageMsg0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
  569 + if(count <=4){
  570 + $('#teacherMyCerterPageBox0').hide();
  571 + }
633 572
  573 + }
  574 + }
  575 + _teacherNotPage(_data){
  576 + if(_data){
  577 + let count = _data.count;
  578 + let page = _data.page;
  579 + let pageno = _data.pageno;
  580 + let pagenum = Math.ceil(count / pageno);
  581 + let _dataList = _data.meetingInfo;
  582 + this.pageNo = pagenum;
  583 + $('#teacherMyCerterPageMsg1').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
  584 + if(count <=4){
  585 + $('#teacherMyCerterPageBox1').hide();
  586 + }
  587 + }
  588 + }
  589 + _teacherOverPage(_data){
  590 + if(_data){
  591 + let count = _data.count;
  592 + let page = _data.page;
  593 + let pageno = _data.pageno;
  594 + let pagenum = Math.ceil(count / pageno);
  595 + let _dataList = _data.meetingInfo;
  596 + this.pageNo = pagenum;
  597 + $('#teacherMyCerterPageMsg2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
  598 + if(count <=4){
  599 + $('#teacherMyCerterPageBox2').hide();
  600 + }
  601 + }
  602 + }
634 /*---------------------------学生-----------------------*/ 603 /*---------------------------学生-----------------------*/
635 //学生端首页課程显示 604 //学生端首页課程显示
636 _studentCourseModule(){ 605 _studentCourseModule(){
@@ -650,21 +619,31 @@ class MyCenterApe extends Ape { @@ -650,21 +619,31 @@ class MyCenterApe extends Ape {
650 let that = this; 619 let that = this;
651 if(_data) { 620 if(_data) {
652 for (let i = 0; i < _data.length; i++) { 621 for (let i = 0; i < _data.length; i++) {
653 - let item = _data[i];  
654 - let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime,item.meetingEndTime)  
655 - loger.log('newTimenewTimenewTimenewTime',timer)  
656 - if (item) {  
657 - let curInfo = this._format(curriculumList, {  
658 - _infoTit: item.meeting_name,  
659 - _meetingNumber: item.meetingNumber,  
660 - _countDown:timer ,  
661 - _isShow: (timer == '已结束') ? 'none' : 'block'  
662 - })  
663 - myCurriculumInfo.append(curInfo);  
664 - } else {  
665 - console.error('_gainClassData没数据')  
666 - }  
667 - 622 + let that = this;
  623 + // setInterval(function () {
  624 + let item = _data[i];
  625 + let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime,item.meetingEndTime)
  626 + /* if(timer.indexOf(':')!=-1){
  627 + myCurriculumInfo.empty();
  628 + }*/
  629 + let isShow = 0;
  630 + if(timer.split(':')[1] || timer.split(':')[1] > 10){
  631 + isShow = 1;
  632 + }
  633 + loger.log('newTimenewTimenewTimenewTime',isShow)
  634 + if (item) {
  635 + let curInfo = that._format(curriculumList, {
  636 + _infoTit: item.meeting_name,
  637 + _meetingNumber: item.meetingNumber,
  638 + //_countDown:timer ,
  639 + _countDown:"准备",
  640 + // _isShow: (isShow == 1) ? 'none' : 'block'
  641 + })
  642 + myCurriculumInfo.append(curInfo);
  643 + } else {
  644 + console.error('_gainClassData没数据')
  645 + }
  646 + // },1000)
668 } 647 }
669 } 648 }
670 } 649 }
@@ -808,7 +787,7 @@ class MyCenterApe extends Ape { @@ -808,7 +787,7 @@ class MyCenterApe extends Ape {
808 787
809 } 788 }
810 789
811 - //老师端课程数据 790 +/* //老师端课程数据
812 _teacherCourseRender(_data){ 791 _teacherCourseRender(_data){
813 let courseMinuteList = $('#courseMinuteList'); 792 let courseMinuteList = $('#courseMinuteList');
814 courseMinuteList.empty(); 793 courseMinuteList.empty();
@@ -854,10 +833,10 @@ class MyCenterApe extends Ape { @@ -854,10 +833,10 @@ class MyCenterApe extends Ape {
854 } 833 }
855 } 834 }
856 } 835 }
857 - } 836 + }*/
  837 +
858 //学生端 我的课程 切换 838 //学生端 我的课程 切换
859 _myCenterBoxHandler(){ 839 _myCenterBoxHandler(){
860 -  
861 if(ClassDataProxy.userType == ClassDataProxy.USER_TYPE_2){ 840 if(ClassDataProxy.userType == ClassDataProxy.USER_TYPE_2){
862 return; 841 return;
863 } 842 }
@@ -903,8 +882,7 @@ class MyCenterApe extends Ape { @@ -903,8 +882,7 @@ class MyCenterApe extends Ape {
903 //学生端 首页 882 //学生端 首页
904 _studentInfoListHandler(evt){ 883 _studentInfoListHandler(evt){
905 this.commonality(evt); 884 this.commonality(evt);
906 - this.detailPageStudent();  
907 - // this.defaultDateList() 885 + this.studentListSwitch();
908 } 886 }
909 887
910 //工具类 888 //工具类
@@ -94,11 +94,23 @@ class MyCoursesApe extends Ape { @@ -94,11 +94,23 @@ class MyCoursesApe extends Ape {
94 94
95 $('#teacherLiveList li').on('click',this._teacherLiveListHandler.bind(this));//我的课程 老师 正在直播 未开始 已结束 95 $('#teacherLiveList li').on('click',this._teacherLiveListHandler.bind(this));//我的课程 老师 正在直播 未开始 已结束
96 96
97 - $('#courseMinuteHomePage').on('click',this._homePageHandler.bind(this));//首页  
98 - $('#courseMinuteUpPage').on('click',this._upPageHandler.bind(this));//上页  
99 - $('#courseMinuteDownPage').on('click',this._downPageHandler.bind(this));//下页  
100 - $('#courseMinuteEndPage').on('click',this._endPageHandler.bind(this));//尾页  
101 - $('#courseMinuteSpecificPage').on('click',this._assignPageHandler.bind(this));//指定页 97 + $('#courseMinuteHomePage0').on('click',this._homePageHandler.bind(this));//首页
  98 + $('#courseMinuteUpPage0').on('click',this._upPageHandler.bind(this));//上页
  99 + $('#courseMinuteDownPage0').on('click',this._downPageHandler.bind(this));//下页
  100 + $('#courseMinuteEndPage0').on('click',this._endPageHandler.bind(this));//尾页
  101 + $('#courseMinuteSpecificPage0').on('click',this._assignPageHandler.bind(this));//指定页
  102 +
  103 + $('#courseMinuteHomePage1').on('click',this._homePageHandler.bind(this));//首页
  104 + $('#courseMinuteUpPage1').on('click',this._upPageHandler.bind(this));//上页
  105 + $('#courseMinuteDownPage1').on('click',this._downPageHandler.bind(this));//下页
  106 + $('#courseMinuteEndPage1').on('click',this._endPageHandler.bind(this));//尾页
  107 + $('#courseMinuteSpecificPage1').on('click',this._assignPageHandler.bind(this));//指定页
  108 +
  109 + $('#courseMinuteHomePage2').on('click',this._homePageHandler.bind(this));//首页
  110 + $('#courseMinuteUpPage2').on('click',this._upPageHandler.bind(this));//上页
  111 + $('#courseMinuteDownPage2').on('click',this._downPageHandler.bind(this));//下页
  112 + $('#courseMinuteEndPage2').on('click',this._endPageHandler.bind(this));//尾页
  113 + $('#courseMinuteSpecificPage2').on('click',this._assignPageHandler.bind(this));//指定页
102 } 114 }
103 115
104 addEvent() { 116 addEvent() {
@@ -111,34 +123,107 @@ class MyCoursesApe extends Ape { @@ -111,34 +123,107 @@ class MyCoursesApe extends Ape {
111 //首页 123 //首页
112 _homePageHandler(){ 124 _homePageHandler(){
113 this.presentIndT = 1; 125 this.presentIndT = 1;
114 - this.teacherNowLiveModule(this.presentIndT); 126 + let ind = $('#courseMinutePage').attr('data');
  127 + switch (parseInt(ind)){
  128 + case 1:
  129 + this.teacherNowLiveModule(this.presentIndT);
  130 + break;
  131 + case 2:
  132 + this.teacherNoneLiveModule(this.presentIndT);
  133 + break;
  134 + case 4:
  135 + this._teacherEndLiveModule(this.presentIndT);
  136 + break;
  137 + default:
  138 + return;
  139 + }
115 } 140 }
116 //上页 141 //上页
117 _upPageHandler(){ 142 _upPageHandler(){
118 if(this.presentIndT > 1){ 143 if(this.presentIndT > 1){
119 this.presentIndT--; 144 this.presentIndT--;
120 - this.teacherNowLiveModule(this.presentIndT); 145 + let ind = $('#courseMinutePage').attr('data');
  146 + switch (parseInt(ind)){
  147 + case 1:
  148 + this.teacherNowLiveModule(this.presentIndT);
  149 + break;
  150 + case 2:
  151 + this.teacherNoneLiveModule(this.presentIndT);
  152 + break;
  153 + case 4:
  154 + this._teacherEndLiveModule(this.presentIndT);
  155 + break;
  156 + default:
  157 + return;
  158 + }
121 } 159 }
122 } 160 }
123 //下页 161 //下页
124 _downPageHandler(){ 162 _downPageHandler(){
125 - loger.log('点击下一页')  
126 if(this.presentIndT < this.pageNoT){ 163 if(this.presentIndT < this.pageNoT){
127 this.presentIndT++; 164 this.presentIndT++;
128 - this.teacherNowLiveModule(this.presentIndT); 165 + let ind = $('#courseMinutePage').attr('data');
  166 + switch (parseInt(ind)){
  167 + case 1:
  168 + this.teacherNowLiveModule(this.presentIndT);
  169 + break;
  170 + case 2:
  171 + this.teacherNoneLiveModule(this.presentIndT);
  172 + break;
  173 + case 4:
  174 + this._teacherEndLiveModule(this.presentIndT);
  175 + break;
  176 + default:
  177 + return;
  178 + }
129 } 179 }
130 } 180 }
131 //尾页 181 //尾页
132 _endPageHandler(){ 182 _endPageHandler(){
133 this.presentIndT = this.pageNoT; 183 this.presentIndT = this.pageNoT;
134 - this.teacherNowLiveModule(this.presentIndT); 184 + let ind = $('#courseMinutePage').attr('data');
  185 + switch (parseInt(ind)){
  186 + case 1:
  187 + this.teacherNowLiveModule(this.presentIndT);
  188 + break;
  189 + case 2:
  190 + this.teacherNoneLiveModule(this.presentIndT);
  191 + break;
  192 + case 4:
  193 + this._teacherEndLiveModule(this.presentIndT);
  194 + break;
  195 + default:
  196 + return;
  197 + }
135 } 198 }
136 //指定页 199 //指定页
137 _assignPageHandler(){ 200 _assignPageHandler(){
138 - let inputVal = $('#classHandlerPageInfoInput').val();  
139 - if(parseInt(inputVal) <= this.pageNoT || parseInt(inputVal) >= 1 ){  
140 - this.teacherNowLiveModule(parseInt(inputVal));  
141 - } 201 + let val;
  202 + let ind = $('#courseMinutePage').attr('data');
  203 + let card = $('#teacherInfoList .liveInfoLeftLiCheck').index();
  204 + let inputVal = $('#courseMinutePageInfoInput'+card).val();
  205 +
  206 + if(parseInt(inputVal) > this.pageNoT ){
  207 + val = this.pageNoT;
  208 + }else if(parseInt(inputVal) < 1){
  209 + val = 1;
  210 + }else{
  211 + val = parseInt(inputVal)
  212 + }
  213 + switch (parseInt(ind)){
  214 + case 1:
  215 + this.teacherNowLiveModule(val);
  216 + break;
  217 + case 2:
  218 + this.teacherNoneLiveModule(val);
  219 + break;
  220 + case 4:
  221 + this._teacherEndLiveModule(val);
  222 + break;
  223 + default:
  224 + return;
  225 + }
  226 + $('#courseMinutePageInfoInput'+card).val('');
142 } 227 }
143 //我的课程 228 //我的课程
144 myCoursesMessage(){ 229 myCoursesMessage(){
@@ -164,21 +249,24 @@ class MyCoursesApe extends Ape { @@ -164,21 +249,24 @@ class MyCoursesApe extends Ape {
164 } 249 }
165 //我的 课程 直播信息 250 //我的 课程 直播信息
166 teacherCourses(){ 251 teacherCourses(){
167 - let _index = $('#teacherLiveList .liveInfoLeftLiCheck').attr('data'); 252 + let ind = $('#teacherLiveList .liveInfoLeftLiCheck').attr('data');
168 let courseMinuteList = $('#courseMinuteList'); 253 let courseMinuteList = $('#courseMinuteList');
169 - switch (parseInt(_index)){  
170 - case 0: 254 + let card = $('#teacherLiveList .liveInfoLeftLiCheck').index();
  255 + $('#courseMinutePage').attr('data',ind)
  256 + $('#courseMinutePageBox'+card).show().siblings().hide();
  257 + this.presentIndT = 1;
  258 + switch (parseInt(ind)){
  259 + case 1:
171 //正在直播 260 //正在直播
172 - loger.log('直播首页信息')  
173 this.teacherNowLiveModule(1); 261 this.teacherNowLiveModule(1);
174 break; 262 break;
175 - case 1: 263 + case 2:
176 //未开始 264 //未开始
177 this.teacherNoneLiveModule(1); 265 this.teacherNoneLiveModule(1);
178 - loger.log('直播首页信息1')  
179 break; 266 break;
180 - case 2: 267 + case 4:
181 //已结束 268 //已结束
  269 + this._teacherEndLiveModule(1);
182 break; 270 break;
183 default: 271 default:
184 return; 272 return;
@@ -192,37 +280,11 @@ class MyCoursesApe extends Ape { @@ -192,37 +280,11 @@ class MyCoursesApe extends Ape {
192 //首页直播信息渲染 280 //首页直播信息渲染
193 if(_data){ 281 if(_data){
194 that._teacherCourse(_data.returnData.data); 282 that._teacherCourse(_data.returnData.data);
195 - // loger.log('首页直播信息渲染',_data.returnData.data) 283 + that._teacherLivePage(_data.returnData.data);
196 } 284 }
197 }) 285 })
198 } 286 }
199 - _teacherCourse(_data){  
200 - let courseMinuteList = $('#courseMinuteList');  
201 - courseMinuteList.empty();  
202 - let count = _data.count;  
203 - let page = _data.page;  
204 - let pageno = _data.pageno;  
205 - let pagenum = Math.ceil(count / pageno);  
206 - let _dataList = _data.meetingInfo;  
207 - this.pageNoT = pagenum;  
208 - $('#courseMinutePageMsg').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');  
209 - courseMinuteList.append(adminListTit)  
210 - for(let i = 0;i<_dataList.length;i++){  
211 - if(count <= 8){  
212 - $('#teacherMyCerterPageBox').hide();  
213 - }  
214 - let _adminList = this._format(adminList,{  
215 - _meetingName : _dataList[i].meetingName,  
216 - _meetingNumber : _dataList[i].meetingNumber,  
217 - _create_user : _dataList[i].create_user,  
218 - _state : ClassDataProxy.getTimeEnd(_dataList[i].beginTime,_dataList[i].endTime),  
219 - _timer : _dataList[i].beginTime + '-' + _dataList[i].endTime,  
220 - _num : '0'  
221 - })  
222 - courseMinuteList.append(_adminList)  
223 - }  
224 - courseMinuteList.append(adminListEnd)  
225 - } 287 + //我的课程 未开始
226 teacherNoneLiveModule(ind){ 288 teacherNoneLiveModule(ind){
227 let data = {siteId:ClassDataProxy.siteId,create_user : ClassDataProxy.loginName,meetingStatus:2}; 289 let data = {siteId:ClassDataProxy.siteId,create_user : ClassDataProxy.loginName,meetingStatus:2};
228 let that = this; 290 let that = this;
@@ -230,9 +292,90 @@ class MyCoursesApe extends Ape { @@ -230,9 +292,90 @@ class MyCoursesApe extends Ape {
230 //首页直播信息渲染 292 //首页直播信息渲染
231 if(_data){ 293 if(_data){
232 that._teacherCourse(_data.returnData.data); 294 that._teacherCourse(_data.returnData.data);
  295 + that._teacherNotPage(_data.returnData.data);
233 } 296 }
234 }) 297 })
235 } 298 }
  299 + //我的课程 已结束
  300 + _teacherEndLiveModule(ind){
  301 + let data = {siteId:ClassDataProxy.siteId,create_user : ClassDataProxy.loginName,meetingStatus:4};
  302 + let that = this;
  303 + this._teacherCurriculumInfo(data,4,ind,function(_data){
  304 + //首页直播信息渲染
  305 + if(_data){
  306 + that._teacherCourse(_data.returnData.data);
  307 + that._teacherOverPage(_data.returnData.data);
  308 + }
  309 + })
  310 + }
  311 + _teacherCourse(_data){
  312 + let courseMinuteList = $('#courseMinuteList');
  313 + courseMinuteList.empty();
  314 + if(_data){
  315 + let _dataList = _data.meetingInfo;
  316 + if(_dataList.length > 0){
  317 + courseMinuteList.append(adminListTit)
  318 + for(let i = 0;i<_dataList.length;i++){
  319 + let _adminList = this._format(adminList,{
  320 + _meetingName : _dataList[i].meetingName,
  321 + _meetingNumber : _dataList[i].meetingNumber,
  322 + _create_user : _dataList[i].create_user,
  323 + // _state : ClassDataProxy.getTimeEnd(_dataList[i].beginTime,_dataList[i].endTime),
  324 + _state : "准备",
  325 + _timer : _dataList[i].beginTime + '-' + _dataList[i].endTime,
  326 + _num : '0'
  327 + })
  328 + courseMinuteList.append(_adminList)
  329 + }
  330 + courseMinuteList.append(adminListEnd)
  331 + }else{
  332 + let _classifyList = '<div class="dataCenterErrorTitle">暂无数据~</div>';
  333 + courseMinuteList.append(_classifyList)
  334 + }
  335 + }
  336 + }
  337 + _teacherLivePage(_data){
  338 + if(_data){
  339 + let count = _data.count;
  340 + let page = _data.page;
  341 + let pageno = _data.pageno;
  342 + let pagenum = Math.ceil(count / pageno);
  343 + let _dataList = _data.meetingInfo;
  344 + this.pageNoT = pagenum;
  345 + $('#courseMinutePageMsg0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
  346 + if(count <=4){
  347 + $('#courseMinutePageBox0').hide();
  348 + }
  349 + }
  350 + }
  351 + _teacherNotPage(_data){
  352 + if(_data){
  353 + let count = _data.count;
  354 + let page = _data.page;
  355 + let pageno = _data.pageno;
  356 + let pagenum = Math.ceil(count / pageno);
  357 + let _dataList = _data.meetingInfo;
  358 + this.pageNoT = pagenum;
  359 + $('#courseMinutePageMsg1').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
  360 + if(count <=4){
  361 + $('#courseMinutePageBox1').hide();
  362 + }
  363 + }
  364 + }
  365 + _teacherOverPage(_data){
  366 + if(_data){
  367 + let count = _data.count;
  368 + let page = _data.page;
  369 + let pageno = _data.pageno;
  370 + let pagenum = Math.ceil(count / pageno);
  371 + let _dataList = _data.meetingInfo;
  372 + this.pageNoT = pagenum;
  373 + $('#courseMinutePageMsg2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
  374 + if(count <=4){
  375 + $('#courseMinutePageBox2').hide();
  376 + }
  377 + }
  378 + }
236 // 学生端 379 // 学生端
237 //学生端 我的课程 切换 380 //学生端 我的课程 切换
238 studentCourses(){ 381 studentCourses(){
@@ -125,9 +125,16 @@ class PartTimeTeachingApe extends Ape { @@ -125,9 +125,16 @@ class PartTimeTeachingApe extends Ape {
125 //指定页 125 //指定页
126 _assignPageHandler(){ 126 _assignPageHandler(){
127 let inputVal = $('#classHandlerPageInfoInput3').val(); 127 let inputVal = $('#classHandlerPageInfoInput3').val();
128 - if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){  
129 - this.userAdminHandler(parseInt(inputVal)); 128 + let val;
  129 + if(parseInt(inputVal) > this.pageNo ){
  130 + val = this.pageNo;
  131 + }else if(parseInt(inputVal) < 1){
  132 + val = 1;
  133 + }else{
  134 + val = parseInt(inputVal)
130 } 135 }
  136 + this.userAdminHandler(val);
  137 + $('#classHandlerPageInfoInput3').val('');
131 } 138 }
132 //用户管理 创建用户界面 139 //用户管理 创建用户界面
133 userAdminHandler(ind){ 140 userAdminHandler(ind){
@@ -131,9 +131,16 @@ class PlayRecordApe extends Ape { @@ -131,9 +131,16 @@ class PlayRecordApe extends Ape {
131 //指定页 131 //指定页
132 _assignPageHandler(){ 132 _assignPageHandler(){
133 let inputVal = $('#classHandlerPageInfoInput5').val(); 133 let inputVal = $('#classHandlerPageInfoInput5').val();
134 - if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){  
135 - this.detailPage(parseInt(inputVal)); 134 + let val;
  135 + if(parseInt(inputVal) > this.pageNo ){
  136 + val = this.pageNo;
  137 + }else if(parseInt(inputVal) < 1){
  138 + val = 1;
  139 + }else{
  140 + val = parseInt(inputVal)
136 } 141 }
  142 + this.detailPage(val);
  143 + $('#classHandlerPageInfoInput5').val('');
137 } 144 }
138 detailPage(ind){ 145 detailPage(ind){
139 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting'; 146 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
@@ -16,9 +16,6 @@ class Slideshow extends Ape { @@ -16,9 +16,6 @@ class Slideshow extends Ape {
16 constructor() { 16 constructor() {
17 super(); 17 super();
18 this._timer = null; 18 this._timer = null;
19 - this.windowWidth = 0;  
20 - this.num = 0;  
21 - this.len = 0;  
22 this.defaultList = ['images/xdybg.png', 19 this.defaultList = ['images/xdybg.png',
23 'images/bg.jpg', 20 'images/bg.jpg',
24 'images/xdybg.png', 21 'images/xdybg.png',
@@ -72,12 +69,10 @@ class Slideshow extends Ape { @@ -72,12 +69,10 @@ class Slideshow extends Ape {
72 } 69 }
73 that.dataLength = that.defaultList.length; 70 that.dataLength = that.defaultList.length;
74 } 71 }
  72 + that.slideImg();
  73 + that._imgReload();
75 } 74 }
76 }); 75 });
77 - let li = document.getElementById('motionMapBox').getElementsByTagName("li");  
78 - console.log(li,'aaaaaaaa')  
79 - this.slideImg();  
80 -  
81 76
82 } 77 }
83 detailPage(callback){ 78 detailPage(callback){
@@ -116,61 +111,35 @@ class Slideshow extends Ape { @@ -116,61 +111,35 @@ class Slideshow extends Ape {
116 }) 111 })
117 } 112 }
118 _onLoadImage(){ 113 _onLoadImage(){
119 - this._imgReload(); 114 + // this._imgReload();
120 } 115 }
121 slideImg(){ 116 slideImg(){
122 - loger.log('西三四速度快快快')  
123 - let oli = document.getElementById('dots').getElementsByTagName("li");  
124 let _num = 0; 117 let _num = 0;
125 -  
126 - // let clone=$("#motionMapBox").find(".slidesMap").first().clone();  
127 - // $("#motionMapBox").append(clone);  
128 -  
129 - let li = document.getElementById('motionMapBox').getElementsByTagName("li");  
130 - let size = li.length;  
131 - this.num = _num;  
132 - this.len = size;  
133 - clearInterval(this._timer);  
134 let that = this; 118 let that = this;
  119 + clearInterval(this._timer);
135 this._timer = setInterval(function(){ 120 this._timer = setInterval(function(){
136 $('.slidesMap').eq(_num).show().siblings().hide(); 121 $('.slidesMap').eq(_num).show().siblings().hide();
137 _num++; 122 _num++;
138 if(_num > that.dataLength - 1){ 123 if(_num > that.dataLength - 1){
139 _num = 0; 124 _num = 0;
140 } 125 }
141 - /*console.log(_num,that.dataLength,'_num')  
142 - if(_num > that.dataLength - 1){  
143 - _num = -1;  
144 - }  
145 - let liItem=li[_num];  
146 - if(liItem){  
147 - liItem.style.display="none";  
148 - }  
149 - _num++;  
150 - liItem=li[_num];  
151 - if(liItem){  
152 - liItem.style.display="inline-block";  
153 - }*/  
154 -  
155 },3000);//切换时间 126 },3000);//切换时间
156 } 127 }
157 _mouseenterHandler(){ 128 _mouseenterHandler(){
158 - // clearInterval(this._timer); 129 + clearInterval(this._timer);
159 } 130 }
160 _mouseleaveHandler(){ 131 _mouseleaveHandler(){
161 - // setInterval(this._timer); 132 + // this.slideImg();
162 } 133 }
163 _slidesMapHandler(evt){ 134 _slidesMapHandler(evt){
164 let _id = $(evt.currentTarget).find('.slidesImg').attr('data'); 135 let _id = $(evt.currentTarget).find('.slidesImg').attr('data');
165 - loger.log(_id)  
166 this._emit(MessageTypes.CLICK_IMGINFO,{id:_id}); 136 this._emit(MessageTypes.CLICK_IMGINFO,{id:_id});
167 } 137 }
168 _imgReload(){ 138 _imgReload(){
169 let _windowWidth = $("body").width(); 139 let _windowWidth = $("body").width();
170 - this.windowWidth = _windowWidth;  
171 140
172 $('.slidesMap').css({width:_windowWidth + "px"}); 141 $('.slidesMap').css({width:_windowWidth + "px"});
173 - $('.slidesImg').css({width:_windowWidth + "px","background-size":'100%'}); 142 + $('.slidesImg').css({"background-size":'auto 100%'});
174 143
175 $('#motionMapBox').width($(".slidesMap").length * _windowWidth) 144 $('#motionMapBox').width($(".slidesMap").length * _windowWidth)
176 } 145 }
@@ -35,7 +35,6 @@ class SubscribeApe extends Ape { @@ -35,7 +35,6 @@ class SubscribeApe extends Ape {
35 let status = $(evt.currentTarget).attr('data'); 35 let status = $(evt.currentTarget).attr('data');
36 let id = $('#teacherDetailBox').attr('data'); 36 let id = $('#teacherDetailBox').attr('data');
37 this._lanclassContentApplyHandler(status,id); 37 this._lanclassContentApplyHandler(status,id);
38 - loger.log('查看当前点击的dataid',id,status)  
39 } 38 }
40 _lanclassContentApplyHandler(status,id){ 39 _lanclassContentApplyHandler(status,id){
41 if(ClassDataProxy.userType == 0){ 40 if(ClassDataProxy.userType == 0){
@@ -45,6 +44,7 @@ class SubscribeApe extends Ape { @@ -45,6 +44,7 @@ class SubscribeApe extends Ape {
45 let that = this; 44 let that = this;
46 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/addStudentMeeting'; 45 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/addStudentMeeting';
47 this.id = id; 46 this.id = id;
  47 + loger.log(id,ClassDataProxy.id,'预约信息')
48 $.ajax({ 48 $.ajax({
49 type: "POST", 49 type: "POST",
50 url: _url, 50 url: _url,
@@ -58,17 +58,17 @@ class SubscribeApe extends Ape { @@ -58,17 +58,17 @@ class SubscribeApe extends Ape {
58 success:function(_data){ 58 success:function(_data){
59 let arr = ['收藏成功!','预约成功!','报名成功!'] 59 let arr = ['收藏成功!','预约成功!','报名成功!']
60 //获取课堂数据 60 //获取课堂数据
61 - loger.log('获取课堂数据',_data) 61 + loger.log(_data,'预约信息')
62 if(_data && _data.code == 200){ 62 if(_data && _data.code == 200){
63 - loger.log(_data,'预约信息') 63 +
64 ClassDataProxy.getMarginTopHandler($('#teacherDetailReminders'));//显示预约成功弹框 64 ClassDataProxy.getMarginTopHandler($('#teacherDetailReminders'));//显示预约成功弹框
65 $('#teacherDetailRemindersBox').show(); 65 $('#teacherDetailRemindersBox').show();
66 that._emit(MessageTypes.ORDER_FINISH); 66 that._emit(MessageTypes.ORDER_FINISH);
67 }else if(_data.returnData.data.msg == '您已预约这堂课' && ClassDataProxy.loginName){ 67 }else if(_data.returnData.data.msg == '您已预约这堂课' && ClassDataProxy.loginName){
68 - ClassDataProxy.getMarginTopHandler($('#warnHintBox'));//修改信息输入框 68 + ClassDataProxy.getMarginTopHandler($('#warnHintBox'));
69 ErrorApe.showWarnError('您已预约这堂课'); 69 ErrorApe.showWarnError('您已预约这堂课');
70 }else { 70 }else {
71 - ClassDataProxy.getMarginTopHandler($('#warnHintBox'));//修改信息输入框 71 + ClassDataProxy.getMarginTopHandler($('#warnHintBox'));
72 ErrorApe.showWarnError('预约失败,请稍后再试~'); 72 ErrorApe.showWarnError('预约失败,请稍后再试~');
73 } 73 }
74 }, 74 },
@@ -159,9 +159,9 @@ class Main { @@ -159,9 +159,9 @@ class Main {
159 159
160 //个人中心 160 //个人中心
161 _myCenterApe = new MyCenterApe(); 161 _myCenterApe = new MyCenterApe();
162 - _myCenterApe.on(MessageTypes.ROLE_MESSAGE,this.roleMessage.bind(this));  
163 - _myCenterApe.on(MessageTypes.MY_COURSES,this.myCoures.bind(this));  
164 - _myCenterApe.on(MessageTypes.MY_BOOKINGS,this.myBookings.bind(this)); 162 + _myCenterApe.on(MessageTypes.ROLE_MESSAGE,this.roleMessage.bind(this));//myCenter 我的个人信息
  163 + _myCenterApe.on(MessageTypes.MY_COURSES,this.myCoures.bind(this));//我的课程
  164 + _myCenterApe.on(MessageTypes.MY_BOOKINGS,this.myBookings.bind(this));//我的预约
165 //个人中心 我的课程 165 //个人中心 我的课程
166 _myCoursesApe = new MyCoursesApe(); 166 _myCoursesApe = new MyCoursesApe();
167 //个人中心 我的预约 167 //个人中心 我的预约
@@ -230,7 +230,7 @@ class Main { @@ -230,7 +230,7 @@ class Main {
230 230
231 }else if(_data.userType == ClassDataProxy.USER_TYPE_2){ 231 }else if(_data.userType == ClassDataProxy.USER_TYPE_2){
232 this._showAdministratorInfo(); 232 this._showAdministratorInfo();
233 - _managementHomePageApe.detailPage(); 233 + _managementHomePageApe.adminListSwitch();
234 }else if(_data.userType == ClassDataProxy.USER_TYPE_8){ 234 }else if(_data.userType == ClassDataProxy.USER_TYPE_8){
235 _homeApe.detailPage(); 235 _homeApe.detailPage();
236 _myCenterApe.detailpage(); 236 _myCenterApe.detailpage();
@@ -275,7 +275,6 @@ class Main { @@ -275,7 +275,6 @@ class Main {
275 } 275 }
276 clickImgInfo(_data){ 276 clickImgInfo(_data){
277 if(_data){ 277 if(_data){
278 - console.log('clickImgInfo',_data)  
279 _listDetailsApe._slideshowInfo(_data.id); 278 _listDetailsApe._slideshowInfo(_data.id);
280 } 279 }
281 } 280 }
@@ -287,7 +286,7 @@ class Main { @@ -287,7 +286,7 @@ class Main {
287 switch (ind){ 286 switch (ind){
288 case 0: 287 case 0:
289 //首页 288 //首页
290 - _managementHomePageApe.detailPage(); 289 + _managementHomePageApe.adminListSwitch();
291 break; 290 break;
292 case 1: 291 case 1:
293 //创建课堂 292 //创建课堂
@@ -347,6 +346,7 @@ class Main { @@ -347,6 +346,7 @@ class Main {
347 addClass(_data){ 346 addClass(_data){
348 loger.log('创建课堂成功') 347 loger.log('创建课堂成功')
349 _managementHomePageApe.detailPage(); 348 _managementHomePageApe.detailPage();
  349 + _homeApe.isLocalStorage();
350 } 350 }
351 //预约成功重新渲染数据 351 //预约成功重新渲染数据
352 orderFinish(){ 352 orderFinish(){
@@ -363,7 +363,6 @@ class Main { @@ -363,7 +363,6 @@ class Main {
363 }else{ 363 }else{
364 _idHref = window.location.href.split('.')[0].split('//')[1]; 364 _idHref = window.location.href.split('.')[0].split('//')[1];
365 } 365 }
366 - loger.log(_idHref,'111111111')  
367 let userType = window.localStorage.getItem('userType')||0; 366 let userType = window.localStorage.getItem('userType')||0;
368 let loginName = window.localStorage.getItem('loginName')|| ''; 367 let loginName = window.localStorage.getItem('loginName')|| '';
369 let id = window.localStorage.getItem('id')|| ''; 368 let id = window.localStorage.getItem('id')|| '';
@@ -191,19 +191,36 @@ class ClassDataProxy { @@ -191,19 +191,36 @@ class ClassDataProxy {
191 //计算时间戳倒计时 191 //计算时间戳倒计时
192 static getTimeCountDown(start,end){ 192 static getTimeCountDown(start,end){
193 193
  194 +/*
  195 + var date1 = new Date('2013/04/02 18:00')
  196 + var date2 = new Date('2013/04/02 19:22:21')
  197 +
  198 + var s1 = date1.getTime(),s2 = date2.getTime();
  199 + var total = (s2 - s1)/1000;
  200 +
  201 +
  202 + var day = parseInt(total / (24*60*60));//计算整数天数
  203 + var afterDay = total - day*24*60*60;//取得算出天数后剩余的秒数
  204 + var hour = parseInt(afterDay/(60*60));//计算整数小时数
  205 + var afterHour = total - day*24*60*60 - hour*60*60;//取得算出小时数后剩余的秒数
  206 + var min = parseInt(afterHour/60);//计算整数分
  207 + var afterMin = total - day*24*60*60 - hour*60*60 - min*60;//取得算出分后剩余的秒数*/
  208 +
  209 + //当前时间
194 let newDate = Date.parse(new Date()); 210 let newDate = Date.parse(new Date());
195 //开始时间 211 //开始时间
196 let newTime = Date.parse(new Date(start)) 212 let newTime = Date.parse(new Date(start))
197 //结束时间 213 //结束时间
198 let endTime = Date.parse(new Date(end)) 214 let endTime = Date.parse(new Date(end))
199 215
200 -  
201 let t = newDate - endTime; 216 let t = newDate - endTime;
202 let y = newDate - newTime; 217 let y = newDate - newTime;
203 218
204 - let hour=Math.floor(t/1000/60/60%24);  
205 - let min=Math.floor(t/1000/60%60);  
206 - let sec=Math.floor(t/1000%60); 219 + let newY = Math.abs(y)
  220 +
  221 + let hour=Math.floor(newY/1000/60/60%24);
  222 + let min=Math.floor(newY/1000/60%60);
  223 + let sec=Math.floor(newY/1000%60);
207 224
208 if (hour < 10) { 225 if (hour < 10) {
209 hour = "0" + hour; 226 hour = "0" + hour;
@@ -214,17 +231,18 @@ class ClassDataProxy { @@ -214,17 +231,18 @@ class ClassDataProxy {
214 if (sec < 10) { 231 if (sec < 10) {
215 sec = "0" + sec; 232 sec = "0" + sec;
216 } 233 }
217 - 234 + console.log('ssssssssssssss',t)
218 if(t < 0){ 235 if(t < 0){
219 - if(y < 0){ 236 + if( y < 0){
220 return hour + ":" + min + ":" + sec; 237 return hour + ":" + min + ":" + sec;
221 -  
222 }else{ 238 }else{
223 return '马上加入'; 239 return '马上加入';
224 } 240 }
225 }else{ 241 }else{
226 return '已结束'; 242 return '已结束';
227 } 243 }
  244 +
  245 +
228 } 246 }
229 //判断是否是今天 247 //判断是否是今天
230 static getTimeDay(start){ 248 static getTimeDay(start){