董佳音

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

... ... @@ -241,13 +241,13 @@ body{
}
.slidesMap{
float: left;
width: 100%;
width:100%;
height:540px;
}
.slidesImg{
width:100%;
height:100%;
background-size: 100% 100%;
background-size: 100%;
cursor: pointer;
}
.dots{
... ... @@ -470,7 +470,7 @@ body{
width:46px;
height:46px;
border-radius: 50%;
padding-bottom: 20px;
margin-bottom: 20px;
}
.lanclassContentInfoName{
padding-left:20px;
... ... @@ -706,6 +706,10 @@ body{
.classManagementRightContent0{
height: 420px;
}
.courseContent0{
width: 100%;
height:420px;
}
.recordUl{
width: 200px;
text-align: center;
... ... @@ -1799,6 +1803,7 @@ body{
.courseMinuteList{
float: left;
margin-top:8px;
height:400px;
}
.courseMinuteListTimeTit{
height:60px;
... ...
... ... @@ -366,7 +366,7 @@
<label for="createClassBtn" class="iconfont">&#xe69b;</label>
<span class="recordLiText" id="createClassBtn">创建课堂</span>
</li>
<li class="recordLi" data="2">
<li class="recordLi" data="2" style="display: none;">
<label for="classManagement" class="iconfont">&#xe69c;</label>
<span class="recordLiText" id="classManagement">班级管理</span>
</li>
... ... @@ -382,15 +382,15 @@
<label for="RecordManagement" class="iconfont">&#xe6a0;</label>
<span class="recordLiText" id="RecordManagement">录制管理</span>
</li>
<li class="recordLi" data="6">
<li class="recordLi" data="6" style="display: none;">
<label for="siteManagement" class="iconfont">&#xe6a3;</label>
<span class="recordLiText" id="siteManagement">站点配置</span>
</li>
<li class="recordLi" data="7">
<li class="recordLi" data="7" style="display: none;">
<label for="reportManagement" class="iconfont">&#xe6a2;</label>
<span class="recordLiText" id="reportManagement">统计报告</span>
</li>
<li class="recordLi" data="8">
<li class="recordLi" data="8" style="display: none;">
<label for="personManagement" class="iconfont">&#xe6a1;</label>
<span class="recordLiText" id="personManagement">个人设置</span>
</li>
... ... @@ -401,8 +401,8 @@
<div class="classManagementRightTitle" id="classManagementRightTitle0">
<ul class="liveInfoLeft" id="liveInfoList0">
<li class="liveInfoLeftLi liveInfoLeftLiCheck" data="1">正在直播</li>
<li class="liveInfoLeftLi" data="0">未开始</li>
<li class="liveInfoLeftLi" data="2">已结束</li>
<li class="liveInfoLeftLi" data="2">未开始</li>
<li class="liveInfoLeftLi" data="4">已结束</li>
</ul>
<div class="liveInfoRight" id="liveInfoRight0">
<input class="liveInfoRightInput" id="liveInfoRightInput0" type="text">
... ... @@ -415,39 +415,105 @@
<div class="liveInfoCenterLiveCase liveInfoCenterLiveEnd" id="liveInfoCenterLiveEnd0"></div>
</div>
</div>
<div class="classManagementRightContent classManagementRightContent0" id="courseContent0">
</div>
<div class="classHandlerPageBox" id="classHandlerPageBox0">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="classHandlerPageMsg0" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="classHandlerHomePage0">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="classHandlerUpPage0">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="classHandlerDownPage0">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="classHandlerEndPage0">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="classHandlerPageInfoInput0" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="classHandlerSpecificPage0">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
<div class="classManagementRightContent classManagementRightContent0">
<div id="courseContent0" class="courseContent0"></div>
<div id="classHandlerPageBox0">
<div class="classHandlerPageBox" id="classHandlerPageBox0_0">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="classHandlerPageMsg0_0" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="classHandlerHomePage0_0">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="classHandlerUpPage0_0">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="classHandlerDownPage0_0">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="classHandlerEndPage0_0">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="classHandlerPageInfoInput0_0" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="classHandlerSpecificPage0_0">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="classHandlerPageBox" id="classHandlerPageBox0_1">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="classHandlerPageMsg0_1" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="classHandlerHomePage0_1">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="classHandlerUpPage0_1">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="classHandlerDownPage0_1">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="classHandlerEndPage0_1">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="classHandlerPageInfoInput0_1" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="classHandlerSpecificPage0_1">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="classHandlerPageBox" id="classHandlerPageBox0_2">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="classHandlerPageMsg0_2" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="classHandlerHomePage0_2">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="classHandlerUpPage0_2">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="classHandlerDownPage0_2">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="classHandlerEndPage0_2">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="classHandlerPageInfoInput0_2" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="classHandlerSpecificPage0_2">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="classManagementRight" id="classManagementRight2">
<div class="addUserBtn" id="addClassBtn">
... ... @@ -1406,36 +1472,100 @@
<div class="myCenterContentList" id="teacherMyCenterContentList">
<div class="myCenterTopRightContent">&nbsp;&nbsp;暂无课程!</div>
</div>
<div class="classHandlerPageBox" id="teacherMyCerterPageBox">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="teacherMyCerterPageMsg" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="teacherMyCerterHomePage">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="teacherMyCerterUpPage">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="teacherMyCerterDownPage">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="teacherMyCerterEndPage">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="teacherMyCerterPageInfoInput" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="teacherMyCerterSpecificPage">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
<div class="teacherMyCerterPageBox" id="teacherMyCerterPage">
<div class="classHandlerPageBox" id="teacherMyCerterPageBox0">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="teacherMyCerterPageMsg0" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="teacherMyCerterHomePage0">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="teacherMyCerterUpPage0">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="teacherMyCerterDownPage0">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="teacherMyCerterEndPage0">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="teacherMyCerterPageInfoInput0" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="teacherMyCerterSpecificPage0">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="classHandlerPageBox" id="teacherMyCerterPageBox1">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="teacherMyCerterPageMsg1" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="teacherMyCerterHomePage1">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="teacherMyCerterUpPage1">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="teacherMyCerterDownPage1">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="teacherMyCerterEndPage1">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="teacherMyCerterPageInfoInput1" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="teacherMyCerterSpecificPage1">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="classHandlerPageBox" id="teacherMyCerterPageBox2">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="teacherMyCerterPageMsg2" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="teacherMyCerterHomePage2">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="teacherMyCerterUpPage2">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="teacherMyCerterDownPage2">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="teacherMyCerterEndPage2">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="teacherMyCerterPageInfoInput2" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="teacherMyCerterSpecificPage2">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="studentMyCerter" id="studentMyCerter">
... ... @@ -1460,45 +1590,110 @@
<li class="liveInfoLeftLi" data="2">收藏</li>
</ul>
<ul class="liveInfoLeft" id="teacherLiveList">
<li class="liveInfoLeftLi liveInfoLeftLiCheck" data="0">正在直播</li>
<li class="liveInfoLeftLi" data="1">未开始</li>
<li class="liveInfoLeftLi liveInfoLeftLiCheck" data="1">正在直播</li>
<li class="liveInfoLeftLi" data="2">未开始</li>
<li class="liveInfoLeftLi" data="4">已结束</li>
</ul>
</div>
<div class="courseMinuteList" id="courseMinuteList">
</div>
<div class="classHandlerPageBox" id="courseMinutePageBox">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="courseMinutePageMsg" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="courseMinuteHomePage">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="courseMinuteUpPage">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="courseMinuteDownPage">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="courseMinuteEndPage">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="courseMinutePageInfoInput" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="courseMinuteSpecificPage">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
<div class="teacherMyCerterPageBox" id="courseMinutePage">
<div class="classHandlerPageBox" id="courseMinutePageBox0">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="courseMinutePageMsg0" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="courseMinuteHomePage0">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="courseMinuteUpPage0">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="courseMinuteDownPage0">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="courseMinuteEndPage0">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="courseMinutePageInfoInput0" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="courseMinuteSpecificPage0">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="classHandlerPageBox" id="courseMinutePageBox1">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="courseMinutePageMsg1" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="courseMinuteHomePage1">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="courseMinuteUpPage1">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="courseMinuteDownPage1">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="courseMinuteEndPage1">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="courseMinutePageInfoInput1" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="courseMinuteSpecificPage1">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="classHandlerPageBox" id="courseMinutePageBox2">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td height="60" colspan="11" class="tr_bottom" style="">
<span class="classHandlerPageMsg" id="courseMinutePageMsg2" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span>
<ul class="classHandlerPageInfoBox">
<li class="classHandlerPageInfo">
<span class="classHandlerHomePage" id="courseMinuteHomePage2">首页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerUpPage" id="courseMinuteUpPage2">上一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerDownPage" id="courseMinuteDownPage2">下一页</span>
</li>
<li class="classHandlerPageInfo">
<span class="classHandlerEndPage" id="courseMinuteEndPage2">尾页</span>
</li>
<li class="classHandlerPageInfo">
<input id="courseMinutePageInfoInput2" class="classHandlerPageInfoInput" type="text">
</li>
<li class="classHandlerPageInfo classHandlerPageInfoCheck">
<span id="courseMinuteSpecificPage2">GO</span>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!--我的预约-->
<div class="myCenterContentBox">
... ... @@ -1566,9 +1761,12 @@
<li class="oneselfInfoList oneselfInfoList1">
<label class="oneselfInfoHeader">头像</label>
<img src="images/u293.png" alt="" class="personagePortraitImg" id="personagePortrait">
<form id="personagePhotoForm">
<input class="personagePhoto" id="personagePortraitBtn" type="file" name="file"/>
</form>
<label for="personagePortrait">
<form id="personagePhotoForm">
<input class="personagePhoto" id="personagePortraitBtn" type="file" name="file"/>
</form>
</label>
</li>
<li class="oneselfInfoList">
<label class="oneselfInfoHeader">登录名</label>
... ...
... ... @@ -26,11 +26,14 @@ class CollectApe extends Ape {
}
_collectNoHandler(evt){
if(ClassDataProxy.userType == 0){
this.toLogin();
return;
}
let that = this;
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/addStudentMeeting';
let status = $(evt.currentTarget).attr('data');
let id = $('#lanclassBox').attr('data');
loger.log('收藏数据信息',status,id)
let data = {siteId:ClassDataProxy.siteId,
"studentId":ClassDataProxy.id,
"status":parseInt(status),
... ... @@ -42,7 +45,10 @@ class CollectApe extends Ape {
ClassDataProxy.getMarginTopHandler($('#warnHintBox'));
ErrorApe.showWarnError('收藏成功');
loger.log('收藏数据信息',_data)
}
}/*else{
ClassDataProxy.getMarginTopHandler($('#warnHintBox'));//
ErrorApe.showWarnError('您已收藏这堂课');
}*/
})
}
... ... @@ -113,6 +119,10 @@ class CollectApe extends Ape {
$('#collectYes ').show();
$('#collectNo ').hide();
}
toLogin(){
ClassDataProxy.getMarginTopHandler($('#userLogin'));
$('#userLoginBox').show();
}
//工具类
_format(str, obj) {
return str.replace(/\{(\w+)\}/g, function (match, group, index) {
... ...
... ... @@ -130,7 +130,8 @@ class CreateGradeApe extends Ape {
//获取课堂数据
if(_data && _data.code == 200){
//loger.log(_data,'班级界面用户列表数据')
that._gainUserClassData(_data.returnData.data);
// that._gainUserClassData(_data.returnData.data);
that._gainUserClassDataErr();
}
},
error:function(error){
... ... @@ -152,9 +153,9 @@ class CreateGradeApe extends Ape {
$('#classHandlerPageMsg2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
courseContent.append(adminListTit);
if(_dataList){
if(count <= 7){
// if(count <= 7){
$('#classHandlerPageBox2').hide();
}
// }
for(let i = 0;i<_dataList.length;i++){
let _adminList = this._format(adminList,{
_loginName : _dataList[i].loginName,
... ... @@ -175,6 +176,7 @@ class CreateGradeApe extends Ape {
let courseContent = $('#courseContent2');
courseContent.empty();
courseContent.append(adminListTit);
$('#classHandlerPageBox2').hide();
let _adminList = '<tr align="center" bgcolor="#FFFFFF" height="44" bordercolor="#e6e6e6">' +
'<td class="tr_main tr_mainNone">' +
'该课堂暂无班级数据~'+
... ...
... ... @@ -75,7 +75,7 @@ class ListDetailsApe extends Ape {
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
this.detailPage(_url,data,function(_data){
if(_data){
loger.log('detailPage',_data)
// loger.log('detailPage',_data)
that._gainClassData(_data.returnData.data);
}
})
... ... @@ -91,6 +91,7 @@ class ListDetailsApe extends Ape {
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
this.detailPage(_url,data,function(_data){
if(_data){
// loger.log('detailPage',_data)
that._gainClassData(_data.returnData.data);
}
})
... ... @@ -105,10 +106,12 @@ class ListDetailsApe extends Ape {
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
this.detailPage(_url,data,function(_data){
if(_data){
// loger.log('detailPage',_data)
that._gainClassData(_data.returnData.data);
}
})
}
//收藏
collectInfoDetail(_id){
let that = this;
let data = {
... ... @@ -121,10 +124,8 @@ class ListDetailsApe extends Ape {
if(_data && _data.code == 200){
let _dataList = _data.returnData.data;
if(_dataList && _dataList.length > 0 ){
loger.log('收藏',_data)
that._collectNoClick();
}else{
loger.log('未收藏')
that._collectYesClick();
}
}
... ...
... ... @@ -71,13 +71,25 @@ class ManagementHomePageApe extends Ape {
init() {
$('#liveInfoList0 li').on('click',this._liveInfoLeftLiHandler.bind(this));//首页
$('#classHandlerHomePage0').on('click',this._homePageHandler.bind(this));//首页
$('#classHandlerUpPage0').on('click',this._upPageHandler.bind(this));//上页
$('#classHandlerDownPage0').on('click',this._downPageHandler.bind(this));//下页
$('#classHandlerEndPage0').on('click',this._endPageHandler.bind(this));//尾页
$('#classHandlerSpecificPage0').on('click',this._assignPageHandler.bind(this));//指定页
$('#classHandlerHomePage0_0').on('click',this._homePageHandler.bind(this));//首页
$('#classHandlerUpPage0_0').on('click',this._upPageHandler.bind(this));//上页
$('#classHandlerDownPage0_0').on('click',this._downPageHandler.bind(this));//下页
$('#classHandlerEndPage0_0').on('click',this._endPageHandler.bind(this));//尾页
$('#classHandlerSpecificPage0_0').on('click',this._assignPageHandler.bind(this));//指定页
// $('#courseContent0').on('click','.deleteClass',this._deleteClass.bind(this));//删除课堂
$('#classHandlerHomePage0_1').on('click',this._homePageHandler.bind(this));//首页
$('#classHandlerUpPage0_1').on('click',this._upPageHandler.bind(this));//上页
$('#classHandlerDownPage0_1').on('click',this._downPageHandler.bind(this));//下页
$('#classHandlerEndPage0_1').on('click',this._endPageHandler.bind(this));//尾页
$('#classHandlerSpecificPage0_1').on('click',this._assignPageHandler.bind(this));//指定页
$('#classHandlerHomePage0_2').on('click',this._homePageHandler.bind(this));//首页
$('#classHandlerUpPage0_2').on('click',this._upPageHandler.bind(this));//上页
$('#classHandlerDownPage0_2').on('click',this._downPageHandler.bind(this));//下页
$('#classHandlerEndPage0_2').on('click',this._endPageHandler.bind(this));//尾页
$('#classHandlerSpecificPage0_2').on('click',this._assignPageHandler.bind(this));//指定页
$('#courseContent0').on('click','.deleteClass',this._deleteClass.bind(this));//删除课堂
$('#courseContent0').on('click','.joinClass',this._joinClass.bind(this));//加入课堂
$('#courseContent0').on('click','.updatacover',this._updatacover.bind(this));//上传课堂封面
... ... @@ -93,38 +105,274 @@ class ManagementHomePageApe extends Ape {
}
//首页
_createClassHomePage(){
this.detailPage(1);
}
//首页
_homePageHandler(){
this.presentInd = 1;
this.detailPage(this.presentInd);
let ind = $('#classHandlerPageBox0').attr('data');
switch (parseInt(ind)){
case 1:
this._adminLiveModule(this.presentInd);
break;
case 2:
this._adminNoneLiveModule(this.presentInd);
break;
case 4:
this._adminEndLiveModule(this.presentInd);
break;
default:
return;
}
}
//上页
_upPageHandler(){
if(this.presentInd > 1){
this.presentInd--;
this.detailPage(this.presentInd);
let ind = $('#classHandlerPageBox0').attr('data');
switch (parseInt(ind)){
case 1:
this._adminLiveModule(this.presentInd);
break;
case 2:
this._adminNoneLiveModule(this.presentInd);
break;
case 4:
this._adminEndLiveModule(this.presentInd);
break;
default:
return;
}
}
}
//下页
_downPageHandler(){
if(this.presentInd < this.pageNo){
this.presentInd++;
this.detailPage(this.presentInd);
let ind = $('#classHandlerPageBox0').attr('data');
switch (parseInt(ind)){
case 1:
this._adminLiveModule(this.presentInd);
break;
case 2:
this._adminNoneLiveModule(this.presentInd);
break;
case 4:
this._adminEndLiveModule(this.presentInd);
break;
default:
return;
}
}
}
//尾页
_endPageHandler(){
this.presentInd = this.pageNo;
this.detailPage(this.presentInd);
let ind = $('#classHandlerPageBox0').attr('data');
switch (parseInt(ind)){
case 1:
this._adminLiveModule(this.presentInd);
break;
case 2:
this._adminNoneLiveModule(this.presentInd);
break;
case 4:
this._adminEndLiveModule(this.presentInd);
break;
default:
return;
}
}
//指定页
_assignPageHandler(){
let inputVal = $('#classHandlerPageInfoInput').val();
if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){
this.detailPage(parseInt(inputVal));
let val;
let ind = $('#classHandlerPageBox0').attr('data');
let card = $('#liveInfoList0 .liveInfoLeftLiCheck').index();
let inputVal = $('#classHandlerPageInfoInput0_'+card).val();
if(parseInt(inputVal) > this.pageNo ){
val = this.pageNo;
}else if(parseInt(inputVal) < 1){
val = 1;
}else{
val = parseInt(inputVal)
}
switch (parseInt(ind)){
case 1:
this._adminLiveModule(val);
break;
case 2:
this._adminNoneLiveModule(val);
break;
case 4:
this._adminEndLiveModule(val);
break;
default:
return;
}
$('#classHandlerPageInfoInput0_'+card).val('')
}
_adminInfo(data,num,ind,callback){
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
let that = this;
$.ajax({
type: "POST",
url: _url,
timeout:5000,
data : data,
headers: {siteId:ClassDataProxy.siteId,pageno:num, page:ind,
'token':ClassDataProxy.token},
success:function(_data){
//获取我的课程数据
if(_data && _data.code == 200){
if(callback){
callback(_data);
}
}else{
if(callback){
callback(null);
}
}
},
error:function(error){
//alert('直播数据获取失败')
if(callback){
callback(null);
}
loger.log(error,'直播数据获取失败')
}
})
}
adminListSwitch(){
let ind = $('#liveInfoList0 .liveInfoLeftLiCheck').attr('data');
let card = $('#liveInfoList0 .liveInfoLeftLiCheck').index();
$('#classHandlerPageBox0').attr('data',ind)
let status = parseInt(ind);
$('#classHandlerPageBox0_'+card).show().siblings().hide();
this.presentInd = 1;
switch (status){
case 1:
//正在直播
this._adminLiveModule(1);
break;
case 2:
//未开始
this._adminNoneLiveModule(1);
break;
case 4:
//已结束
this._adminEndLiveModule(1);
break;
default:
return;
}
}
//正在直播
_adminLiveModule(ind){
let data = {siteId:ClassDataProxy.siteId,meetingStatus:1};
let that = this;
this._adminInfo(data,8,ind,function(_data){
//首页直播信息渲染
if(_data){
that._adminLiveCourse(_data.returnData.data);
that._adminLivePage(_data.returnData.data);
}
})
}
_adminLiveCourse(_data){
let courseContent = $('#courseContent0');
courseContent.empty();
let _dataList = _data.meetingInfo;
courseContent.append(adminListTit);
if(_dataList.length > 0){
for(let i = 0;i<_dataList.length;i++){
let _adminList = this._format(adminList,{
_meetingName : _dataList[i].meetingName,
_esenglish : _dataList[i].meetingNumber,
_userName : _dataList[i].create_user,
_stateInfo : '准备',
_time: _dataList[i].beginTime+' - '+_dataList[i].endTime,
_onlineLen : '0',
_DocInd : 'classDoc'+i,
_mediaInd : 'classMedia'+i,
_musicInd : 'classMusic'+i,
_updateInd : 'classUpdate'+i,
_updatacover : 'updatacover'+i,
_removeInd : _dataList[i].id,
_value : _dataList[i].meetingPhoto ? _dataList[i].meetingPhoto : '',
_joinInd : _dataList[i].meetingNumber
})
courseContent.append(_adminList);
}
courseContent.append(adminListEnd);
}else{
this._gainUserClassDataErr();
}
}
_adminLivePage(_data){
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNo = pagenum;
$('#classHandlerPageMsg0_0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <=8){
$('#classHandlerPageBox0_0').hide();
}
}
}
//未开始
_adminNoneLiveModule(ind){
let data = {siteId:ClassDataProxy.siteId,meetingStatus:2};
let that = this;
this._adminInfo(data,8,ind,function(_data){
//首页直播信息渲染
if(_data){
that._adminLiveCourse(_data.returnData.data);
that._adminNotPage(_data.returnData.data);
}
})
}
_adminNotPage(_data){
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNo = pagenum;
$('#classHandlerPageMsg0_1').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <=8){
$('#classHandlerPageBox0_1').hide();
}
}
}
//已结束
_adminEndLiveModule(ind){
let data = {siteId:ClassDataProxy.siteId,meetingStatus:4};
let that = this;
this._adminInfo(data,8,ind,function(_data){
//首页直播信息渲染
if(_data){
that._adminLiveCourse(_data.returnData.data);
that._adminOverPage(_data.returnData.data);
}
})
}
_adminOverPage(_data){
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNo = pagenum;
$('#classHandlerPageMsg0_2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <=8){
$('#classHandlerPageBox0_2').hide();
}
}
}
//点击翻页
... ... @@ -139,14 +387,13 @@ class ManagementHomePageApe extends Ape {
headers: {
siteId:ClassDataProxy.siteId,
page:ind,
pageno:8,
pageno:2,
'token':ClassDataProxy.token
},
success:function(_data){
if(_data && _data.code == 200){
that._gainClassData(_data.returnData.data);
}
},
error:function(error){
that._gainUserClassDataErr();
... ... @@ -164,12 +411,10 @@ class ManagementHomePageApe extends Ape {
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNo = pagenum;
$('#classHandlerPageMsg0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
$('#classHandlerPageMsg0_0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
courseContent.append(adminListTit);
if(_dataList){
if(count <= 8){
$('#classHandlerPageBox0').hide();
}
//
for(let i = 0;i<_dataList.length;i++){
let _adminList = this._format(adminList,{
_meetingName : _dataList[i].meetingName,
... ... @@ -215,11 +460,15 @@ class ManagementHomePageApe extends Ape {
data:"meeting.id=" + id + "&temp=" + new Date().getTime(),
success:function(_data){
loger.log('删除课堂',_data)
window.location.href = "http://networkshool.xuedianyun.com/3m/conference_domain.do";
if(_data){
// window.location.href = "http://networkshool.xuedianyun.com/3m/meeting/updateToCancel.do";
}
},
error:function(error){
loger.log(error,'失败')
window.location.href = "http://networkshool.xuedianyun.com/3m/conference_domain.do";
window.location.href = "http://networkshool.xuedianyun.com/3m/meeting/updateToCancel.do";
// window.location.href = "http://networkshool.xuedianyun.com/3m/conference_domain.do";
}
})
}
... ... @@ -293,7 +542,6 @@ class ManagementHomePageApe extends Ape {
}
_submitBtnHandler(){
let genre = $('#updataPhotoBox').attr('data');
loger.log('上传类型',genre)
let _dataId = this.dataId;
let _url = 'http://networkschool.xuedianyun.com:3001/upload/upLoadDoc?businessId='+_dataId+'&category='+parseInt(genre)+'&siteId='+ClassDataProxy.siteId;
let files = this.files;
... ... @@ -326,7 +574,7 @@ class ManagementHomePageApe extends Ape {
}
_liveInfoLeftLiHandler(evt){
this._switchover(evt);
this.detailPage();
this.adminListSwitch();
}
//工具类
_format(str, obj) {
... ...
... ... @@ -83,7 +83,6 @@ class MyCenterApe extends Ape {
this.data = 0;
this.dataList = {};
this.teacherList = {};
this.messageDetails = [];
this.presentInd = 1;//点击翻页默认为第一页
this.pageNo = 0; //首页老师端 直播默认页码
this.pageNo1 = 1; //首页老师端 课程默认页码
... ... @@ -99,11 +98,23 @@ class MyCenterApe extends Ape {
$('#teacherInfoList li').on('click',this._teacherInfoListHandler.bind(this));//首页 老师 直播分类 正在直播 未开始 已结束
$('#studentInfoList li').on('click',this._studentInfoListHandler.bind(this));//首页 学生 待学习 已学完 收藏
$('#teacherMyCerterHomePage').on('click',this._homePageHandler.bind(this));//首页
$('#teacherMyCerterUpPage').on('click',this._upPageHandler.bind(this));//上页
$('#teacherMyCerterDownPage').on('click',this._downPageHandler.bind(this));//下页
$('#teacherMyCerterEndPage').on('click',this._endPageHandler.bind(this));//尾页
$('#teacherMyCerterSpecificPage').on('click',this._assignPageHandler.bind(this));//指定页
$('#teacherMyCerterHomePage0').on('click',this._homePageHandler.bind(this));//首页
$('#teacherMyCerterUpPage0').on('click',this._upPageHandler.bind(this));//上页
$('#teacherMyCerterDownPage0').on('click',this._downPageHandler.bind(this));//下页
$('#teacherMyCerterEndPage0').on('click',this._endPageHandler.bind(this));//尾页
$('#teacherMyCerterSpecificPage0').on('click',this._assignPageHandler.bind(this));//指定页
$('#teacherMyCerterHomePage1').on('click',this._homePageHandler.bind(this));//首页
$('#teacherMyCerterUpPage1').on('click',this._upPageHandler.bind(this));//上页
$('#teacherMyCerterDownPage1').on('click',this._downPageHandler.bind(this));//下页
$('#teacherMyCerterEndPage1').on('click',this._endPageHandler.bind(this));//尾页
$('#teacherMyCerterSpecificPage1').on('click',this._assignPageHandler.bind(this));//指定页
$('#teacherMyCerterHomePage2').on('click',this._homePageHandler.bind(this));//首页
$('#teacherMyCerterUpPage2').on('click',this._upPageHandler.bind(this));//上页
$('#teacherMyCerterDownPage2').on('click',this._downPageHandler.bind(this));//下页
$('#teacherMyCerterEndPage2').on('click',this._endPageHandler.bind(this));//尾页
$('#teacherMyCerterSpecificPage2').on('click',this._assignPageHandler.bind(this));//指定页
}
addEvent() {
... ... @@ -116,7 +127,7 @@ class MyCenterApe extends Ape {
//首页
_homePageHandler(){
this.presentInd = 1;
let ind = $('#teacherMyCerterPageBox').attr('data');
let ind = $('#teacherMyCerterPage').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(this.presentInd);
... ... @@ -135,7 +146,7 @@ class MyCenterApe extends Ape {
_upPageHandler(){
if(this.presentInd > 1){
this.presentInd--;
let ind = $('#teacherMyCerterPageBox').attr('data');
let ind = $('#teacherMyCerterPage').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(this.presentInd);
... ... @@ -153,10 +164,9 @@ class MyCenterApe extends Ape {
}
//下页
_downPageHandler(){
loger.log('点击下一页')
if(this.presentInd < this.pageNo){
this.presentInd++;
let ind = $('#teacherMyCerterPageBox').attr('data');
let ind = $('#teacherMyCerterPage').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(this.presentInd);
... ... @@ -175,7 +185,7 @@ class MyCenterApe extends Ape {
//尾页
_endPageHandler(){
this.presentInd = this.pageNo;
let ind = $('#teacherMyCerterPageBox').attr('data');
let ind = $('#teacherMyCerterPage').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(this.presentInd);
... ... @@ -192,124 +202,36 @@ class MyCenterApe extends Ape {
}
//指定页
_assignPageHandler(){
let inputVal = $('#teacherMyCerterPageInfoInput').val();
if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){
let ind = $('#teacherMyCerterPageBox').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(parseInt(inputVal));
break;
case 2:
this._teacherNoneLiveModule(parseInt(inputVal));
break;
case 4:
this._teacherEndLiveModule(parseInt(inputVal));
break;
default:
return;
}
let val;
let ind = $('#teacherMyCerterPage').attr('data');
let card = $('#teacherInfoList .liveInfoLeftLiCheck').index();
let inputVal = $('#teacherMyCerterPageInfoInput'+card).val();
if(parseInt(inputVal) > this.pageNo ){
val = this.pageNo;
}else if(parseInt(inputVal) < 1){
val = 1;
}else{
val = parseInt(inputVal)
}
}
detailpage(){
this._showStatus();
this.defaultDateList();
}
//首页
_homePageHandler(){
this.presentInd = 1;
let ind = $('#teacherMyCerterPageBox').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(this.presentInd);
this._teacherLiveModule(val);
break;
case 2:
this._teacherNoneLiveModule(this.presentInd);
this._teacherNoneLiveModule(val);
break;
case 4:
this._teacherEndLiveModule(this.presentInd);
this._teacherEndLiveModule(val);
break;
default:
return;
}
$('#teacherMyCerterPageInfoInput'+card).val('')
}
//上页
_upPageHandler(){
if(this.presentInd > 1){
this.presentInd--;
let ind = $('#teacherMyCerterPageBox').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(this.presentInd);
break;
case 2:
this._teacherNoneLiveModule(this.presentInd);
break;
case 4:
this._teacherEndLiveModule(this.presentInd);
break;
default:
return;
}
}
}
//下页
_downPageHandler(){
loger.log('点击下一页')
if(this.presentInd < this.pageNo){
this.presentInd++;
let ind = $('#teacherMyCerterPageBox').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(this.presentInd);
break;
case 2:
this._teacherNoneLiveModule(this.presentInd);
break;
case 4:
this._teacherEndLiveModule(this.presentInd);
break;
default:
return;
}
}
}
//尾页
_endPageHandler(){
this.presentInd = this.pageNo;
let ind = $('#teacherMyCerterPageBox').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(this.presentInd);
break;
case 2:
this._teacherNoneLiveModule(this.presentInd);
break;
case 4:
this._teacherEndLiveModule(this.presentInd);
break;
default:
return;
}
}
//指定页
_assignPageHandler(){
let inputVal = $('#teacherMyCerterPageInfoInput').val();
if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){
let ind = $('#teacherMyCerterPageBox').attr('data');
switch (parseInt(ind)){
case 1:
this._teacherLiveModule(parseInt(inputVal));
break;
case 2:
this._teacherNoneLiveModule(parseInt(inputVal));
break;
case 4:
this._teacherEndLiveModule(parseInt(inputVal));
break;
default:
return;
}
}
detailpage(){
this._showStatus();
this.defaultDateList();
}
loadMeeting(meeting){
let status = meeting["meetingStatus"];
... ... @@ -402,10 +324,10 @@ class MyCenterApe extends Ape {
//首页直播信息
this.teacherListSwitch();
}
detailPageStudent(){
studentListSwitch(){
//首页课程
let ind = $('#studentInfoList .liveInfoLeftLiCheck').attr('data');
this._studentStudyModule();
// this._studentStudyModule();
switch (parseInt(ind)){
case 0:
//待学习
... ... @@ -424,6 +346,13 @@ class MyCenterApe extends Ape {
}
}
//学生端首页默认数据
detailPageStudent(){
//首页课程
this._studentCourseModule();
//首页直播信息
this.studentListSwitch();
}
_anewLoad(ele){
ele.find('.liveInfoLeftLi').eq(0).addClass('liveInfoLeftLiCheck').siblings().removeClass('liveInfoLeftLiCheck')
}
... ... @@ -504,9 +433,11 @@ class MyCenterApe extends Ape {
/*-------------------老师-------------------*/
teacherListSwitch(){
let ind = $('#teacherInfoList .liveInfoLeftLiCheck').attr('data');
$('#teacherMyCerterPageBox').attr('data',ind)
let teacherMyCenterContentList = $('#teacherMyCenterContentList');
let card = $('#teacherInfoList .liveInfoLeftLiCheck').index();
$('#teacherMyCerterPage').attr('data',ind)
let status = parseInt(ind);
$('#teacherMyCerterPageBox'+card).show().siblings().hide();
this.presentInd = 1;
switch (status){
case 1:
//正在直播
... ... @@ -540,17 +471,20 @@ class MyCenterApe extends Ape {
_teacherCourseCourse(_data){
let myCurriculumInfo = $('#myCurriculumInfo');
myCurriculumInfo.empty();
loger.log('skdfjslfsdfsssssssssss',_data)
let that = this;
if(_data) {
for (let i = 0; i < _data.length; i++) {
let item = _data[i];
let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime,item.meetingEndTime)
loger.log('skdfjslfsdfsssssssssss',timer)
if (item) {
let curInfo = this._format(curriculumList, {
_infoTit: item.meetingName,
_meetingNumber: item.meetingNumber,
_countDown: that.loadMeeting(item),
_isShow: (timer == '已结束') ? 'none' : 'block'
// _isShow: (timer != '已结束') ? 'block' : 'none'
})
myCurriculumInfo.append(curInfo);
} else {
... ... @@ -568,6 +502,7 @@ class MyCenterApe extends Ape {
//首页直播信息渲染
if(_data){
that._teacherLiveCourse(_data.returnData.data);
that._teacherLivePage(_data.returnData.data);
}
})
}
... ... @@ -578,6 +513,7 @@ class MyCenterApe extends Ape {
//首页直播信息渲染
if(_data){
that._teacherLiveCourse(_data.returnData.data);
that._teacherNotPage(_data.returnData.data);
}
})
}
... ... @@ -588,6 +524,7 @@ class MyCenterApe extends Ape {
//首页直播信息渲染
if(_data){
that._teacherLiveCourse(_data.returnData.data);
that._teacherOverPage(_data.returnData.data);
}
})
}
... ... @@ -595,26 +532,16 @@ class MyCenterApe extends Ape {
let teacherMyCenterContentList = $('#teacherMyCenterContentList');
teacherMyCenterContentList.empty();
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNo = pagenum;
if(_dataList.length > 0){
// loger.log('正在直播状态',_data)
$('#teacherMyCerterPageMsg').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <= 4){
$('#teacherMyCerterPageBox').hide();
}
teacherMyCenterContentList.append(adminListTit)
for(let i = 0;i<_dataList.length;i++){
let _adminList = this._format(adminList,{
_meetingName : _dataList[i].meetingName,
_meetingNumber : _dataList[i].meetingNumber,
_create_user : _dataList[i].create_user,
_state : ClassDataProxy.getTimeEnd(_dataList[i].beginTime,_dataList[i].endTime),
// _state : ClassDataProxy.getTimeEnd(_dataList[i].beginTime,_dataList[i].endTime),
_state : "准备",
_timer : _dataList[i].beginTime + '-' + _dataList[i].endTime,
_num : '0'
})
... ... @@ -626,11 +553,53 @@ class MyCenterApe extends Ape {
teacherMyCenterContentList.append(_classifyList)
}
}else{
loger.log('shujuweikong')
loger.log('没有直播数据')
}
}
_teacherLivePage(_data){
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNo = pagenum;
$('#teacherMyCerterPageMsg0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <=4){
$('#teacherMyCerterPageBox0').hide();
}
}
}
_teacherNotPage(_data){
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNo = pagenum;
$('#teacherMyCerterPageMsg1').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <=4){
$('#teacherMyCerterPageBox1').hide();
}
}
}
_teacherOverPage(_data){
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNo = pagenum;
$('#teacherMyCerterPageMsg2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <=4){
$('#teacherMyCerterPageBox2').hide();
}
}
}
/*---------------------------学生-----------------------*/
//学生端首页課程显示
_studentCourseModule(){
... ... @@ -650,21 +619,31 @@ class MyCenterApe extends Ape {
let that = this;
if(_data) {
for (let i = 0; i < _data.length; i++) {
let item = _data[i];
let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime,item.meetingEndTime)
loger.log('newTimenewTimenewTimenewTime',timer)
if (item) {
let curInfo = this._format(curriculumList, {
_infoTit: item.meeting_name,
_meetingNumber: item.meetingNumber,
_countDown:timer ,
_isShow: (timer == '已结束') ? 'none' : 'block'
})
myCurriculumInfo.append(curInfo);
} else {
console.error('_gainClassData没数据')
}
let that = this;
// setInterval(function () {
let item = _data[i];
let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime,item.meetingEndTime)
/* if(timer.indexOf(':')!=-1){
myCurriculumInfo.empty();
}*/
let isShow = 0;
if(timer.split(':')[1] || timer.split(':')[1] > 10){
isShow = 1;
}
loger.log('newTimenewTimenewTimenewTime',isShow)
if (item) {
let curInfo = that._format(curriculumList, {
_infoTit: item.meeting_name,
_meetingNumber: item.meetingNumber,
//_countDown:timer ,
_countDown:"准备",
// _isShow: (isShow == 1) ? 'none' : 'block'
})
myCurriculumInfo.append(curInfo);
} else {
console.error('_gainClassData没数据')
}
// },1000)
}
}
}
... ... @@ -808,7 +787,7 @@ class MyCenterApe extends Ape {
}
//老师端课程数据
/* //老师端课程数据
_teacherCourseRender(_data){
let courseMinuteList = $('#courseMinuteList');
courseMinuteList.empty();
... ... @@ -854,10 +833,10 @@ class MyCenterApe extends Ape {
}
}
}
}
}*/
//学生端 我的课程 切换
_myCenterBoxHandler(){
if(ClassDataProxy.userType == ClassDataProxy.USER_TYPE_2){
return;
}
... ... @@ -903,8 +882,7 @@ class MyCenterApe extends Ape {
//学生端 首页
_studentInfoListHandler(evt){
this.commonality(evt);
this.detailPageStudent();
// this.defaultDateList()
this.studentListSwitch();
}
//工具类
... ...
... ... @@ -94,11 +94,23 @@ class MyCoursesApe extends Ape {
$('#teacherLiveList li').on('click',this._teacherLiveListHandler.bind(this));//我的课程 老师 正在直播 未开始 已结束
$('#courseMinuteHomePage').on('click',this._homePageHandler.bind(this));//首页
$('#courseMinuteUpPage').on('click',this._upPageHandler.bind(this));//上页
$('#courseMinuteDownPage').on('click',this._downPageHandler.bind(this));//下页
$('#courseMinuteEndPage').on('click',this._endPageHandler.bind(this));//尾页
$('#courseMinuteSpecificPage').on('click',this._assignPageHandler.bind(this));//指定页
$('#courseMinuteHomePage0').on('click',this._homePageHandler.bind(this));//首页
$('#courseMinuteUpPage0').on('click',this._upPageHandler.bind(this));//上页
$('#courseMinuteDownPage0').on('click',this._downPageHandler.bind(this));//下页
$('#courseMinuteEndPage0').on('click',this._endPageHandler.bind(this));//尾页
$('#courseMinuteSpecificPage0').on('click',this._assignPageHandler.bind(this));//指定页
$('#courseMinuteHomePage1').on('click',this._homePageHandler.bind(this));//首页
$('#courseMinuteUpPage1').on('click',this._upPageHandler.bind(this));//上页
$('#courseMinuteDownPage1').on('click',this._downPageHandler.bind(this));//下页
$('#courseMinuteEndPage1').on('click',this._endPageHandler.bind(this));//尾页
$('#courseMinuteSpecificPage1').on('click',this._assignPageHandler.bind(this));//指定页
$('#courseMinuteHomePage2').on('click',this._homePageHandler.bind(this));//首页
$('#courseMinuteUpPage2').on('click',this._upPageHandler.bind(this));//上页
$('#courseMinuteDownPage2').on('click',this._downPageHandler.bind(this));//下页
$('#courseMinuteEndPage2').on('click',this._endPageHandler.bind(this));//尾页
$('#courseMinuteSpecificPage2').on('click',this._assignPageHandler.bind(this));//指定页
}
addEvent() {
... ... @@ -111,34 +123,107 @@ class MyCoursesApe extends Ape {
//首页
_homePageHandler(){
this.presentIndT = 1;
this.teacherNowLiveModule(this.presentIndT);
let ind = $('#courseMinutePage').attr('data');
switch (parseInt(ind)){
case 1:
this.teacherNowLiveModule(this.presentIndT);
break;
case 2:
this.teacherNoneLiveModule(this.presentIndT);
break;
case 4:
this._teacherEndLiveModule(this.presentIndT);
break;
default:
return;
}
}
//上页
_upPageHandler(){
if(this.presentIndT > 1){
this.presentIndT--;
this.teacherNowLiveModule(this.presentIndT);
let ind = $('#courseMinutePage').attr('data');
switch (parseInt(ind)){
case 1:
this.teacherNowLiveModule(this.presentIndT);
break;
case 2:
this.teacherNoneLiveModule(this.presentIndT);
break;
case 4:
this._teacherEndLiveModule(this.presentIndT);
break;
default:
return;
}
}
}
//下页
_downPageHandler(){
loger.log('点击下一页')
if(this.presentIndT < this.pageNoT){
this.presentIndT++;
this.teacherNowLiveModule(this.presentIndT);
let ind = $('#courseMinutePage').attr('data');
switch (parseInt(ind)){
case 1:
this.teacherNowLiveModule(this.presentIndT);
break;
case 2:
this.teacherNoneLiveModule(this.presentIndT);
break;
case 4:
this._teacherEndLiveModule(this.presentIndT);
break;
default:
return;
}
}
}
//尾页
_endPageHandler(){
this.presentIndT = this.pageNoT;
this.teacherNowLiveModule(this.presentIndT);
let ind = $('#courseMinutePage').attr('data');
switch (parseInt(ind)){
case 1:
this.teacherNowLiveModule(this.presentIndT);
break;
case 2:
this.teacherNoneLiveModule(this.presentIndT);
break;
case 4:
this._teacherEndLiveModule(this.presentIndT);
break;
default:
return;
}
}
//指定页
_assignPageHandler(){
let inputVal = $('#classHandlerPageInfoInput').val();
if(parseInt(inputVal) <= this.pageNoT || parseInt(inputVal) >= 1 ){
this.teacherNowLiveModule(parseInt(inputVal));
}
let val;
let ind = $('#courseMinutePage').attr('data');
let card = $('#teacherInfoList .liveInfoLeftLiCheck').index();
let inputVal = $('#courseMinutePageInfoInput'+card).val();
if(parseInt(inputVal) > this.pageNoT ){
val = this.pageNoT;
}else if(parseInt(inputVal) < 1){
val = 1;
}else{
val = parseInt(inputVal)
}
switch (parseInt(ind)){
case 1:
this.teacherNowLiveModule(val);
break;
case 2:
this.teacherNoneLiveModule(val);
break;
case 4:
this._teacherEndLiveModule(val);
break;
default:
return;
}
$('#courseMinutePageInfoInput'+card).val('');
}
//我的课程
myCoursesMessage(){
... ... @@ -164,21 +249,24 @@ class MyCoursesApe extends Ape {
}
//我的 课程 直播信息
teacherCourses(){
let _index = $('#teacherLiveList .liveInfoLeftLiCheck').attr('data');
let ind = $('#teacherLiveList .liveInfoLeftLiCheck').attr('data');
let courseMinuteList = $('#courseMinuteList');
switch (parseInt(_index)){
case 0:
let card = $('#teacherLiveList .liveInfoLeftLiCheck').index();
$('#courseMinutePage').attr('data',ind)
$('#courseMinutePageBox'+card).show().siblings().hide();
this.presentIndT = 1;
switch (parseInt(ind)){
case 1:
//正在直播
loger.log('直播首页信息')
this.teacherNowLiveModule(1);
break;
case 1:
case 2:
//未开始
this.teacherNoneLiveModule(1);
loger.log('直播首页信息1')
break;
case 2:
case 4:
//已结束
this._teacherEndLiveModule(1);
break;
default:
return;
... ... @@ -192,37 +280,11 @@ class MyCoursesApe extends Ape {
//首页直播信息渲染
if(_data){
that._teacherCourse(_data.returnData.data);
// loger.log('首页直播信息渲染',_data.returnData.data)
that._teacherLivePage(_data.returnData.data);
}
})
}
_teacherCourse(_data){
let courseMinuteList = $('#courseMinuteList');
courseMinuteList.empty();
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNoT = pagenum;
$('#courseMinutePageMsg').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
courseMinuteList.append(adminListTit)
for(let i = 0;i<_dataList.length;i++){
if(count <= 8){
$('#teacherMyCerterPageBox').hide();
}
let _adminList = this._format(adminList,{
_meetingName : _dataList[i].meetingName,
_meetingNumber : _dataList[i].meetingNumber,
_create_user : _dataList[i].create_user,
_state : ClassDataProxy.getTimeEnd(_dataList[i].beginTime,_dataList[i].endTime),
_timer : _dataList[i].beginTime + '-' + _dataList[i].endTime,
_num : '0'
})
courseMinuteList.append(_adminList)
}
courseMinuteList.append(adminListEnd)
}
//我的课程 未开始
teacherNoneLiveModule(ind){
let data = {siteId:ClassDataProxy.siteId,create_user : ClassDataProxy.loginName,meetingStatus:2};
let that = this;
... ... @@ -230,9 +292,90 @@ class MyCoursesApe extends Ape {
//首页直播信息渲染
if(_data){
that._teacherCourse(_data.returnData.data);
that._teacherNotPage(_data.returnData.data);
}
})
}
//我的课程 已结束
_teacherEndLiveModule(ind){
let data = {siteId:ClassDataProxy.siteId,create_user : ClassDataProxy.loginName,meetingStatus:4};
let that = this;
this._teacherCurriculumInfo(data,4,ind,function(_data){
//首页直播信息渲染
if(_data){
that._teacherCourse(_data.returnData.data);
that._teacherOverPage(_data.returnData.data);
}
})
}
_teacherCourse(_data){
let courseMinuteList = $('#courseMinuteList');
courseMinuteList.empty();
if(_data){
let _dataList = _data.meetingInfo;
if(_dataList.length > 0){
courseMinuteList.append(adminListTit)
for(let i = 0;i<_dataList.length;i++){
let _adminList = this._format(adminList,{
_meetingName : _dataList[i].meetingName,
_meetingNumber : _dataList[i].meetingNumber,
_create_user : _dataList[i].create_user,
// _state : ClassDataProxy.getTimeEnd(_dataList[i].beginTime,_dataList[i].endTime),
_state : "准备",
_timer : _dataList[i].beginTime + '-' + _dataList[i].endTime,
_num : '0'
})
courseMinuteList.append(_adminList)
}
courseMinuteList.append(adminListEnd)
}else{
let _classifyList = '<div class="dataCenterErrorTitle">暂无数据~</div>';
courseMinuteList.append(_classifyList)
}
}
}
_teacherLivePage(_data){
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNoT = pagenum;
$('#courseMinutePageMsg0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <=4){
$('#courseMinutePageBox0').hide();
}
}
}
_teacherNotPage(_data){
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNoT = pagenum;
$('#courseMinutePageMsg1').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <=4){
$('#courseMinutePageBox1').hide();
}
}
}
_teacherOverPage(_data){
if(_data){
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
let pagenum = Math.ceil(count / pageno);
let _dataList = _data.meetingInfo;
this.pageNoT = pagenum;
$('#courseMinutePageMsg2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录');
if(count <=4){
$('#courseMinutePageBox2').hide();
}
}
}
// 学生端
//学生端 我的课程 切换
studentCourses(){
... ...
... ... @@ -125,9 +125,16 @@ class PartTimeTeachingApe extends Ape {
//指定页
_assignPageHandler(){
let inputVal = $('#classHandlerPageInfoInput3').val();
if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){
this.userAdminHandler(parseInt(inputVal));
let val;
if(parseInt(inputVal) > this.pageNo ){
val = this.pageNo;
}else if(parseInt(inputVal) < 1){
val = 1;
}else{
val = parseInt(inputVal)
}
this.userAdminHandler(val);
$('#classHandlerPageInfoInput3').val('');
}
//用户管理 创建用户界面
userAdminHandler(ind){
... ...
... ... @@ -131,9 +131,16 @@ class PlayRecordApe extends Ape {
//指定页
_assignPageHandler(){
let inputVal = $('#classHandlerPageInfoInput5').val();
if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){
this.detailPage(parseInt(inputVal));
let val;
if(parseInt(inputVal) > this.pageNo ){
val = this.pageNo;
}else if(parseInt(inputVal) < 1){
val = 1;
}else{
val = parseInt(inputVal)
}
this.detailPage(val);
$('#classHandlerPageInfoInput5').val('');
}
detailPage(ind){
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
... ...
... ... @@ -16,9 +16,6 @@ class Slideshow extends Ape {
constructor() {
super();
this._timer = null;
this.windowWidth = 0;
this.num = 0;
this.len = 0;
this.defaultList = ['images/xdybg.png',
'images/bg.jpg',
'images/xdybg.png',
... ... @@ -72,12 +69,10 @@ class Slideshow extends Ape {
}
that.dataLength = that.defaultList.length;
}
that.slideImg();
that._imgReload();
}
});
let li = document.getElementById('motionMapBox').getElementsByTagName("li");
console.log(li,'aaaaaaaa')
this.slideImg();
}
detailPage(callback){
... ... @@ -116,61 +111,35 @@ class Slideshow extends Ape {
})
}
_onLoadImage(){
this._imgReload();
// this._imgReload();
}
slideImg(){
loger.log('西三四速度快快快')
let oli = document.getElementById('dots').getElementsByTagName("li");
let _num = 0;
// let clone=$("#motionMapBox").find(".slidesMap").first().clone();
// $("#motionMapBox").append(clone);
let li = document.getElementById('motionMapBox').getElementsByTagName("li");
let size = li.length;
this.num = _num;
this.len = size;
clearInterval(this._timer);
let that = this;
clearInterval(this._timer);
this._timer = setInterval(function(){
$('.slidesMap').eq(_num).show().siblings().hide();
_num++;
if(_num > that.dataLength - 1){
_num = 0;
}
/*console.log(_num,that.dataLength,'_num')
if(_num > that.dataLength - 1){
_num = -1;
}
let liItem=li[_num];
if(liItem){
liItem.style.display="none";
}
_num++;
liItem=li[_num];
if(liItem){
liItem.style.display="inline-block";
}*/
},3000);//切换时间
}
_mouseenterHandler(){
// clearInterval(this._timer);
clearInterval(this._timer);
}
_mouseleaveHandler(){
// setInterval(this._timer);
// this.slideImg();
}
_slidesMapHandler(evt){
let _id = $(evt.currentTarget).find('.slidesImg').attr('data');
loger.log(_id)
this._emit(MessageTypes.CLICK_IMGINFO,{id:_id});
}
_imgReload(){
let _windowWidth = $("body").width();
this.windowWidth = _windowWidth;
$('.slidesMap').css({width:_windowWidth + "px"});
$('.slidesImg').css({width:_windowWidth + "px","background-size":'100%'});
$('.slidesImg').css({"background-size":'auto 100%'});
$('#motionMapBox').width($(".slidesMap").length * _windowWidth)
}
... ...
... ... @@ -35,7 +35,6 @@ class SubscribeApe extends Ape {
let status = $(evt.currentTarget).attr('data');
let id = $('#teacherDetailBox').attr('data');
this._lanclassContentApplyHandler(status,id);
loger.log('查看当前点击的dataid',id,status)
}
_lanclassContentApplyHandler(status,id){
if(ClassDataProxy.userType == 0){
... ... @@ -45,6 +44,7 @@ class SubscribeApe extends Ape {
let that = this;
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/addStudentMeeting';
this.id = id;
loger.log(id,ClassDataProxy.id,'预约信息')
$.ajax({
type: "POST",
url: _url,
... ... @@ -58,17 +58,17 @@ class SubscribeApe extends Ape {
success:function(_data){
let arr = ['收藏成功!','预约成功!','报名成功!']
//获取课堂数据
loger.log('获取课堂数据',_data)
loger.log(_data,'预约信息')
if(_data && _data.code == 200){
loger.log(_data,'预约信息')
ClassDataProxy.getMarginTopHandler($('#teacherDetailReminders'));//显示预约成功弹框
$('#teacherDetailRemindersBox').show();
that._emit(MessageTypes.ORDER_FINISH);
}else if(_data.returnData.data.msg == '您已预约这堂课' && ClassDataProxy.loginName){
ClassDataProxy.getMarginTopHandler($('#warnHintBox'));//修改信息输入框
ClassDataProxy.getMarginTopHandler($('#warnHintBox'));
ErrorApe.showWarnError('您已预约这堂课');
}else {
ClassDataProxy.getMarginTopHandler($('#warnHintBox'));//修改信息输入框
ClassDataProxy.getMarginTopHandler($('#warnHintBox'));
ErrorApe.showWarnError('预约失败,请稍后再试~');
}
},
... ...
... ... @@ -159,9 +159,9 @@ class Main {
//个人中心
_myCenterApe = new MyCenterApe();
_myCenterApe.on(MessageTypes.ROLE_MESSAGE,this.roleMessage.bind(this));
_myCenterApe.on(MessageTypes.MY_COURSES,this.myCoures.bind(this));
_myCenterApe.on(MessageTypes.MY_BOOKINGS,this.myBookings.bind(this));
_myCenterApe.on(MessageTypes.ROLE_MESSAGE,this.roleMessage.bind(this));//myCenter 我的个人信息
_myCenterApe.on(MessageTypes.MY_COURSES,this.myCoures.bind(this));//我的课程
_myCenterApe.on(MessageTypes.MY_BOOKINGS,this.myBookings.bind(this));//我的预约
//个人中心 我的课程
_myCoursesApe = new MyCoursesApe();
//个人中心 我的预约
... ... @@ -230,7 +230,7 @@ class Main {
}else if(_data.userType == ClassDataProxy.USER_TYPE_2){
this._showAdministratorInfo();
_managementHomePageApe.detailPage();
_managementHomePageApe.adminListSwitch();
}else if(_data.userType == ClassDataProxy.USER_TYPE_8){
_homeApe.detailPage();
_myCenterApe.detailpage();
... ... @@ -275,7 +275,6 @@ class Main {
}
clickImgInfo(_data){
if(_data){
console.log('clickImgInfo',_data)
_listDetailsApe._slideshowInfo(_data.id);
}
}
... ... @@ -287,7 +286,7 @@ class Main {
switch (ind){
case 0:
//首页
_managementHomePageApe.detailPage();
_managementHomePageApe.adminListSwitch();
break;
case 1:
//创建课堂
... ... @@ -347,6 +346,7 @@ class Main {
addClass(_data){
loger.log('创建课堂成功')
_managementHomePageApe.detailPage();
_homeApe.isLocalStorage();
}
//预约成功重新渲染数据
orderFinish(){
... ... @@ -363,7 +363,6 @@ class Main {
}else{
_idHref = window.location.href.split('.')[0].split('//')[1];
}
loger.log(_idHref,'111111111')
let userType = window.localStorage.getItem('userType')||0;
let loginName = window.localStorage.getItem('loginName')|| '';
let id = window.localStorage.getItem('id')|| '';
... ...
... ... @@ -191,19 +191,36 @@ class ClassDataProxy {
//计算时间戳倒计时
static getTimeCountDown(start,end){
/*
var date1 = new Date('2013/04/02 18:00')
var date2 = new Date('2013/04/02 19:22:21')
var s1 = date1.getTime(),s2 = date2.getTime();
var total = (s2 - s1)/1000;
var day = parseInt(total / (24*60*60));//计算整数天数
var afterDay = total - day*24*60*60;//取得算出天数后剩余的秒数
var hour = parseInt(afterDay/(60*60));//计算整数小时数
var afterHour = total - day*24*60*60 - hour*60*60;//取得算出小时数后剩余的秒数
var min = parseInt(afterHour/60);//计算整数分
var afterMin = total - day*24*60*60 - hour*60*60 - min*60;//取得算出分后剩余的秒数*/
//当前时间
let newDate = Date.parse(new Date());
//开始时间
let newTime = Date.parse(new Date(start))
//结束时间
let endTime = Date.parse(new Date(end))
let t = newDate - endTime;
let y = newDate - newTime;
let hour=Math.floor(t/1000/60/60%24);
let min=Math.floor(t/1000/60%60);
let sec=Math.floor(t/1000%60);
let newY = Math.abs(y)
let hour=Math.floor(newY/1000/60/60%24);
let min=Math.floor(newY/1000/60%60);
let sec=Math.floor(newY/1000%60);
if (hour < 10) {
hour = "0" + hour;
... ... @@ -214,17 +231,18 @@ class ClassDataProxy {
if (sec < 10) {
sec = "0" + sec;
}
console.log('ssssssssssssss',t)
if(t < 0){
if(y < 0){
if( y < 0){
return hour + ":" + min + ":" + sec;
}else{
return '马上加入';
}
}else{
return '已结束';
}
}
//判断是否是今天
static getTimeDay(start){
... ...