董佳音

修改首页课堂类型

... ... @@ -40,11 +40,11 @@ class HomeApe extends Ape {
$('#header_list li').on('click',this.switchHeaderHandler.bind(this));
$('#liveBtnMove').on('click',this.liveBtnMoveHandler.bind(this));
$('#lanclassBtnMove').on('click',this.lanclassBtnMoveHandler.bind(this));
$('#teacherBtnMove').on('click',this.teacherBtnMoveHandler.bind(this));
$('#liveBtnMove').on('click',this.liveBtnMoveHandler.bind(this));//最新直播课程
$('#lanclassBtnMove').on('click',this.lanclassBtnMoveHandler.bind(this));//最新互动课程
$('#teacherBtnMove').on('click',this.teacherBtnMoveHandler.bind(this));//最新老师推荐
$('#homeCenterBtn').on('click',this._homeCenterBtnHandler.bind(this));
$('#homeCenterBtn').on('click',this._homeCenterBtnHandler.bind(this));//个人中心
}
addEvent() {
... ... @@ -93,11 +93,11 @@ class HomeApe extends Ape {
//直播信息
liveModule(){
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
let data = {siteId:ClassDataProxy.siteId,meetingStatus:2};
let data = {siteId:ClassDataProxy.siteId,meetingType:2};
let that = this;
this.detailPage(_url,data,8,1,function(_data){
if(_data){
// loger.log('首页直播信息',_data)
// loger.log('首页直播信息',_data)
that._liveClassData(_data.returnData.data.meetingInfo);
}
})
... ... @@ -105,11 +105,11 @@ class HomeApe extends Ape {
//互动信息
interactModule(){
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
let data = {siteId:ClassDataProxy.siteId,meetingStatus:1};
let data = {siteId:ClassDataProxy.siteId,meetingType:1};
let that = this;
this.detailPage(_url,data,8,1,function(_data){
if(_data){
// loger.log('首页互动信息',_data)
// loger.log('首页互动信息',_data)
that._gainClassData(_data.returnData.data.meetingInfo);
}
})
... ... @@ -117,11 +117,11 @@ class HomeApe extends Ape {
//老师信息
teacherModule(){
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/users/getUserByUserType';
let data = {siteId:ClassDataProxy.siteId,userType : 1}
let data = {siteId:ClassDataProxy.siteId,userType :1}
let that = this;
this.detailPage(_url,data,8,1,function(_data){
if(_data){
// loger.log('首页老师信息',_data)
// loger.log('首页老师信息',_data)
that._teacherDate(_data.returnData.data.users);
}
})
... ...
... ... @@ -90,7 +90,7 @@ class LanclassApe extends Ape {
type: "POST",
url: _url,
timeout:5000,
data:{siteId:ClassDataProxy.siteId,meetingStatus:1},
data:{siteId:ClassDataProxy.siteId,meetingType:1},
headers: {siteId:ClassDataProxy.siteId,
'token':ClassDataProxy.token},
success:function(_data){
... ...
... ... @@ -91,7 +91,7 @@ class LiveClassApe extends Ape {
type: "POST",
url: _url,
timeout:5000,
data:{siteId:ClassDataProxy.siteId,meetingStatus:2},
data:{siteId:ClassDataProxy.siteId,meetingType:2},
headers: {siteId:ClassDataProxy.siteId,
'token':ClassDataProxy.token},
success:function(_data){
... ...
... ... @@ -386,6 +386,9 @@ class MyBookingsApe extends Ape {
})
}
_studentCurriculumInfo(num,ind,callback){
if(ClassDataProxy.id == ''){
return;
}
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/getStudentMeetingByStudentId/'+ClassDataProxy.id;
let that = this;
$.ajax({
... ...
... ... @@ -286,6 +286,9 @@ class MyCenterApe extends Ape {
})
}
_studentCurriculumInfo(num,_data,callback){
if(ClassDataProxy.id == ''){
return;
}
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/getStudentMeetingByStudentId/'+ClassDataProxy.id;
let that = this;
$.ajax({
... ...
... ... @@ -642,6 +642,9 @@ class MyCoursesApe extends Ape {
})
}
_studentCurriculumInfo(num,_data,callback){
if(ClassDataProxy.id == ''){
return;
}
let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/getStudentMeetingByStudentId/'+ClassDataProxy.id;
let that = this;
$.ajax({
... ...
... ... @@ -70,7 +70,7 @@ let _headSwitchTitleApe;
class Main {
constructor() {
this.clientVersion="v1.8.8.20170929";
this.clientVersion="v1.8.9.20171011";
loger.warn("clientVersion:"+this.clientVersion);
let locationProtocol= location.protocol;
... ... @@ -345,7 +345,7 @@ class Main {
}
addClass(_data){
loger.log('创建课堂成功')
_managementHomePageApe.detailPage();
_managementHomePageApe.adminListSwitch();
_homeApe.isLocalStorage();
}
//预约成功重新渲染数据
... ...