董佳音

修改列表的预约数,回放

... ... @@ -301,9 +301,9 @@
<div class="classManagementRight" id="classManagementRight0">
<div class="classManagementRightTitle" id="classManagementRightTitle0">
<ul class="liveInfoLeft" id="liveInfoList0">
<li class="liveInfoLeftLi liveInfoLeftLiCheck">正在直播</li>
<li class="liveInfoLeftLi">未开始</li>
<li class="liveInfoLeftLi">已结束</li>
<li class="liveInfoLeftLi liveInfoLeftLiCheck" data="1">正在直播</li>
<li class="liveInfoLeftLi" data="0">未开始</li>
<li class="liveInfoLeftLi" data="2">已结束</li>
</ul>
<div class="liveInfoRight" id="liveInfoRight0">
<input class="liveInfoRightInput" id="liveInfoRightInput0" type="text">
... ... @@ -516,11 +516,6 @@
</div>
<div class="classManagementRight" id="classManagementRight5">
<div class="classManagementRightTitle" id="classManagementRightTitle5">
<ul class="liveInfoLeft" id="liveInfoList5">
<li class="liveInfoLeftLi liveInfoLeftLiCheck">正在直播</li>
<li class="liveInfoLeftLi">未开始</li>
<li class="liveInfoLeftLi">已结束</li>
</ul>
<div class="liveInfoRight" id="liveInfoRight5">
<input class="liveInfoRightInput" id="liveInfoRightInput5" type="text">
<img class="liveInfoRightInputBtn" id="liveInfoRightInputBtn5" src="images/nav_link_14.png" alt="">
... ... @@ -532,6 +527,8 @@
<div class="liveInfoCenterLiveCase" id="liveInfoCenterLiveEnd5"></div>
</div>
</div>
<div class="classManagementRightContent" id="courseContent5">
</div>
<div class="classHandlerPageBox" id="classHandlerPageBox5">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody>
... ... @@ -618,11 +615,6 @@
</div>
<div class="classManagementRight" id="classManagementRight7">
<div class="classManagementRightTitle" id="classManagementRightTitle">
<ul class="liveInfoLeft" id="liveInfoList">
<li class="liveInfoLeftLi liveInfoLeftLiCheck">正在直播</li>
<li class="liveInfoLeftLi">未开始</li>
<li class="liveInfoLeftLi">已结束</li>
</ul>
<div class="liveInfoRight" id="liveInfoRight">
<input class="liveInfoRightInput" id="liveInfoRightInput" type="text">
<img class="liveInfoRightInputBtn" id="liveInfoRightInputBtn" src="images/nav_link_14.png" alt="">
... ... @@ -675,15 +667,6 @@
<li class="liveInfoLeftLi">未开始</li>
<li class="liveInfoLeftLi">已结束</li>
</ul>
<ul class="liveInfoLeft userClassList" id="userClassList">
<li class="liveInfoLeftLi liveInfoLeftLiCheck">老师</li>
<li class="liveInfoLeftLi">学生</li>
<li class="liveInfoLeftLi">兼课</li>
</ul>
<ul class="liveInfoLeft userClassList" id="aboutClassList">
<li class="liveInfoLeftLi liveInfoLeftLiCheck">课程</li>
<li class="liveInfoLeftLi">老师</li>
</ul>
<div class="liveInfoRight" id="liveInfoRight">
<input class="liveInfoRightInput" id="liveInfoRightInput" type="text">
<img class="liveInfoRightInputBtn" id="liveInfoRightInputBtn" src="images/nav_link_14.png" alt="">
... ... @@ -696,34 +679,6 @@
</div>
</div>
<div class="classManagementRightContent" id="courseContent">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" id="t_box" class="t_box">
<tbody>
<tr align="center" height="44" class="tr_center" bgcolor="#fff" bordercolor="#e6e6e6">
<th width="9%" class="tr_center">
课堂主题
</th>
<th width="8%" class="tr_center">
课堂号
</th>
<th width="8%" class="tr_center">
老师
</th>
<th width="6%" class="tr_center">
课堂状态
</th>
<th width="24%" class="tr_center">
课堂时间
</th>
<th width="6%" class="tr_center">
在线人数
</th>
<th width="22%" class="tr_center">
操作
</th>
</tr>
</tbody>
</table>
</div>
<div class="classHandlerPageBox" id="classHandlerPageBox">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
... ...
... ... @@ -147,7 +147,7 @@ class AboutClassApe extends Ape {
type: "POST",
url: _url,
timeout:5000,
data:{siteId:ClassDataProxy.siteId,userType:ClassDataProxy.USER_TYPE_1},
data:{siteId:ClassDataProxy.siteId,userType:ClassDataProxy.USER_TYPE_8},
headers: {siteId:ClassDataProxy.siteId,
pageno:7,
'page':ind,
... ... @@ -157,8 +157,10 @@ class AboutClassApe extends Ape {
if(_data && _data.code == 200){
let ind = $('#aboutClassList4').find('.liveInfoLeftLiCheck').attr('data');
if(ind == 0 ){
//显示课程界面
that._gainUserClassData(_data.returnData.data);
}else{
//显示老师界面
that._gainUserClassData1(_data.returnData.data);
}
}
... ...
... ... @@ -8,6 +8,7 @@ import $ from "jquery";
import ClassDataProxy from "proxy/ClassDataProxy";
import dateUI from 'libs/laydate';
import ErrorApe from "./ErrorApe";
import MessageTypes from "../MessageTypes";
let loger = Loger.getLoger('PC-CreateClassApe');
... ... @@ -142,7 +143,7 @@ class CreateClassApe extends Ape {
"h5Module":h5Module,
"partcKey":'',
"meetingContent":meetingContent,
"userName":classTeacherInfo
"loginName":classTeacherInfo
}
this.classDateList = dateList;
$('#scheduleForm1').hide();
... ... @@ -248,7 +249,7 @@ class CreateClassApe extends Ape {
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/createMeeting';
let userName = window.localStorage.getItem('loginName');
let userType = window.localStorage.getItem('userType');
dateList.siteId = 'markettest';
dateList.siteId = 'networkschool';
dateList.userId = '123';
dateList.userName = userName;
dateList.userType = userType;
... ... @@ -274,7 +275,7 @@ class CreateClassApe extends Ape {
}
_enterClass(_data){
window.open(_data.meetingUrl);
that._emit(MessageTypes.ADD_CLASS);
this._emit(MessageTypes.ADD_CLASS);
}
//清空创建课堂数据
_closeCreateClass(){
... ...
... ... @@ -39,9 +39,9 @@ const adminList = `<tr align="center" bgcolor="#FFFFFF" height="44" bordercolor=
<td width="8%" class="tr_main">{_course}</td>
<td width="8%" class="tr_main">{_totalNmu}</td>
<td width="8%" class="tr_main">{_latest}</td>
<td width="10%" class="tr_main tr_mainRight" align="center" >
<a id="{_removeInd}" class="classHandlePort" href="###">删除</a>
<a id="{_joinInd}" class="classHandlePort"" data="{_aboutMsg}" href="###">查看约课信息</a>
<td width="10%" class="tr_main tr_mainRight" align="center">
<a id="{_removeInd}" class="classHandlePort deleteClass" data="{_aboutMsg}" href="###">删除</a>
<a id="{_joinInd}" class="classHandlePort" href="###" data="{_aboutMsg}">查看约课信息</a>
</td>
</tr>
`;
... ... @@ -72,6 +72,8 @@ class CreateUserApe extends Ape {
$('#classHandlerEndPage3').on('click',this._endPageHandler.bind(this));//尾页
$('#classHandlerSpecificPage3').on('click',this._assignPageHandler.bind(this));//指定页
$('#courseContent3').on('click','.deleteClass',this._deleteClass.bind(this));//删除课堂
}
addEvent() {
... ... @@ -159,7 +161,6 @@ class CreateUserApe extends Ape {
this.pageNo = pageno;
$('#classHandlerPageMsg3').html('第'+page+'页/共'+pageno+'页,有'+count+'个记录');
courseContent.append(adminListTit);
if(_dataList){
if(count <= 7){
$('#classHandlerPageBox3').hide();
... ... @@ -264,6 +265,30 @@ class CreateUserApe extends Ape {
this._signName(_name);//判断登录名
}
}
_deleteClass(evt){
let id = $(evt.target).attr('data');
loger.log('删除',id)
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/users/delUserByUserId/' + id;
let that = this;
$.ajax({
type: "PUT",
url: _url,
headers: {siteId:ClassDataProxy.siteId,
'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
success:function(_data){
loger.log('删除成功',_data)
if(_data && _data.code == 200){
that.detailPage();
// that._gainClassData(_data.returnData.data);
}
},
error:function(error){
loger.log(error,'失败')
}
})
}
_signName(_name){
if(!_name.value){
_name.focus();
... ...
... ... @@ -134,7 +134,7 @@ class HomeApe extends Ape {
_msgImg :'../images/u373.png',
_classroomTitle : _dataList[i].meetingName,
_schoolTime : _getTime,
_subscribeNum : '12人已预约'
_subscribeNum : _dataList[i].reservationNumber+'人预约'
})
liveList.append(_classifyList);
lanclassList.append(_classifyList);
... ...
... ... @@ -159,7 +159,7 @@ class LanclassApe extends Ape {
_msgImg :'../images/u373.png',
_classroomTitle : _dataList[i].meetingName,
_schoolTime : _getTime,
_subscribeNum : '0人已预约'
_subscribeNum : _dataList[i].reservationNumber+'人预约'
})
classifyListContent.append(_classifyList);
}
... ...
... ... @@ -159,7 +159,7 @@ class LanclassApe extends Ape {
_msgImg :'../images/u373.png',
_classroomTitle : _dataList[i].meetingName,
_schoolTime : _getTime,
_subscribeNum : '0人已预约'
_subscribeNum : _dataList[i].reservationNumber+'人预约'
})
classifyListContent.append(_classifyList);
}
... ...
... ... @@ -286,7 +286,7 @@ class LoginOrRegister extends Ape {
ClassDataProxy.status = true;
ClassDataProxy.id = _data.returnData.data.id;
// ClassDataProxy.siteId = _data.returnData.data.siteId;
ClassDataProxy.siteId = 'markettest'
ClassDataProxy.siteId = 'networkschool'
ClassDataProxy.monicker = _data.returnData.data.userName;
ClassDataProxy.userEmail = _data.returnData.data.userEmail;
ClassDataProxy.userMobile = _data.returnData.data.userMobile;
... ...
... ... @@ -48,8 +48,8 @@ const adminList = `<tr align="center" bgcolor="#FFFFFF" height="44" bordercolor=
<a id="{_mediaInd}" class="classHandlePort" href="###">多媒体</a>
<a id="{_musicInd}" class="classHandlePort" href="###">伴音</a>
<a id="{_updateInd}" class="classHandlePort" href="###">修改</a>
<a id="{_removeInd}" class="classHandlePort deleteClass" href="###">删除</a>
<a data="{_joinInd}" class="classHandlePort joinClass" href="">加入课堂</a>
<a data="{_removeInd}" class="classHandlePort deleteClass" href="#">删除</a>
<a data="{_joinInd}" class="classHandlePort joinClass" href="#">加入课堂</a>
</td>
</tr>
`;
... ... @@ -131,8 +131,11 @@ class ManagementHomePageApe extends Ape {
if(_data.code != 200 ){
loger.warn(_data.returnData.data.msg)
}
that.classDateList = _data.returnData.data;
that._gainClassData(_data.returnData.data);
if(_data && _data.code == 200){
that.classDateList = _data.returnData.data;
that._gainClassData(_data.returnData.data);
}
},
error:function(error){
console.log(error,'失败')
... ... @@ -143,10 +146,12 @@ class ManagementHomePageApe extends Ape {
detailPage(){
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
let that = this;
let status = $('#liveInfoList0').find('.liveInfoLeftLiCheck').attr('data');
loger.log('当前点击的状态',status)
$.ajax({
type: "POST",
url: _url,
data:{siteId:ClassDataProxy.siteId},
data:{siteId:ClassDataProxy.siteId,meetingStatus:status},
headers: {siteId:ClassDataProxy.siteId,
pageno:8,
'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
... ... @@ -176,7 +181,6 @@ class ManagementHomePageApe extends Ape {
if(count <= 8){
$('#classHandlerPageBox0').hide();
}
loger.log('课堂信息',_dataList[0].meetingNumber)
for(let i = 0;i<_dataList.length;i++){
let _adminList = this._format(adminList,{
_meetingName : _dataList[i].meetingName,
... ... @@ -189,7 +193,7 @@ class ManagementHomePageApe extends Ape {
_mediaInd : 'classMedia'+i,
_musicInd : 'classMusic'+i,
_updateInd : 'classUpdate'+i,
_removeInd : 'classRemove'+i,
_removeInd : _dataList[i].id,
_joinInd : _dataList[i].meetingNumber
})
courseContent.append(_adminList);
... ... @@ -199,45 +203,34 @@ class ManagementHomePageApe extends Ape {
}
//删除课堂
_deleteClass(evt){
let ele = $(evt.target).parent().attr('data');
loger.log('删除',ele)
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProtDomain + '/3m/meeting/updateToCancel.do';
let that = this;
let id = $(evt.target).attr('data');
loger.log('删除课堂',id)
//http://networkshool.xuedianyun.com/3m/conference_domain.do#
$.ajax({
type: "PUT",
url: _url,
type: "POST",
url: "http://networkshool.xuedianyun.com/3m/meeting/updateToCancel.do",
dataType: "text",
data:"meeting.id=" + ele + "&temp=" + new Date().getTime(),
headers: {siteId:ClassDataProxy.siteId,
'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
data:"meeting.id=" + id + "&temp=" + new Date().getTime(),
success:function(_data){
if(_data && _data.code == 200){
loger.log('删除成功',_data)
that.detailPage();
// that._gainClassData(_data.returnData.data);
}
loger.log('删除课堂',_data)
window.location.href = "http://networkshool.xuedianyun.com/3m/conference_domain.do";
},
error:function(error){
loger.log(error,'失败')
window.location.href = "http://networkshool.xuedianyun.com/3m/conference_domain.do";
}
})
}
playRecord(meetingNumber) {
let location = "/3m/doPlayRecord.do?meetingNumber=" + meetingNumber;
window.open(location, target = "_blank");
}
_joinClass(evt){
let _data = $(evt.target).attr('data');
// window.open('/3m/attend.do?meetingNumber=' + _data, target = "_blank");
// $(evt.target).attr('src','/3m/attend.do?meetingNumber=' + _data);
$(evt.target).attr('href','http://market.xuedianyun.com/3m/attend.do?meetingNumber=' + _data);
$(evt.target).attr('target', '_blank');
window.open('http://networkshool.xuedianyun.com/3m/attend.do?meetingNumber=' + _data);
}
_switchover(evt){
$(evt.currentTarget).addClass('liveInfoLeftLiCheck').siblings().removeClass('liveInfoLeftLiCheck');
}
_liveInfoLeftLiHandler(evt){
this._switchover(evt);
this.detailPage();
}
//工具类
_format(str, obj) {
... ...
... ... @@ -74,7 +74,7 @@ class MyCenterApe extends Ape {
this._curriculumInfo();
}
$('#teacherMyCenterName').text(ClassDataProxy.loginName);
$('.myCenterContentBox').eq(0).show();
$('.myCenterContentBox').eq(0).show().siblings().hide();
let newDate = new Date();
let newHours = newDate.getHours();
let text = newHours>12?'下午好,':'上午好,'
... ... @@ -146,10 +146,8 @@ class MyCenterApe extends Ape {
if(setPhone != userMobile){
signInfo.userMobile = setPhone;
}
loger.log(signInfo)
let that = this;
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/users/updateUserByUserId/' + id;
loger.log(_url)
$.ajax({
type: "PUT",
url: _url,
... ... @@ -158,21 +156,25 @@ class MyCenterApe extends Ape {
'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
data:signInfo,
success:function(_data){
loger.log('修改信息成功',_data)
loger.log('修改信息',_data)
//获取个人信息数据
if(_data && _data.code == 200){
loger.log('修改信息成功',_data)
ErrorApe.showWarnError('修改信息成功');
ClassDataProxy.loginName =_data.returnData.data.loginName;
ClassDataProxy.monicker = _data.returnData.data.userName;
ClassDataProxy.userEmail = _data.returnData.data.userEmail;
ClassDataProxy.userMobile = _data.returnData.data.userMobile;
ClassDataProxy.loginName =_data.returnData.data.loginName;
ClassDataProxy.monicker = _data.returnData.data.userName;
ClassDataProxy.userEmail = _data.returnData.data.userEmail;
ClassDataProxy.userMobile = _data.returnData.data.userMobile;
window.localStorage.setItem('loginName', ClassDataProxy.loginName);
window.localStorage.setItem('monicker', ClassDataProxy.monicker);
window.localStorage.setItem('userEmail', ClassDataProxy.userEmail);
window.localStorage.setItem('userMobile', ClassDataProxy.userMobile);
}
}else if(_data.code == 400){
ErrorApe.showWarnError('账号未修改');
}else{
ErrorApe.showWarnError(_data.returnData.data.msg);
}
},
error:function(error){
// alert('老师界面获取数据失败')
... ... @@ -208,10 +210,8 @@ class MyCenterApe extends Ape {
_accountMobilelBtnHandler(){
this.data = 2;
this._showInputBox(this.data);
loger.log(this.data)
}
_myCenterBoxHandler(){
loger.log(ClassDataProxy.userType)
if(ClassDataProxy.userType == ClassDataProxy.USER_TYPE_2){
return;
}
... ...
//*
// 录制管理模块
// */
import Loger from "../Loger";
import Ape from "./Ape";
import $ from "jquery";
import ClassDataProxy from "proxy/ClassDataProxy";
import ErrorApe from "./ErrorApe";
let loger = Loger.getLoger('PC-PlayRecordApe');
const adminListTit = `<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" class="t_box">
<tbody>
<tr align="center" height="44" class="tr_center" bgcolor="#fff" bordercolor="#e6e6e6">
<th width="8%" class="tr_center">
课堂主题
</th>
<th width="8%" class="tr_center">
课堂号
</th>
<th width="8%" class="tr_center">
录制人
</th>
<th width="8%" class="tr_center">
录制开始时间
</th>
<th width="8%" class="tr_center">
录制结束时间
</th>
<th width="10%" class="tr_center">
操作
</th>
</tr>
`;
//管理首页
const adminList = `<tr align="center" bgcolor="#FFFFFF" height="44" bordercolor="#e6e6e6">
<td width="8%" class="tr_main tr_mainLeft">{_loginName}</td>
<td width="8%" class="tr_main">{_userName}</td>
<td width="8%" class="tr_main">{_course}</td>
<td width="8%" class="tr_main">{_totalNmu}</td>
<td width="8%" class="tr_main">{_latest}</td>
<td width="10%" class="tr_main tr_mainRight" align="center">
<a id="{_removeInd}" class="classHandlePort playRecord" data="{_userName}" href="#">播放</a>
<a id="{_removeInd}" class="classHandlePort deleteClass" data="{_aboutMsg}" href="###">删除</a>
<a id="{_joinInd}" class="classHandlePort" href="###" data="{_aboutMsg}">设置为非公开</a>
</td>
</tr>
`;
const adminListEnd = `</tbody></table>`;
class PlayRecordApe extends Ape {
constructor() {
super();
this.pageNo = 0;
this.presentInd = 1;
this.addEvent();
this.init();
}
init() {
$('#userClassList5 li').on('click',this._userClassListHandler.bind(this));//用户列表
//录制回放
$('#classHandlerHomePage5').on('click',this._homePageHandler.bind(this));//首页
$('#classHandlerUpPage5').on('click',this._upPageHandler.bind(this));//上页
$('#classHandlerDownPage5').on('click',this._downPageHandler.bind(this));//下页
$('#classHandlerEndPage5').on('click',this._endPageHandler.bind(this));//尾页
$('#classHandlerSpecificPage5').on('click',this._assignPageHandler.bind(this));//指定页
$('#courseContent5').on('click','.playRecord',this.playRecord.bind(this));//回放
$('#courseContent5').on('click','.deleteClass',this.deleteRecord.bind(this));//删除
}
addEvent() {
}
_switchover(evt){
$(evt.currentTarget).addClass('liveInfoLeftLiCheck').siblings().removeClass('liveInfoLeftLiCheck');
}
playRecord(evt) {
let ind = $(evt.target).attr('data');
window.open("http://networkshool.xuedianyun.com/3m/doPlayRecord.do?meetingNumber=" + ind);
}
deleteRecord(evt){
let ind = $(evt.target).attr('data');
$.ajax({
type : 'POST',
url : 'http://networkshool.xuedianyun.com/recordingMeeting/deleteRecordingMeeting.do',
dataType: "text",
data: "recordingMeeting.id=" + id + "&temp=" + new Date().getTime(),
success : function(_data){
loger.log('_data','删除回放数据')
},
error: function () {
loger.log("Request.failed !");
}
})
}
_userClassListHandler(evt){
this._switchover(evt);
this.detailPage(1);
}
//首页
_homePageHandler(){
this.presentInd = 1;
this.detailPage(this.presentInd);
}
//上页
_upPageHandler(){
if(this.presentInd >1){
this.presentInd--;
this.detailPage(this.presentInd);
}
}
//下页
_downPageHandler(){
if(this.presentInd < this.pageNo){
this.presentInd++;
this.detailPage(this.presentInd);
}
}
//尾页
_endPageHandler(){
this.presentInd = this.pageNo;
this.detailPage(this.presentInd);
}
//指定页
_assignPageHandler(){
let inputVal = $('#classHandlerPageInfoInput5').val();
if(parseInt(inputVal) <= this.pageNo || parseInt(inputVal) >= 1 ){
this.detailPage(parseInt(inputVal));
}
}
detailPage(ind){
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
let that = this;
$.ajax({
type: "POST",
url: _url,
data:{siteId : ClassDataProxy.siteId},
headers: {siteId:ClassDataProxy.siteId,
pageno:7,
page:ind,
'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'},
success:function(_data){
if(_data && _data.code == 200){
loger.log(_data,'录制回放数据信息')
that._gainUserClassData(_data.returnData.data);
}
},
error:function(error){
console.log(error,'失败')
}
})
}
_gainUserClassData(_data){
let _dataList = _data.meetingInfo;
let courseContent = $('#courseContent5');
courseContent.empty();
let count = _data.count;
let page = _data.page;
let pageno = _data.pageno;
this.pageNo = pageno;
$('#classHandlerPageMsg5').html('第'+page+'页/共'+pageno+'页,有'+count+'个记录');
courseContent.append(adminListTit);
if(_dataList){
if(count <= 7){
$('#classHandlerPageBox5').hide();
}
for(let i = 0;i<_dataList.length;i++){
let _adminList = this._format(adminList,{
_loginName : _dataList[i].meetingName,
_userName : _dataList[i].meetingNumber,
_course : _dataList[i].create_user,
_totalNmu : _dataList[i].beginTime,
_latest : _dataList[i].endTime,
_removeInd : 'classDoc'+i,
_joinInd : 'classMedia'+i,
_aboutMsg : _dataList[i].id
})
courseContent.append(_adminList);
}
courseContent.append(adminListEnd);
}
}
//工具类
_format(str, obj) {
return str.replace(/\{(\w+)\}/g, function (match, group, index) {
return obj[group];
});
};
}
export default PlayRecordApe;
\ No newline at end of file
... ...
... ... @@ -21,6 +21,7 @@ import CreateUserApe from 'ape/CreateUserApe';//创建用户界面
import AboutClassApe from 'ape/AboutClassApe';//约课界面
import ListDetailsApe from 'ape/ListDetailsApe';//列表详情
import AdministratorApe from 'ape/AdministratorApe';//管理员
import PlayRecordApe from 'ape/PlayRecordApe';//录制管理
import MyCenterApe from 'ape/MyCenterApe';//个人中心
import SubscribeApe from 'ape/SubscribeApe';//预约
import MessageTypes from "MessageTypes";
... ... @@ -41,12 +42,13 @@ let _createUserApe;
let _aboutClassApe;
let _listDetailsApe;
let _administratorApe;
let _playRecordApe;
let _myCenterApe;
let _subscribeApe;
class Main {
constructor() {
this.clientVersion="v1.7.4.20170908";
this.clientVersion="v1.7.5.20170908";
loger.warn("clientVersion:"+this.clientVersion);
let locationProtocol= location.protocol;
... ... @@ -154,7 +156,8 @@ class Main {
//管理员
_administratorApe = new AdministratorApe();
_administratorApe.on(MessageTypes.SWITCH_CLASS,this.switchClass.bind(this));
//录制回放
_playRecordApe = new PlayRecordApe();
//个人中心
_myCenterApe = new MyCenterApe();
... ... @@ -222,6 +225,7 @@ class Main {
break;
case 5:
//录制管理
_playRecordApe.detailPage(1);
break;
case 6:
//站点配置
... ...
... ... @@ -168,6 +168,49 @@ class ClassDataProxy {
}
return Sys;
}
//判断是否是直播状态
static getTimeCompareSize(start,end){
let newDate = Date.parse(new Date());
//开始时间
let newTime = Date.parse(new Date(start))
//结束时间
let oldTime = Date.parse(new Date(end))
if(newDate - oldTime > 0 ){
console.log('正在直播')
return 0;
}else if(newDate < oldTime < 0){
console.log('未开始')
return 1;
}else if(newDate - oldTime < 0){
console.log('已结束')
return 2;
}
/*let newTime = new Date();
let newStart = new Date(start)
let date = newStart.getDate() - newTime.getDate();
let newHours = newStart.getHours();//小时
let oldHours = newTime.getHours();
let newMonth = newStart.getMonth()+1;//月
let oldMonth = newTime.getMonth()+1;
let newDate = newStart.getDate();//日
let newEndHours = oldHours <10 ? '0' + oldHours : oldHours;
let newStartHours = newHours <10 ? '0' + newHours : newHours;
let newStartDate = newStart.getDate()+1<10?'0'+newStart.getDate():newStart.getDate();
let newStartDay = newStart.getDay()<10?'0'+newStart.getDay():newStart.getDay();
if(date < 0){
return '结束了';
}else if( date > 0){
return '未结束';
}*/
}
//计算时间差值显示列表
static getTimeDifference(start,end){
let newTime = new Date();
... ... @@ -227,7 +270,7 @@ ClassDataProxy.password =""
ClassDataProxy.token ="";
ClassDataProxy.status = false;
ClassDataProxy.id = '';
ClassDataProxy.siteId = 'markettest';
ClassDataProxy.siteId = '';
ClassDataProxy.userMobile = '';
ClassDataProxy.userEmail = '';
ClassDataProxy.monicker = "";
... ... @@ -268,8 +311,8 @@ ClassDataProxy.curVideoQuality = 2;//画面质量 0-低;1-中;2-高;
ClassDataProxy.ssTunnelAppURL = '';//屏幕共享插件的地址
ClassDataProxy.locationProtocol="http://";
//ClassDataProxy.locationProt = "192.168.31.8:3000";//端口
ClassDataProxy.locationProt = "123.56.73.119:3000";//端口
ClassDataProxy.locationProt = "192.168.31.8:3000";//端口
//ClassDataProxy.locationProt = "123.56.73.119:3000";//端口
ClassDataProxy.locationProtDomain = "market.xuedianyun.com/";//端口
ClassDataProxy.SCENE_DOC=0;
... ...