董佳音

修改创建课堂信息

@@ -661,7 +661,7 @@ body{ @@ -661,7 +661,7 @@ body{
661 padding:20px 0; 661 padding:20px 0;
662 cursor: pointer; 662 cursor: pointer;
663 } 663 }
664 -.recordLi{ 664 +.recordLi,.recordLi1{
665 font-size: 14px; 665 font-size: 14px;
666 height: 55px; 666 height: 55px;
667 line-height: 55px; 667 line-height: 55px;
@@ -670,8 +670,7 @@ body{ @@ -670,8 +670,7 @@ body{
670 .recordLiText{ 670 .recordLiText{
671 padding-left:15px; 671 padding-left:15px;
672 } 672 }
673 -  
674 -.recordLiTextCheck{ 673 +.recordLiCheck{
675 color: #3498db; 674 color: #3498db;
676 } 675 }
677 .classManagementRight{ 676 .classManagementRight{
@@ -839,7 +838,7 @@ body{ @@ -839,7 +838,7 @@ body{
839 } 838 }
840 .scheduleWireBox{ 839 .scheduleWireBox{
841 width:100%; 840 width:100%;
842 - height:75px; 841 + height:70px;
843 position: relative; 842 position: relative;
844 } 843 }
845 .scheduleWireTitBox{ 844 .scheduleWireTitBox{
@@ -851,7 +850,7 @@ body{ @@ -851,7 +850,7 @@ body{
851 width: 25%; 850 width: 25%;
852 text-align: center; 851 text-align: center;
853 display: inline-block; 852 display: inline-block;
854 - padding-top:20px; 853 + padding-top:17px;
855 } 854 }
856 .scheduleWireIndBox{ 855 .scheduleWireIndBox{
857 width: 100%; 856 width: 100%;
@@ -884,7 +883,7 @@ body{ @@ -884,7 +883,7 @@ body{
884 height: 2px; 883 height: 2px;
885 background: #ccc; 884 background: #ccc;
886 width: 510px; 885 width: 510px;
887 - margin:22px 0 0 95px; 886 + margin:20px 0 0 95px;
888 } 887 }
889 .scheduleWire{ 888 .scheduleWire{
890 background: #3498db; 889 background: #3498db;
@@ -920,7 +919,6 @@ body{ @@ -920,7 +919,6 @@ body{
920 } 919 }
921 .step_page1_widget{ 920 .step_page1_widget{
922 margin-left: 125px; 921 margin-left: 125px;
923 - position: relative;  
924 padding-top: 5px; 922 padding-top: 5px;
925 } 923 }
926 .allowPublic{ 924 .allowPublic{
@@ -958,10 +956,12 @@ body{ @@ -958,10 +956,12 @@ body{
958 background: #3498db; 956 background: #3498db;
959 } 957 }
960 .form_button{ 958 .form_button{
961 - width: 220px; 959 + width: 230px;
962 left: 0; 960 left: 0;
963 right: 0; 961 right: 0;
964 margin: 0 auto; 962 margin: 0 auto;
  963 + position: absolute;
  964 + bottom: 20px;
965 } 965 }
966 .createClassBtn{ 966 .createClassBtn{
967 width: 80px; 967 width: 80px;
@@ -980,15 +980,101 @@ body{ @@ -980,15 +980,101 @@ body{
980 background: #b3b3b3; 980 background: #b3b3b3;
981 } 981 }
982 /*创建课堂第二步*/ 982 /*创建课堂第二步*/
  983 +.step_page1TimeBox{
  984 + width: 100%;
  985 + float: left;
  986 + padding-top:10px;
  987 +}
  988 +.step_page1Time{
  989 + float: left;
  990 + width: 125px;
  991 + padding-right: 5px;
  992 + text-align: right;
  993 + line-height: 32px;
  994 +}
  995 +.createClassTime{
  996 + width:90px;
  997 + height:28px;
  998 + border:1px solid #ccc;
  999 + border-radius: 2px;
  1000 + text-align: center;
  1001 + line-height: 28px;
  1002 + margin-left:8px;
  1003 + float: left;
  1004 + padding-left:20px;
  1005 +}
  1006 +.createClassTime1{
  1007 + width:135px;
  1008 + margin-left:20px;
  1009 + padding-left:0;
  1010 +}
  1011 +.form_button2{
  1012 + width: 360px;
  1013 + position: absolute;
  1014 + left: 0;
  1015 + bottom: 20px;
  1016 +}
  1017 +.createClassBtnUp{
  1018 + margin-right:40px;
  1019 +}
983 /*创建课堂第三步*/ 1020 /*创建课堂第三步*/
  1021 +.borderNone{
  1022 + border:none;
  1023 + background: none;
  1024 + outline: none;
  1025 + width: 90px;
  1026 +}
984 /*创建课堂第四步*/ 1027 /*创建课堂第四步*/
985 .createClassBox{ 1028 .createClassBox{
986 display: none; 1029 display: none;
987 } 1030 }
  1031 +.step_page1Title1{
  1032 + margin-left:15px;
  1033 +}
  1034 +.createClassTimeRight{
  1035 + padding-left:4px;
  1036 +}
988 .step_page1{ 1037 .step_page1{
989 - 1038 + padding-top:15px;
  1039 +}
  1040 +.createClassMoreOptionBox{
  1041 + cursor: pointer;
  1042 + margin-top:10px;
  1043 + float: left;
  1044 +}
  1045 +.createClassLegend{
  1046 + padding-left: 25px;
  1047 + padding-right: 25px;
  1048 + height: 34px;
  1049 + background: #f9f9f9;
  1050 + border: #f4f3f3 1px solid;
  1051 + line-height: 34px;
  1052 + margin-right: 20px;
  1053 + margin-left: 20px;
  1054 + cursor: pointer;
  1055 + margin-top:10px;
  1056 +}
  1057 +.createClassLegendConfig{
  1058 + padding-right: 530px;
  1059 + background: transparent url(../images/icon-.png) right no-repeat;
  1060 + color: #61719a;
  1061 +}
  1062 +.allowPublicDetail + label{
  1063 + padding-right: 15px;
  1064 +}
  1065 +.form_item1{
  1066 + float: left;
  1067 + width: 30%;
  1068 +}
  1069 +.step_page1Title2{
  1070 +}
  1071 +.short_select{
  1072 + padding:3px;
  1073 + margin-top:3px;
  1074 +}
  1075 +.classConfig_details{
  1076 + padding-top:10px;
990 } 1077 }
991 -  
992 /*底部*/ 1078 /*底部*/
993 .footerBg{ 1079 .footerBg{
994 width:100%; 1080 width:100%;
@@ -241,11 +241,11 @@ @@ -241,11 +241,11 @@
241 <div class="classManagementBox" id="classManagementBox"> 241 <div class="classManagementBox" id="classManagementBox">
242 <div class="classManagementLeft" id="classManagementLeft"> 242 <div class="classManagementLeft" id="classManagementLeft">
243 <ul class="recordUl" id="recordUl"> 243 <ul class="recordUl" id="recordUl">
244 - <li class="recordLi"> 244 + <li class="recordLi recordLiCheck">
245 <label for="courseManagement" class="iconfont">&#xe69a;</label> 245 <label for="courseManagement" class="iconfont">&#xe69a;</label>
246 - <span class="recordLiText recordLiTextCheck" id="courseManagement">课程管理</span> 246 + <span class="recordLiText" id="courseManagement">课程管理</span>
247 </li> 247 </li>
248 - <li class="recordLi"> 248 + <li class="recordLi1">
249 <label for="createClassBtn" class="iconfont">&#xe69b;</label> 249 <label for="createClassBtn" class="iconfont">&#xe69b;</label>
250 <span class="recordLiText" id="createClassBtn">创建课堂</span> 250 <span class="recordLiText" id="createClassBtn">创建课堂</span>
251 </li> 251 </li>
@@ -282,7 +282,7 @@ @@ -282,7 +282,7 @@
282 <div class="classManagementRight" id="classManagementRight"> 282 <div class="classManagementRight" id="classManagementRight">
283 <div class="classManagementRightTitle" id="classManagementRightTitle"> 283 <div class="classManagementRightTitle" id="classManagementRightTitle">
284 <div class="liveInfoLeft" id="liveInfoList"> 284 <div class="liveInfoLeft" id="liveInfoList">
285 - <div class="liveInfoLeftLi">正在直播</div> 285 + <div class="liveInfoLeftLi liveInfoLeftLiCheck">正在直播</div>
286 <div class="liveInfoLeftLi">未开始</div> 286 <div class="liveInfoLeftLi">未开始</div>
287 <div class="liveInfoLeftLi">已结束</div> 287 <div class="liveInfoLeftLi">已结束</div>
288 </div> 288 </div>
@@ -397,7 +397,7 @@ @@ -397,7 +397,7 @@
397 <a href="javascript: void(0)" id="createClassA" class="createClassA iconfont">&#xe638;</a> 397 <a href="javascript: void(0)" id="createClassA" class="createClassA iconfont">&#xe638;</a>
398 </div> 398 </div>
399 <div class="createClassContent"> 399 <div class="createClassContent">
400 - <div class="scheduleForm" id="scheduleForm1" style="display: block;"> 400 + <div class="scheduleForm" id="scheduleForm1">
401 <div class="step_content"> 401 <div class="step_content">
402 <div class="scheduleWireBox"> 402 <div class="scheduleWireBox">
403 <div class="scheduleWire"></div> 403 <div class="scheduleWire"></div>
@@ -437,10 +437,10 @@ @@ -437,10 +437,10 @@
437 主持人密码: 437 主持人密码:
438 </label> 438 </label>
439 <div class="step_page1_widget"> 439 <div class="step_page1_widget">
440 - <input id="classThemePassWord" name="classThemePassWord" type="text" class="classThemeInfo" placeholder="输入主持人密码" value="">1-32个任意字符 440 + <input id="classThemePassWord" name="classThemePassWord" type="text" class="classThemeInfo" placeholder="输入主持人密码" value="">6-12个字符
441 </div> 441 </div>
442 </div> 442 </div>
443 - <div class="form_item public_form_item"> 443 + <div class="form_item">
444 <label class="step_page1Title"> 444 <label class="step_page1Title">
445 是否公开课堂: 445 是否公开课堂:
446 </label> 446 </label>
@@ -455,7 +455,7 @@ @@ -455,7 +455,7 @@
455 </label> 455 </label>
456 </div> 456 </div>
457 </div> 457 </div>
458 - <div class="form_item public-widget"> 458 + <div class="form_item">
459 <label class="step_page1Title"> 459 <label class="step_page1Title">
460 课堂类型: 460 课堂类型:
461 </label> 461 </label>
@@ -474,7 +474,7 @@ @@ -474,7 +474,7 @@
474 </label> 474 </label>
475 </div> 475 </div>
476 </div> 476 </div>
477 - <div class="form_item public-widget" id="h5"> 477 + <div class="form_item" id="h5">
478 <label class="step_page1Title"> 478 <label class="step_page1Title">
479 是否支持h5: 479 是否支持h5:
480 </label> 480 </label>
@@ -483,13 +483,13 @@ @@ -483,13 +483,13 @@
483 <label for="h5ModuleYes" class="publicInfo"> 483 <label for="h5ModuleYes" class="publicInfo">
484 484
485 </label> 485 </label>
486 - <input class="allowPublic" type="radio" name="allowPublic" id="h5ModuleNo" value="0"> 486 + <input class="allowPublic" type="radio" name="h5Module" id="h5ModuleNo" value="0">
487 <label for="h5ModuleNo" class="publicInfo"> 487 <label for="h5ModuleNo" class="publicInfo">
488 488
489 </label> 489 </label>
490 </div> 490 </div>
491 </div> 491 </div>
492 - <div class="form_item confPassTR"> 492 + <div class="form_item">
493 <label class="step_page1Title"> 493 <label class="step_page1Title">
494 课堂密码: 494 课堂密码:
495 </label> 495 </label>
@@ -502,18 +502,18 @@ @@ -502,18 +502,18 @@
502 </div> </span> </span> 502 </div> </span> </span>
503 </div> 503 </div>
504 </div> 504 </div>
505 - <div class="form_item describe-widget"> 505 + <div class="form_item">
506 <label class="step_page1Title"> 506 <label class="step_page1Title">
507 课堂描述: 507 课堂描述:
508 </label> 508 </label>
509 <div class="step_page1_widget"> 509 <div class="step_page1_widget">
510 - <textarea id="meeting_content" class="classDescribeArea" placeholder=" 给课堂添加描述..."></textarea> 510 + <textarea id="meeting_content" class="classDescribeArea" placeholder="给课堂添加描述..."></textarea>
511 <span class="count"><span id="nowCountSpan">0</span>/256</span> 511 <span class="count"><span id="nowCountSpan">0</span>/256</span>
512 </div> 512 </div>
513 </div> 513 </div>
514 </div> 514 </div>
515 <div class="form_button"> 515 <div class="form_button">
516 - <input id="submit1" type="button" value="下一步" class="createClassBtn createClassConfirm"> 516 + <input id="createClassSubmit1" page-index="1" type="button" value="下一步" class="createClassBtn createClassConfirm">
517 <span class="createClassBtn main_closeBtn">取消</span> 517 <span class="createClassBtn main_closeBtn">取消</span>
518 </div> 518 </div>
519 </div> 519 </div>
@@ -544,13 +544,427 @@ @@ -544,13 +544,427 @@
544 </div> 544 </div>
545 <div class="scheduleWireBg"></div> 545 <div class="scheduleWireBg"></div>
546 </div> 546 </div>
547 - <div class="step_page2"> 547 + <div class="step_page1">
548 <div class="step_page1TimeBox"> 548 <div class="step_page1TimeBox">
549 - <span class="step_page1Time">开始时间</span> 549 + <label class="step_page1Time">开始时间</label>
  550 + <div class="createClassTime createClassTime1" id="createClassStartTime"></div>
  551 + <select id="meeting_starthour" class="createClassTime">
  552 + <option value="00">
  553 + 0 点
  554 + </option>
  555 + <option value="01">
  556 + 1 点
  557 + </option>
  558 + <option value="02">
  559 + 2 点
  560 + </option>
  561 + <option value="03">
  562 + 3 点
  563 + </option>
  564 + <option value="04">
  565 + 4 点
  566 + </option>
  567 + <option value="05">
  568 + 5 点
  569 + </option>
  570 + <option value="06">
  571 + 6 点
  572 + </option>
  573 + <option value="07">
  574 + 7 点
  575 + </option>
  576 + <option value="08">
  577 + 8 点
  578 + </option>
  579 + <option value="09">
  580 + 9 点
  581 + </option>
  582 + <option value="10">
  583 + 10 点
  584 + </option>
  585 + <option value="11" selected="selected">
  586 + 11 点
  587 + </option>
  588 + <option value="12">
  589 + 12 点
  590 + </option>
  591 + <option value="13">
  592 + 13 点
  593 + </option>
  594 + <option value="14">
  595 + 14 点
  596 + </option>
  597 + <option value="15">
  598 + 15 点
  599 + </option>
  600 + <option value="16">
  601 + 16 点
  602 + </option>
  603 + <option value="17">
  604 + 17 点
  605 + </option>
  606 + <option value="18">
  607 + 18 点
  608 + </option>
  609 + <option value="19">
  610 + 19 点
  611 + </option>
  612 + <option value="20">
  613 + 20 点
  614 + </option>
  615 + <option value="21">
  616 + 21 点
  617 + </option>
  618 + <option value="22">
  619 + 22 点
  620 + </option>
  621 + <option value="23">
  622 + 23 点
  623 + </option>
  624 + </select>
  625 + <select id="meeting_startminute" class="createClassTime">
  626 + <option value="00" selected="selected">
  627 + 0 分
  628 + </option>
  629 + <option value="05">
  630 + 5 分
  631 + </option>
  632 + <option value="10">
  633 + 10 分
  634 + </option>
  635 + <option value="15">
  636 + 15 分
  637 + </option>
  638 + <option value="20">
  639 + 20 分
  640 + </option>
  641 + <option value="25">
  642 + 25 分
  643 + </option>
  644 + <option value="30">
  645 + 30 分
  646 + </option>
  647 + <option value="35">
  648 + 35 分
  649 + </option>
  650 + <option value="40">
  651 + 40 分
  652 + </option>
  653 + <option value="45">
  654 + 45 分
  655 + </option>
  656 + <option value="50">
  657 + 50 分
  658 + </option>
  659 + <option value="55">
  660 + 55 分
  661 + </option>
  662 + </select>
550 </div> 663 </div>
551 <div class="step_page1TimeBox"> 664 <div class="step_page1TimeBox">
552 - <span class="step_page1Time">结束时间</span> 665 + <label class="step_page1Time">结束时间</label>
  666 + <div class="createClassTime createClassTime1" id="createClassEndTime"></div>
  667 + <select id="meeting_endhour" class="createClassTime">
  668 + <option value="00">
  669 + 0 点
  670 + </option>
  671 + <option value="01">
  672 + 1 点
  673 + </option>
  674 + <option value="02">
  675 + 2 点
  676 + </option>
  677 + <option value="03">
  678 + 3 点
  679 + </option>
  680 + <option value="04">
  681 + 4 点
  682 + </option>
  683 + <option value="05">
  684 + 5 点
  685 + </option>
  686 + <option value="06">
  687 + 6 点
  688 + </option>
  689 + <option value="07">
  690 + 7 点
  691 + </option>
  692 + <option value="08">
  693 + 8 点
  694 + </option>
  695 + <option value="09">
  696 + 9 点
  697 + </option>
  698 + <option value="10">
  699 + 10 点
  700 + </option>
  701 + <option value="11" selected="selected">
  702 + 11 点
  703 + </option>
  704 + <option value="12">
  705 + 12 点
  706 + </option>
  707 + <option value="13">
  708 + 13 点
  709 + </option>
  710 + <option value="14">
  711 + 14 点
  712 + </option>
  713 + <option value="15">
  714 + 15 点
  715 + </option>
  716 + <option value="16">
  717 + 16 点
  718 + </option>
  719 + <option value="17">
  720 + 17 点
  721 + </option>
  722 + <option value="18">
  723 + 18 点
  724 + </option>
  725 + <option value="19">
  726 + 19 点
  727 + </option>
  728 + <option value="20">
  729 + 20 点
  730 + </option>
  731 + <option value="21">
  732 + 21 点
  733 + </option>
  734 + <option value="22">
  735 + 22 点
  736 + </option>
  737 + <option value="23">
  738 + 23 点
  739 + </option>
  740 + </select>
  741 + <select id="meeting_endminute" class="createClassTime">
  742 + <option value="00" selected="selected">
  743 + 0 分
  744 + </option>
  745 + <option value="05">
  746 + 5 分
  747 + </option>
  748 + <option value="10">
  749 + 10 分
  750 + </option>
  751 + <option value="15">
  752 + 15 分
  753 + </option>
  754 + <option value="20">
  755 + 20 分
  756 + </option>
  757 + <option value="25">
  758 + 25 分
  759 + </option>
  760 + <option value="30">
  761 + 30 分
  762 + </option>
  763 + <option value="35">
  764 + 35 分
  765 + </option>
  766 + <option value="40">
  767 + 40 分
  768 + </option>
  769 + <option value="45">
  770 + 45 分
  771 + </option>
  772 + <option value="50">
  773 + 50 分
  774 + </option>
  775 + <option value="55">
  776 + 55 分
  777 + </option>
  778 + </select>
  779 + </div>
  780 + </div>
  781 + <div class="form_button form_button2">
  782 + <input id="createClassUpOne" page-index="0" type="button" value="上一步" class="createClassBtn createClassConfirm createClassBtnUp">
  783 + <input id="createClassSubmit2" page-index="2" type="button" value="下一步" class="createClassBtn createClassConfirm">
  784 + <span class="createClassBtn main_closeBtn">取消</span>
  785 + </div>
  786 + </div>
  787 + </div>
  788 + <div class="scheduleForm" id="scheduleForm3">
  789 + <div class="step_content">
  790 + <div class="scheduleWireBox">
  791 + <div class="scheduleWire scheduleWire2"></div>
  792 + <div class="scheduleWireTitBox">
  793 + <span class="scheduleWireBoxTit">课堂信息</span>
  794 + <span class="scheduleWireBoxTit">时间信息</span>
  795 + <span class="scheduleWireBoxTit">功能信息</span>
  796 + <span class="scheduleWireBoxTit">创建完成</span>
553 </div> 797 </div>
  798 + <div class="scheduleWireIndBox">
  799 + <p class="scheduleWireInd">
  800 + <span class="scheduleWireIndText scheduleWireIndText1">1</span>
  801 + </p>
  802 + <p class="scheduleWireInd">
  803 + <span class="scheduleWireIndText scheduleWireIndText1">2</span>
  804 + </p>
  805 + <p class="scheduleWireInd">
  806 + <span class="scheduleWireIndText scheduleWireIndText1">3</span>
  807 + </p>
  808 + <p class="scheduleWireInd">
  809 + <span class="scheduleWireIndText">4</span>
  810 + </p>
  811 + </div>
  812 + <div class="scheduleWireBg"></div>
  813 + </div>
  814 + <div class="step_page1">
  815 + <div class="form_item">
  816 + <label class="step_page1Title step_page1Title1">
  817 + 课堂功能:
  818 + </label>
  819 + <div class="step_page1_widget">
  820 + <input class="allowPublic" type="radio" name="meetType" id="meetTypeVideo" value="1" checked="checked">
  821 + <label for="meetTypeVideo" class="publicInfo">
  822 + 视频
  823 + </label>
  824 + </div>
  825 + </div>
  826 + <div class="form_item">
  827 + <label class="step_page1Title step_page1Title1">
  828 + 聊天最小时间间隔:
  829 + </label>
  830 + <div class="step_page1_widget">
  831 + <span class="createClassTime createClassTime2">
  832 + <input class="chatInterval borderNone" type="input" name="meetType" id="chatInterval" value="0">
  833 + </span>
  834 + <span class="createClassTimeRight">(单位:秒)</span>
  835 + </div>
  836 + </div>
  837 + <div class="form_item">
  838 + <label class="step_page1Title step_page1Title1">
  839 + 提前入会时间:
  840 + </label>
  841 + <div class="step_page1_widget">
  842 + <span class="createClassTime createClassTime2">
  843 + <input class="aheadTime borderNone" type="input" name="meetType" id="aheadTime" value="10">
  844 +
  845 + </span>
  846 + <span class="createClassTimeRight">分钟</span>
  847 + </div>
  848 + </div>
  849 + <div class="createClassMoreOptionBox">
  850 + <p class="createClassLegend">
  851 + <span class="createClassLegendConfig">更多参数</span>
  852 + </p>
  853 + <div class="classConfig_details">
  854 + <div style="width:100%;float:left;">
  855 + <div class="form_item form_item1">
  856 + <label class="step_page1Title step_page1Title2">
  857 + 最大音频路数:
  858 + </label>
  859 +
  860 + <select id="maxAudio" class="short_select">
  861 + <option value="1">1 路</option>
  862 + <option value="2">2 路</option>
  863 + <option value="3">3 路</option>
  864 + <option value="5">5 路</option>
  865 + </select>
  866 +
  867 + </div>
  868 + <div class="form_item form_item1">
  869 + <label class="step_page1Title step_page1Title2">
  870 + 最大视频路数:
  871 + </label>
  872 +
  873 + <select id="maxVideo" class="short_select">
  874 + <option value="1">1 路</option>
  875 + <option value="2">2 路</option>
  876 + <option value="3">3 路</option>
  877 + <option value="5">5 路</option>
  878 + </select>
  879 +
  880 + </div>
  881 + </div>
  882 + <div class="form_item" id="videoQualityDiv">
  883 + <label class="step_page1Title" title="视频画质设置">
  884 + 视频画质设置:
  885 + </label>
  886 + <div class="step_page1_widget" id="videoresolution">
  887 + <input class="allowPublic allowPublicDetail" id="lowMode" name="videoQuality" type="radio" value="0">
  888 + <label for="lowMode">
  889 +
  890 + </label>
  891 + <input class="allowPublic allowPublicDetail" id="middleMode" name="videoQuality" type="radio" value="1" checked="checked">
  892 + <label for="middleMode">
  893 +
  894 + </label>
  895 + <input class="allowPublic allowPublicDetail" id="highMode" name="videoQuality" type="radio" value="2">
  896 + <label for="highMode">
  897 +
  898 + </label>
  899 + <input class="allowPublic allowPublicDetail" id="topMode" name="videoQuality" type="radio" value="3">
  900 + <label for="topMode">
  901 + 较高
  902 + </label>
  903 + <input class="allowPublic allowPublicDetail" id="mostMode" name="videoQuality" type="radio" value="4">
  904 + <label for="mostMode">
  905 + 最高
  906 + </label>
  907 + </div>
  908 + </div>
  909 + <div class="form_item">
  910 + <label class="step_page1Title">
  911 + 参会人权限:
  912 + </label>
  913 + <div class="step_page1_widget">
  914 + <input class="allowPublic allowPublicDetail" type="checkbox" name="changePage" id="turnPage" value="1" checked="checked">
  915 + <label for="turnPage" title="换页">
  916 + 换页
  917 + </label>
  918 + <input class="allowPublic allowPublicDetail" type="checkbox" name="annotate" id="comment" value="1" checked="checked">
  919 + <label for="comment" title="批注">
  920 + 批注
  921 + </label>
  922 + <input class="allowPublic allowPublicDetail" type="checkbox" name="chatCompere" id="toCompere" value="1" checked="checked">
  923 + <label for="toCompere" title="与主持人聊天">
  924 + 与主持人聊天
  925 + </label>
  926 + <input class="allowPublic allowPublicDetail" type="checkbox" name="chatParticipants" id="toParty" value="1" checked="checked">
  927 + <label for="toParty" title="与参会人聊天">
  928 + 与参会人聊天
  929 + </label>
  930 + </div>
  931 + </div>
  932 + <div class="form_item">
  933 + <label class="step_page1Title">
  934 + 课堂功能:
  935 + </label>
  936 + <div class="step_page1_widget">
  937 + <input class="allowPublic allowPublicDetail" type="checkbox" name="shareDocs" id="shareDoc" value="1" checked="checked">
  938 + <label for="shareDoc" title="文档共享">
  939 + 文档共享
  940 + </label>
  941 + <span id="screen-widget" style="display: none;"> <input class="allowPublic allowPublicDetail" type="checkbox" name="shareScreen" id="shareWin" value="1"> <label for="shareWin" title="屏幕共享">
  942 + 屏幕共享
  943 + </label> </span>
  944 + <span id="share-media-widget" style="display: none;"> <input class="allowPublic allowPublicDetail" type="checkbox" name="shareMedia" id="shareMedia" value="1"> <label for="shareMedia" title="媒体共享">
  945 + 媒体共享
  946 + </label> </span>
  947 + <input class="allowPublic allowPublicDetail" type="checkbox" name="whiteBoard" id="whiteBoard" value="1" checked="checked">
  948 + <label for="whiteBoard" title="白板">
  949 + 白板
  950 + </label>
  951 + <span id="interaction-widget">
  952 + <input class="allowPublic allowPublicDetail" type="checkbox" name="interaction" id="interaction" value="1" checked="checked">
  953 + <label for="interaction" title="是否参与音视频互动">
  954 + 是否参与音视频互动
  955 + </label> </span>
  956 + <span id="record-widget"> <input class="allowPublic allowPublicDetail" type="checkbox" name="record" id="record" value="1" checked="checked"> <label for="record" title="录制">
  957 + 录制
  958 + </label>
  959 + </span>
  960 + </div>
  961 + </div>
  962 + </div>
  963 + </div>
  964 + </div>
  965 + <div class="form_button">
  966 + <input id="createClassUpTwo" page-index="1" type="button" value="上一步" class="createClassBtn createClassConfirm">
  967 + <input id="createClassSubmit3" page-index="3" type="button" value="完成" class="createClassBtn createClassConfirm">
554 </div> 968 </div>
555 </div> 969 </div>
556 </div> 970 </div>
@@ -598,7 +1012,7 @@ @@ -598,7 +1012,7 @@
598 onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"> 1012 onkeyup="this.value=this.value.replace(/^ +| +$/g,'')">
599 </li> 1013 </li>
600 <li class="usersignNameLi usersignLi"> 1014 <li class="usersignNameLi usersignLi">
601 - <input id="signPassWord" class="userPassWordInput usersignInput" type="text" placeholder="设置密码" maxlength="20" 1015 + <input id="signPassWord" class="userPassWordInput usersignInput" type="password" placeholder="设置密码" maxlength="20"
602 onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"> 1016 onkeyup="this.value=this.value.replace(/^ +| +$/g,'')">
603 <span class="requiredMsg">*</span> 1017 <span class="requiredMsg">*</span>
604 </li> 1018 </li>
@@ -633,7 +1047,7 @@ @@ -633,7 +1047,7 @@
633 onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"> 1047 onkeyup="this.value=this.value.replace(/^ +| +$/g,'')">
634 </li> 1048 </li>
635 <li class="userPassWordLi usersignLi"> 1049 <li class="userPassWordLi usersignLi">
636 - <input id="loginPassWord" class="userPassWordInput usersignInput" type="text" placeholder="密码" maxlength="20" 1050 + <input id="loginPassWord" class="userPassWordInput usersignInput" type="password" placeholder="密码" maxlength="20"
637 onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"> 1051 onkeyup="this.value=this.value.replace(/^ +| +$/g,'')">
638 </li> 1052 </li>
639 <p class="forgetPasswordBtn" id="forgetPasswordBtn"> 1053 <p class="forgetPasswordBtn" id="forgetPasswordBtn">
@@ -16,7 +16,7 @@ let loger = Loger.getLoger('PC-CreateClassApe'); @@ -16,7 +16,7 @@ let loger = Loger.getLoger('PC-CreateClassApe');
16 class CreateClassApe extends Ape { 16 class CreateClassApe extends Ape {
17 constructor() { 17 constructor() {
18 super(); 18 super();
19 - this.classDateList = {};//课堂的所有数据 19 + this.classDateList = {};//创建课堂信息
20 this.addEvent(); 20 this.addEvent();
21 this.init(); 21 this.init();
22 } 22 }
@@ -26,32 +26,41 @@ class CreateClassApe extends Ape { @@ -26,32 +26,41 @@ class CreateClassApe extends Ape {
26 this._judgeListPlace(); 26 this._judgeListPlace();
27 $('#collectYes').hide(); 27 $('#collectYes').hide();
28 28
  29 + this._showPresentTime();
  30 +
29 $('#createClassBtn').on('click',this._createClassBtnHandler.bind(this)); 31 $('#createClassBtn').on('click',this._createClassBtnHandler.bind(this));
30 $('.recordLi').on('click',this._recordLiHandler.bind(this));//课堂分类 32 $('.recordLi').on('click',this._recordLiHandler.bind(this));//课堂分类
31 $('.liveInfoLeftLi').on('click',this._liveInfoLeftLiHandler.bind(this));//直播信息 33 $('.liveInfoLeftLi').on('click',this._liveInfoLeftLiHandler.bind(this));//直播信息
32 34
33 - $('#createClassA').on('click',this._closeClassHandler.bind(this));  
34 - $('.main_closeBtn').on('click',this._closeClassHandler.bind(this)); 35 + $('#createClassA').on('click',this._closeClassHandler.bind(this));//关闭创建课堂
  36 + $('.main_closeBtn').on('click',this._closeClassHandler.bind(this));//关闭创建课堂
35 37
36 - //执行一个laydate实例  
37 - dateUI.render({  
38 - elem: '#liveInfoCenterLiveStart' //指定元素  
39 - });  
40 - //执行一个laydate实例  
41 - dateUI.render({  
42 - elem: '#liveInfoCenterLiveEnd' //指定元素  
43 - }); 38 + $('#createClassSubmit1').on('click',this._createClassSubmit1Handler.bind(this));//创建课堂第一步
  39 + $('#createClassUpOne').on('click',this._createClassUpHandler.bind(this));//创建课堂第一步
  40 + $('#createClassSubmit2').on('click',this._createClassSubmit2Handler.bind(this));//创建课堂第二步
  41 + $('#createClassUpTwo').on('click',this._createClassUpTwoHandler.bind(this));//创建课堂第二步
  42 +
  43 + $('#createClassSubmit3').on('click',this._createClassSubmit3Handler.bind(this));//创建课堂第三步
  44 + //日历插件
  45 + this._dateUI();
44 } 46 }
45 47
46 addEvent() { 48 addEvent() {
47 49
48 } 50 }
  51 + _showPresentTime(){
  52 + let newDate = new Date();
  53 + let month = (newDate.getMonth()+1)<10?'0'+(newDate.getMonth()+1):(newDate.getMonth()+1);
  54 + let date = newDate.getDate()<10?'0'+newDate.getDate():newDate.getDate();
  55 + let timer = newDate.getFullYear() + '-'+ month +'-'+ date;
  56 + $('.createClassTime1').text(timer);
  57 + }
49 _judgeListPlace(){ 58 _judgeListPlace(){
50 let i=(i%4); 59 let i=(i%4);
51 $('#classifyListContent').find('.classifyList').eq(i==3).addClass('classifyListR'); 60 $('#classifyListContent').find('.classifyList').eq(i==3).addClass('classifyListR');
52 } 61 }
53 _recordLiHandler(evt){ 62 _recordLiHandler(evt){
54 - $(evt.currentTarget).addClass('recordLiTextCheck').siblings().removeClass('recordLiTextCheck'); 63 + $(evt.currentTarget).addClass('recordLiCheck').siblings().removeClass('recordLiCheck');
55 } 64 }
56 _liveInfoLeftLiHandler(evt){ 65 _liveInfoLeftLiHandler(evt){
57 $(evt.currentTarget).addClass('liveInfoLeftLiCheck').siblings().removeClass('liveInfoLeftLiCheck'); 66 $(evt.currentTarget).addClass('liveInfoLeftLiCheck').siblings().removeClass('liveInfoLeftLiCheck');
@@ -65,6 +74,152 @@ class CreateClassApe extends Ape { @@ -65,6 +74,152 @@ class CreateClassApe extends Ape {
65 } 74 }
66 _closeClassHandler(){ 75 _closeClassHandler(){
67 $('#createClassBox').hide(); 76 $('#createClassBox').hide();
  77 + this._closeCreateClass();
  78 + }
  79 + _createClassSubmit1Handler(){
  80 + let meetingName = $('#classThemeUserName');//课堂主题
  81 + let presenterPassword = $('#classThemePassWord');//主持人密码
  82 + let createClassSubmit1 = $('#createClassSubmit1');//
  83 + let isPublic = $("input[name='allowPublic']:checked").val();//是否公开课堂
  84 + let meetingType = $("input[name='meetingType']:checked").val();//课堂类型
  85 + let h5Module = $("input[name='h5Module']:checked").val();//是否支持H5
  86 + let partcKey = $('#partcKey').val(); //课堂密码
  87 + let meetingContent = $("meeting_content").val();//课堂描述
  88 + if(meetingName.val().length < 1){
  89 + return false;
  90 + }else if(presenterPassword.val().length <= 6 && presenterPassword.val().length >= 12){
  91 + return false;
  92 + }else{
  93 + console.log('第一步信息完成')
  94 + let dateList ={
  95 + "meetingName":meetingName.val(),
  96 + "presenterPassword":presenterPassword.val(),
  97 + "isPublic":isPublic,
  98 + "meetingType":meetingType,
  99 + "h5Module":h5Module,
  100 + "partcKey":'',
  101 + "meetingContent":meetingContent
  102 + }
  103 + this.classDateList = dateList;
  104 + $('#scheduleForm1').hide();
  105 + $('#scheduleForm2').show();
  106 + }
  107 +
  108 + }
  109 + _createClassUpHandler(){
  110 + $('#scheduleForm1').show();
  111 + $('#scheduleForm2').hide();
  112 + }
  113 + _createClassSubmit2Handler(){
  114 + let createClassStartTime = $('#createClassStartTime').text();//开始年
  115 + let meeting_starthour = $('#meeting_starthour').val();//开始月
  116 + let meeting_startminute = $('#meeting_startminute').val();//开始日
  117 +
  118 + let createClassEndTime = $('#createClassEndTime').text();//结束年
  119 + let meeting_endhour = $('#meeting_endhour').val();//结束月
  120 + let meeting_endminute = $('#meeting_endminute').val();//结束日
  121 +
  122 +
  123 + let dateList = {
  124 + "beginTime":createClassStartTime+' '+meeting_starthour+':'+meeting_startminute,
  125 + "endTime":createClassEndTime+' '+meeting_endhour+':'+meeting_endminute
  126 + }
  127 +
  128 + $.extend(this.classDateList,dateList);
  129 +
  130 +
  131 + $('#scheduleForm2').hide();
  132 + $('#scheduleForm3').show();
  133 + }
  134 + _createClassUpTwoHandler(){
  135 + $('#scheduleForm2').show();
  136 + $('#scheduleForm3').hide();
  137 + }
  138 + _createClassSubmit3Handler(){
  139 + let chatInterval = $('#chatInterval').val();
  140 + let aheadTime = $('#aheadTime').val();
  141 + let maxVideoChannels = $('#maxAudio').val();
  142 + let max_audioChannels = $('#maxVideo').val();
  143 + let video_quality = $("input[name='videoQuality']:checked").val();//视频画质
  144 +
  145 + let dateList = {
  146 + "chatInterval":chatInterval,
  147 + "aheadTime":aheadTime,
  148 + "maxVideoChannels":maxVideoChannels,
  149 + "max_audioChannels":max_audioChannels,
  150 + "video_quality":video_quality,
  151 + }
  152 + $.extend(this.classDateList,dateList);
  153 +
  154 + //发送创建新课堂
  155 + this.detailClass();
  156 +
  157 + $('#createClassBox').hide();
  158 + $('#scheduleForm3').hide();
  159 +
  160 + //清空创建信息界面
  161 + this._closeCreateClass();
  162 + }
  163 + detailClass(){
  164 + let dateList = this.classDateList;
  165 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/createMeeting';
  166 + let userName = window.localStorage.getItem('loginName');
  167 + dateList.siteId = 'markettest';
  168 + dateList.userId = '123';
  169 + dateList.userName = userName;
  170 + dateList.userType = 1;
  171 +
  172 + let that = this;
  173 + $.ajax({
  174 + type : "POST",
  175 + url : _url,
  176 + data : dateList,
  177 + headers: {'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
  178 + success:function(_data){
  179 + //获取课堂数据
  180 + if(_data || _data.code == 0){
  181 + that._enterClass(_data.returnData.data);
  182 + }
  183 + },
  184 + error:function(error){
  185 + console.log(error,'失败')
  186 + }
  187 + })
  188 + }
  189 + _enterClass(_data){
  190 + window.open(_data.meetingUrl);
  191 + }
  192 + //清空创建课堂数据
  193 + _closeCreateClass(){
  194 + $('#classThemeUserName').val('');
  195 + $('#classThemePassWord').val('');
  196 + $("input[name='allowPublic']").get(0).checked = true;
  197 + $("input[name='meetingType']").get(0).checked = true;
  198 + $("input[name='h5Module']").get(0).checked = true;
  199 + $('#partcKey').text('');
  200 + $('#meeting_content').val('');
  201 + this._showPresentTime();
  202 +
  203 + $('#chatInterval').val('0');
  204 + $('#aheadTime').val('0');
  205 + }
  206 + _dateUI(){
  207 + //执行一个laydate实例
  208 + dateUI.render({
  209 + elem: '#liveInfoCenterLiveStart' //指定元素
  210 + });
  211 + //执行一个laydate实例
  212 + dateUI.render({
  213 + elem: '#liveInfoCenterLiveEnd' //指定元素
  214 + });
  215 + //执行一个laydate实例
  216 + dateUI.render({
  217 + elem: '#createClassStartTime' //指定元素
  218 + });
  219 + //执行一个laydate实例
  220 + dateUI.render({
  221 + elem: '#createClassEndTime' //指定元素
  222 + });
68 } 223 }
69 } 224 }
70 export default CreateClassApe; 225 export default CreateClassApe;
@@ -58,9 +58,11 @@ class HomeApe extends Ape { @@ -58,9 +58,11 @@ class HomeApe extends Ape {
58 } 58 }
59 detailPage(){ 59 detailPage(){
60 let that = this; 60 let that = this;
  61 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
61 $.ajax({ 62 $.ajax({
62 type: "POST", 63 type: "POST",
63 - url: 'http://192.168.31.8:3000/meeting/getMeeting', 64 + url: _url,
  65 + data:{siteId:'markettest'},
64 headers: {'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'}, 66 headers: {'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
65 success:function(_data){ 67 success:function(_data){
66 // loger.log(_data,'成功') 68 // loger.log(_data,'成功')
@@ -85,24 +87,27 @@ class HomeApe extends Ape { @@ -85,24 +87,27 @@ class HomeApe extends Ape {
85 liveList.empty(); 87 liveList.empty();
86 lanclassList.empty(); 88 lanclassList.empty();
87 teacherIntro.empty(); 89 teacherIntro.empty();
  90 + if(_data){
88 let _dataList = _data.meetingInfo; 91 let _dataList = _data.meetingInfo;
89 - for(let i = 0;i<_dataList.length;i++){  
90 - if(i<8){  
91 - let j = (i%4)==3;  
92 - let _getTime = this.getTime(_dataList[i].beginTime,_dataList[i].endTime)  
93 - let _classifyList = this._format(classifyList,{  
94 - _classifyListR : j?'classifyListR':'',  
95 - _id : _dataList[i].id,  
96 - _msgImg :'../images/u373.png',  
97 - _classroomTitle : _dataList[i].meetingName,  
98 - _schoolTime : _getTime,  
99 - _subscribeNum : _dataList[i].reservationNumber+'人已预约'  
100 - })  
101 - liveList.append(_classifyList);  
102 - lanclassList.append(_classifyList);  
103 - teacherIntro.append(_classifyList); 92 + for(let i = 0;i<_dataList.length;i++){
  93 + if(i<8){
  94 + let j = (i%4)==3;
  95 + let _getTime = this.getTime(_dataList[i].beginTime,_dataList[i].endTime)
  96 + let _classifyList = this._format(classifyList,{
  97 + _classifyListR : j?'classifyListR':'',
  98 + _id : _dataList[i].id,
  99 + _msgImg :'../images/u373.png',
  100 + _classroomTitle : _dataList[i].meetingName,
  101 + _schoolTime : _getTime,
  102 + _subscribeNum : _dataList[i].reservationNumber+'人已预约'
  103 + })
  104 + liveList.append(_classifyList);
  105 + lanclassList.append(_classifyList);
  106 + teacherIntro.append(_classifyList);
  107 + }
104 } 108 }
105 } 109 }
  110 +
106 } 111 }
107 getTime(start,end){ 112 getTime(start,end){
108 113
@@ -61,13 +61,14 @@ class LanclassApe extends Ape { @@ -61,13 +61,14 @@ class LanclassApe extends Ape {
61 } 61 }
62 //点击翻页 62 //点击翻页
63 _pageNumBtnHandler(evt){ 63 _pageNumBtnHandler(evt){
  64 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
64 let _ele = $(evt.target); 65 let _ele = $(evt.target);
65 let that = this; 66 let that = this;
66 if(_ele.siblings().length > 0 && _ele.text()!= '...' ){ 67 if(_ele.siblings().length > 0 && _ele.text()!= '...' ){
67 _ele.addClass('pageNumBtnCheck').siblings().removeClass('pageNumBtnCheck'); 68 _ele.addClass('pageNumBtnCheck').siblings().removeClass('pageNumBtnCheck');
68 $.ajax({ 69 $.ajax({
69 type: "POST", 70 type: "POST",
70 - url: 'http://192.168.31.8:3000/meeting/getMeeting', 71 + url: _url,
71 headers: {'page':_ele.text(), 72 headers: {'page':_ele.text(),
72 'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo', 73 'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo',
73 }, 74 },
@@ -90,10 +91,12 @@ class LanclassApe extends Ape { @@ -90,10 +91,12 @@ class LanclassApe extends Ape {
90 } 91 }
91 } 92 }
92 detailPage(){ 93 detailPage(){
  94 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
93 let that = this; 95 let that = this;
94 $.ajax({ 96 $.ajax({
95 type: "POST", 97 type: "POST",
96 - url: 'http://192.168.31.8:3000/meeting/getMeeting', 98 + url: _url,
  99 + data:{siteId:'markettest'},
97 headers: {'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'}, 100 headers: {'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
98 success:function(_data){ 101 success:function(_data){
99 // loger.log(_data,'成功') 102 // loger.log(_data,'成功')
@@ -125,17 +128,19 @@ class LanclassApe extends Ape { @@ -125,17 +128,19 @@ class LanclassApe extends Ape {
125 let classifyListContent = $('#classifyListContent'); 128 let classifyListContent = $('#classifyListContent');
126 classifyListContent.empty(); 129 classifyListContent.empty();
127 let _dataList = _data.meetingInfo; 130 let _dataList = _data.meetingInfo;
128 - for(let i = 0;i<_dataList.length;i++){  
129 - let j = (i%4)==3;  
130 - let _classifyList = this._format(classifyList,{  
131 - _classifyListR : j?'classifyListR':'',  
132 - _id : _dataList[i].id,  
133 - _msgImg :'../images/u373.png',  
134 - _classroomTitle : _dataList[i].meetingName,  
135 - _schoolTime : '11',  
136 - _subscribeNum : _dataList[i].reservationNumber+'人已预约'  
137 - })  
138 - classifyListContent.append(_classifyList); 131 + if(_dataList){
  132 + for(let i = 0;i<_dataList.length;i++){
  133 + let j = (i%4)==3;
  134 + let _classifyList = this._format(classifyList,{
  135 + _classifyListR : j?'classifyListR':'',
  136 + _id : _dataList[i].id,
  137 + _msgImg :'../images/u373.png',
  138 + _classroomTitle : _dataList[i].meetingName,
  139 + _schoolTime : '11',
  140 + _subscribeNum : _dataList[i].reservationNumber+'人已预约'
  141 + })
  142 + classifyListContent.append(_classifyList);
  143 + }
139 } 144 }
140 } 145 }
141 _classDatepageNum(_data){ //page 146 _classDatepageNum(_data){ //page
@@ -19,7 +19,6 @@ class ListDetailsApe extends Ape { @@ -19,7 +19,6 @@ class ListDetailsApe extends Ape {
19 } 19 }
20 20
21 init() { 21 init() {
22 - // this.detailPage();  
23 $('#themeBox ').on('click','.classifyList',this._curriculumListHandler.bind(this)); 22 $('#themeBox ').on('click','.classifyList',this._curriculumListHandler.bind(this));
24 } 23 }
25 24
@@ -34,11 +33,13 @@ class ListDetailsApe extends Ape { @@ -34,11 +33,13 @@ class ListDetailsApe extends Ape {
34 detailPage(_id){ 33 detailPage(_id){
35 let that = this; 34 let that = this;
36 let signInfo = { 35 let signInfo = {
37 - id: _id 36 + id: _id,
  37 + siteId:'markettest'
38 } 38 }
  39 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
39 $.ajax({ 40 $.ajax({
40 type: "post", 41 type: "post",
41 - url: 'http://192.168.31.8:3000/meeting/getMeeting', 42 + url: _url,
42 headers: { 43 headers: {
43 'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo' 44 'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'
44 }, 45 },
@@ -46,7 +47,7 @@ class ListDetailsApe extends Ape { @@ -46,7 +47,7 @@ class ListDetailsApe extends Ape {
46 success:function(_data){ 47 success:function(_data){
47 //获取课堂数据 48 //获取课堂数据
48 if(_data || _data.code == 200){ 49 if(_data || _data.code == 200){
49 - that._gainClassData(_data); 50 + that._gainClassData(_data);
50 } 51 }
51 }, 52 },
52 error:function(error){ 53 error:function(error){
@@ -60,14 +61,16 @@ class ListDetailsApe extends Ape { @@ -60,14 +61,16 @@ class ListDetailsApe extends Ape {
60 } 61 }
61 _classDateContent(_data){ 62 _classDateContent(_data){
62 let _dataList = _data.meetingInfo[0]; 63 let _dataList = _data.meetingInfo[0];
63 - loger.log(_dataList)  
64 if(_dataList.meetingType == 1){ 64 if(_dataList.meetingType == 1){
65 console.log('互动课堂') 65 console.log('互动课堂')
66 this._lanclassRender(_dataList); 66 this._lanclassRender(_dataList);
67 }else if(_dataList.meetingType == 2){ 67 }else if(_dataList.meetingType == 2){
68 console.log('直播课堂') 68 console.log('直播课堂')
69 this._liveRender(_dataList); 69 this._liveRender(_dataList);
  70 + }else{
  71 + this._lanclassRender(_dataList);
70 } 72 }
  73 + $('#classifyListBox').hide();
71 } 74 }
72 //互动课堂 75 //互动课堂
73 _lanclassRender(_dataList){ 76 _lanclassRender(_dataList){
@@ -61,17 +61,18 @@ class LanclassApe extends Ape { @@ -61,17 +61,18 @@ class LanclassApe extends Ape {
61 } 61 }
62 //点击翻页 62 //点击翻页
63 _pageNumBtnHandler(evt){ 63 _pageNumBtnHandler(evt){
  64 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
64 let _ele = $(evt.target); 65 let _ele = $(evt.target);
65 let that = this; 66 let that = this;
66 if(_ele.siblings().length > 0 && _ele.text()!= '...' ){ 67 if(_ele.siblings().length > 0 && _ele.text()!= '...' ){
67 _ele.addClass('pageNumBtnCheck').siblings().removeClass('pageNumBtnCheck'); 68 _ele.addClass('pageNumBtnCheck').siblings().removeClass('pageNumBtnCheck');
68 $.ajax({ 69 $.ajax({
69 type: "POST", 70 type: "POST",
70 - url: 'http://192.168.31.8:3000/meeting/getMeeting', 71 + url: _url,
71 headers: {'page':_ele.text(), 72 headers: {'page':_ele.text(),
72 'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo', 73 'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo',
73 }, 74 },
74 - 75 + data:{siteId:'markettest'},
75 success:function(_data){ 76 success:function(_data){
76 if(_data != 200 ){ 77 if(_data != 200 ){
77 // loger.warn(_data.data.msg) 78 // loger.warn(_data.data.msg)
@@ -90,10 +91,12 @@ class LanclassApe extends Ape { @@ -90,10 +91,12 @@ class LanclassApe extends Ape {
90 } 91 }
91 } 92 }
92 detailPage(){ 93 detailPage(){
  94 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
93 let that = this; 95 let that = this;
94 $.ajax({ 96 $.ajax({
95 type: "POST", 97 type: "POST",
96 - url: 'http://192.168.31.8:3000/meeting/getMeeting', 98 + url: _url,
  99 + data:{siteId:'markettest'},
97 headers: {'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'}, 100 headers: {'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
98 success:function(_data){ 101 success:function(_data){
99 // loger.log(_data,'成功') 102 // loger.log(_data,'成功')
@@ -125,17 +128,19 @@ class LanclassApe extends Ape { @@ -125,17 +128,19 @@ class LanclassApe extends Ape {
125 let classifyListContent = $('#classifyListContent'); 128 let classifyListContent = $('#classifyListContent');
126 classifyListContent.empty(); 129 classifyListContent.empty();
127 let _dataList = _data.meetingInfo; 130 let _dataList = _data.meetingInfo;
128 - for(let i = 0;i<_dataList.length;i++){  
129 - let j = (i%4)==3;  
130 - let _classifyList = this._format(classifyList,{  
131 - _classifyListR : j?'classifyListR':'',  
132 - _id : _dataList[i].id,  
133 - _msgImg :'../images/u373.png',  
134 - _classroomTitle : _dataList[i].meetingName,  
135 - _schoolTime : '11',  
136 - _subscribeNum : _dataList[i].reservationNumber+'人已预约'  
137 - })  
138 - classifyListContent.append(_classifyList); 131 + if(_dataList){
  132 + for(let i = 0;i<_dataList.length;i++){
  133 + let j = (i%4)==3;
  134 + let _classifyList = this._format(classifyList,{
  135 + _classifyListR : j?'classifyListR':'',
  136 + _id : _dataList[i].id,
  137 + _msgImg :'../images/u373.png',
  138 + _classroomTitle : _dataList[i].meetingName,
  139 + _schoolTime : '11',
  140 + _subscribeNum : _dataList[i].reservationNumber+'人已预约'
  141 + })
  142 + classifyListContent.append(_classifyList);
  143 + }
139 } 144 }
140 } 145 }
141 _classDatepageNum(_data){ //page 146 _classDatepageNum(_data){ //page
@@ -169,9 +169,10 @@ class LoginOrRegister extends Ape { @@ -169,9 +169,10 @@ class LoginOrRegister extends Ape {
169 "IDcard":123123 169 "IDcard":123123
170 } 170 }
171 let that = this; 171 let that = this;
  172 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/users/addUser';
172 $.ajax({ 173 $.ajax({
173 type: "POST", 174 type: "POST",
174 - url: 'http://192.168.31.8:3000/users/addUser', 175 + url: _url,
175 data: signInfo, 176 data: signInfo,
176 success:function(_data){ 177 success:function(_data){
177 console.log(_data,'成功') 178 console.log(_data,'成功')
@@ -219,11 +220,13 @@ class LoginOrRegister extends Ape { @@ -219,11 +220,13 @@ class LoginOrRegister extends Ape {
219 "code":"quwerdf" 220 "code":"quwerdf"
220 } 221 }
221 let that = this; 222 let that = this;
  223 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/users/login';
222 $.ajax({ 224 $.ajax({
223 type: "POST", 225 type: "POST",
224 - url: 'http://192.168.31.8:3000/users/login', 226 + url: _url,
225 data: signInfo, 227 data: signInfo,
226 success:function(_data){ 228 success:function(_data){
  229 + loger.log('登录信息返回信息',_data)
227 that.successLogin(_data); 230 that.successLogin(_data);
228 window.localStorage.setItem("loginName",_name.value); 231 window.localStorage.setItem("loginName",_name.value);
229 window.localStorage.setItem("password", _passWord.value); 232 window.localStorage.setItem("password", _passWord.value);
@@ -60,15 +60,17 @@ class TeacherDetailApe extends Ape { @@ -60,15 +60,17 @@ class TeacherDetailApe extends Ape {
60 //点击翻页 60 //点击翻页
61 _pageNumBtnHandler(evt){ 61 _pageNumBtnHandler(evt){
62 let _ele = $(evt.target); 62 let _ele = $(evt.target);
  63 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
63 let that = this; 64 let that = this;
64 if(_ele.siblings().length > 0 && _ele.text()!= '...' ){ 65 if(_ele.siblings().length > 0 && _ele.text()!= '...' ){
65 _ele.addClass('pageNumBtnCheck').siblings().removeClass('pageNumBtnCheck'); 66 _ele.addClass('pageNumBtnCheck').siblings().removeClass('pageNumBtnCheck');
66 $.ajax({ 67 $.ajax({
67 type: "POST", 68 type: "POST",
68 - url: 'http://192.168.31.8:3000/meeting/getMeeting', 69 + url: _url,
69 headers: {'page':_ele.text(), 70 headers: {'page':_ele.text(),
70 'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo', 71 'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo',
71 }, 72 },
  73 + data:{siteId:'markettest'},
72 success:function(_data){ 74 success:function(_data){
73 if(_data != 200 ){ 75 if(_data != 200 ){
74 // loger.warn(_data.data.msg) 76 // loger.warn(_data.data.msg)
@@ -88,10 +90,12 @@ class TeacherDetailApe extends Ape { @@ -88,10 +90,12 @@ class TeacherDetailApe extends Ape {
88 } 90 }
89 detailPage(){ 91 detailPage(){
90 let that = this; 92 let that = this;
  93 + let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
91 $.ajax({ 94 $.ajax({
92 type: "POST", 95 type: "POST",
93 - url: 'http://192.168.31.8:3000/meeting/getMeeting', 96 + url: _url,
94 headers: {'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'}, 97 headers: {'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
  98 + data:{siteId:'markettest'},
95 success:function(_data){ 99 success:function(_data){
96 // loger.log(_data,'成功') 100 // loger.log(_data,'成功')
97 //获取课堂数据 101 //获取课堂数据
@@ -261,6 +261,8 @@ ClassDataProxy.curVideoQuality = 2;//画面质量 0-低;1-中;2-高; @@ -261,6 +261,8 @@ ClassDataProxy.curVideoQuality = 2;//画面质量 0-低;1-中;2-高;
261 ClassDataProxy.ssTunnelAppURL = '';//屏幕共享插件的地址 261 ClassDataProxy.ssTunnelAppURL = '';//屏幕共享插件的地址
262 ClassDataProxy.locationProtocol="http://"; 262 ClassDataProxy.locationProtocol="http://";
263 263
  264 +ClassDataProxy.locationProt = "192.168.31.8:3000";//端口
  265 +
264 ClassDataProxy.SCENE_DOC=0; 266 ClassDataProxy.SCENE_DOC=0;
265 ClassDataProxy.SCENE_SCREEN_SHARE=1; 267 ClassDataProxy.SCENE_SCREEN_SHARE=1;
266 ClassDataProxy.SCENE_MEDIA_SHARE=2; 268 ClassDataProxy.SCENE_MEDIA_SHARE=2;