Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
董佳音
/
networkSchool
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
董佳音
2017-10-11 14:11:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2485c5730d50789bf9ee564d9bfac7af5d9dccb8
2485c573
1 parent
10dbdf71
修改首页课堂类型
隐藏空白字符变更
内嵌
并排对比
正在显示
7 个修改的文件
包含
23 行增加
和
14 行删除
src/ape/HomeApe.js
src/ape/LanclassApe.js
src/ape/LiveClassApe.js
src/ape/MyBookingsApe.js
src/ape/MyCenterApe.js
src/ape/MyCoursesApe.js
src/main.js
src/ape/HomeApe.js
查看文件 @
2485c57
...
...
@@ -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
,
meeting
Status
:
2
};
let
data
=
{
siteId
:
ClassDataProxy
.
siteId
,
meeting
Type
:
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
,
meeting
Status
:
1
};
let
data
=
{
siteId
:
ClassDataProxy
.
siteId
,
meeting
Type
:
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
);
}
})
...
...
src/ape/LanclassApe.js
查看文件 @
2485c57
...
...
@@ -90,7 +90,7 @@ class LanclassApe extends Ape {
type
:
"POST"
,
url
:
_url
,
timeout
:
5000
,
data
:{
siteId
:
ClassDataProxy
.
siteId
,
meeting
Status
:
1
},
data
:{
siteId
:
ClassDataProxy
.
siteId
,
meeting
Type
:
1
},
headers
:
{
siteId
:
ClassDataProxy
.
siteId
,
'token'
:
ClassDataProxy
.
token
},
success
:
function
(
_data
){
...
...
src/ape/LiveClassApe.js
查看文件 @
2485c57
...
...
@@ -91,7 +91,7 @@ class LiveClassApe extends Ape {
type
:
"POST"
,
url
:
_url
,
timeout
:
5000
,
data
:{
siteId
:
ClassDataProxy
.
siteId
,
meeting
Status
:
2
},
data
:{
siteId
:
ClassDataProxy
.
siteId
,
meeting
Type
:
2
},
headers
:
{
siteId
:
ClassDataProxy
.
siteId
,
'token'
:
ClassDataProxy
.
token
},
success
:
function
(
_data
){
...
...
src/ape/MyBookingsApe.js
查看文件 @
2485c57
...
...
@@ -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({
...
...
src/ape/MyCenterApe.js
查看文件 @
2485c57
...
...
@@ -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
({
...
...
src/ape/MyCoursesApe.js
查看文件 @
2485c57
...
...
@@ -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
({
...
...
src/main.js
查看文件 @
2485c57
...
...
@@ -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
();
}
//预约成功重新渲染数据
...
...
请
注册
或
登录
后发表评论