董佳音

修改首页课堂类型

@@ -40,11 +40,11 @@ class HomeApe extends Ape { @@ -40,11 +40,11 @@ class HomeApe extends Ape {
40 40
41 $('#header_list li').on('click',this.switchHeaderHandler.bind(this)); 41 $('#header_list li').on('click',this.switchHeaderHandler.bind(this));
42 42
43 - $('#liveBtnMove').on('click',this.liveBtnMoveHandler.bind(this));  
44 - $('#lanclassBtnMove').on('click',this.lanclassBtnMoveHandler.bind(this));  
45 - $('#teacherBtnMove').on('click',this.teacherBtnMoveHandler.bind(this)); 43 + $('#liveBtnMove').on('click',this.liveBtnMoveHandler.bind(this));//最新直播课程
  44 + $('#lanclassBtnMove').on('click',this.lanclassBtnMoveHandler.bind(this));//最新互动课程
  45 + $('#teacherBtnMove').on('click',this.teacherBtnMoveHandler.bind(this));//最新老师推荐
46 46
47 - $('#homeCenterBtn').on('click',this._homeCenterBtnHandler.bind(this)); 47 + $('#homeCenterBtn').on('click',this._homeCenterBtnHandler.bind(this));//个人中心
48 } 48 }
49 49
50 addEvent() { 50 addEvent() {
@@ -93,11 +93,11 @@ class HomeApe extends Ape { @@ -93,11 +93,11 @@ class HomeApe extends Ape {
93 //直播信息 93 //直播信息
94 liveModule(){ 94 liveModule(){
95 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting'; 95 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
96 - let data = {siteId:ClassDataProxy.siteId,meetingStatus:2}; 96 + let data = {siteId:ClassDataProxy.siteId,meetingType:2};
97 let that = this; 97 let that = this;
98 this.detailPage(_url,data,8,1,function(_data){ 98 this.detailPage(_url,data,8,1,function(_data){
99 if(_data){ 99 if(_data){
100 - // loger.log('首页直播信息',_data) 100 + // loger.log('首页直播信息',_data)
101 that._liveClassData(_data.returnData.data.meetingInfo); 101 that._liveClassData(_data.returnData.data.meetingInfo);
102 } 102 }
103 }) 103 })
@@ -105,11 +105,11 @@ class HomeApe extends Ape { @@ -105,11 +105,11 @@ class HomeApe extends Ape {
105 //互动信息 105 //互动信息
106 interactModule(){ 106 interactModule(){
107 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting'; 107 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/meeting/getMeeting';
108 - let data = {siteId:ClassDataProxy.siteId,meetingStatus:1}; 108 + let data = {siteId:ClassDataProxy.siteId,meetingType:1};
109 let that = this; 109 let that = this;
110 this.detailPage(_url,data,8,1,function(_data){ 110 this.detailPage(_url,data,8,1,function(_data){
111 if(_data){ 111 if(_data){
112 - // loger.log('首页互动信息',_data) 112 + // loger.log('首页互动信息',_data)
113 that._gainClassData(_data.returnData.data.meetingInfo); 113 that._gainClassData(_data.returnData.data.meetingInfo);
114 } 114 }
115 }) 115 })
@@ -117,11 +117,11 @@ class HomeApe extends Ape { @@ -117,11 +117,11 @@ class HomeApe extends Ape {
117 //老师信息 117 //老师信息
118 teacherModule(){ 118 teacherModule(){
119 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/users/getUserByUserType'; 119 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/users/getUserByUserType';
120 - let data = {siteId:ClassDataProxy.siteId,userType : 1} 120 + let data = {siteId:ClassDataProxy.siteId,userType :1}
121 let that = this; 121 let that = this;
122 this.detailPage(_url,data,8,1,function(_data){ 122 this.detailPage(_url,data,8,1,function(_data){
123 if(_data){ 123 if(_data){
124 - // loger.log('首页老师信息',_data) 124 + // loger.log('首页老师信息',_data)
125 that._teacherDate(_data.returnData.data.users); 125 that._teacherDate(_data.returnData.data.users);
126 } 126 }
127 }) 127 })
@@ -90,7 +90,7 @@ class LanclassApe extends Ape { @@ -90,7 +90,7 @@ class LanclassApe extends Ape {
90 type: "POST", 90 type: "POST",
91 url: _url, 91 url: _url,
92 timeout:5000, 92 timeout:5000,
93 - data:{siteId:ClassDataProxy.siteId,meetingStatus:1}, 93 + data:{siteId:ClassDataProxy.siteId,meetingType:1},
94 headers: {siteId:ClassDataProxy.siteId, 94 headers: {siteId:ClassDataProxy.siteId,
95 'token':ClassDataProxy.token}, 95 'token':ClassDataProxy.token},
96 success:function(_data){ 96 success:function(_data){
@@ -91,7 +91,7 @@ class LiveClassApe extends Ape { @@ -91,7 +91,7 @@ class LiveClassApe extends Ape {
91 type: "POST", 91 type: "POST",
92 url: _url, 92 url: _url,
93 timeout:5000, 93 timeout:5000,
94 - data:{siteId:ClassDataProxy.siteId,meetingStatus:2}, 94 + data:{siteId:ClassDataProxy.siteId,meetingType:2},
95 headers: {siteId:ClassDataProxy.siteId, 95 headers: {siteId:ClassDataProxy.siteId,
96 'token':ClassDataProxy.token}, 96 'token':ClassDataProxy.token},
97 success:function(_data){ 97 success:function(_data){
@@ -386,6 +386,9 @@ class MyBookingsApe extends Ape { @@ -386,6 +386,9 @@ class MyBookingsApe extends Ape {
386 }) 386 })
387 } 387 }
388 _studentCurriculumInfo(num,ind,callback){ 388 _studentCurriculumInfo(num,ind,callback){
  389 + if(ClassDataProxy.id == ''){
  390 + return;
  391 + }
389 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/getStudentMeetingByStudentId/'+ClassDataProxy.id; 392 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/getStudentMeetingByStudentId/'+ClassDataProxy.id;
390 let that = this; 393 let that = this;
391 $.ajax({ 394 $.ajax({
@@ -286,6 +286,9 @@ class MyCenterApe extends Ape { @@ -286,6 +286,9 @@ class MyCenterApe extends Ape {
286 }) 286 })
287 } 287 }
288 _studentCurriculumInfo(num,_data,callback){ 288 _studentCurriculumInfo(num,_data,callback){
  289 + if(ClassDataProxy.id == ''){
  290 + return;
  291 + }
289 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/getStudentMeetingByStudentId/'+ClassDataProxy.id; 292 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/getStudentMeetingByStudentId/'+ClassDataProxy.id;
290 let that = this; 293 let that = this;
291 $.ajax({ 294 $.ajax({
@@ -642,6 +642,9 @@ class MyCoursesApe extends Ape { @@ -642,6 +642,9 @@ class MyCoursesApe extends Ape {
642 }) 642 })
643 } 643 }
644 _studentCurriculumInfo(num,_data,callback){ 644 _studentCurriculumInfo(num,_data,callback){
  645 + if(ClassDataProxy.id == ''){
  646 + return;
  647 + }
645 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/getStudentMeetingByStudentId/'+ClassDataProxy.id; 648 let _url = ClassDataProxy.locationProtocol + ClassDataProxy.locationProt + '/studentMeeting/getStudentMeetingByStudentId/'+ClassDataProxy.id;
646 let that = this; 649 let that = this;
647 $.ajax({ 650 $.ajax({
@@ -70,7 +70,7 @@ let _headSwitchTitleApe; @@ -70,7 +70,7 @@ let _headSwitchTitleApe;
70 70
71 class Main { 71 class Main {
72 constructor() { 72 constructor() {
73 - this.clientVersion="v1.8.8.20170929"; 73 + this.clientVersion="v1.8.9.20171011";
74 loger.warn("clientVersion:"+this.clientVersion); 74 loger.warn("clientVersion:"+this.clientVersion);
75 75
76 let locationProtocol= location.protocol; 76 let locationProtocol= location.protocol;
@@ -345,7 +345,7 @@ class Main { @@ -345,7 +345,7 @@ class Main {
345 } 345 }
346 addClass(_data){ 346 addClass(_data){
347 loger.log('创建课堂成功') 347 loger.log('创建课堂成功')
348 - _managementHomePageApe.detailPage(); 348 + _managementHomePageApe.adminListSwitch();
349 _homeApe.isLocalStorage(); 349 _homeApe.isLocalStorage();
350 } 350 }
351 //预约成功重新渲染数据 351 //预约成功重新渲染数据