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-09-02 10:11:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0cf704fbcaead0933e3c0ceb59a5e7abc050bfa
c0cf704f
1 parent
7e83e174
动态创建管理员列表
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
14 行增加
和
10 行删除
src/ape/AdministratorApe.js
src/ape/CreateClassApe.js
src/ape/LoginOrRegister.js
src/ape/AdministratorApe.js
查看文件 @
c0cf704
...
...
@@ -60,6 +60,7 @@ class AdministratorApe extends Ape {
constructor
()
{
super
();
this
.
classDateList
=
{};
//课堂的所有数据
this
.
pageNo
=
0
;
this
.
addEvent
();
this
.
init
();
}
...
...
@@ -80,7 +81,7 @@ class AdministratorApe extends Ape {
}
//首页
_homePageHandler
(){
this
.
_pageNumBtnHandler
(
1
);
}
//上页
_upPageHandler
(){
...
...
@@ -92,7 +93,7 @@ class AdministratorApe extends Ape {
}
//尾页
_endPageHandler
(){
this
.
_pageNumBtnHandler
(
this
.
pageNo
);
}
//指定页
_assignPageHandler
(){
...
...
@@ -103,27 +104,27 @@ class AdministratorApe extends Ape {
}
//点击翻页
_pageNumBtnHandler
(
evt
){
_pageNumBtnHandler
(
ind
){
let
_url
=
ClassDataProxy
.
locationProtocol
+
ClassDataProxy
.
locationProt
+
'/meeting/getMeeting'
;
let
_ele
=
$
(
evt
.
target
);
//
let _ele = $(evt.target);
let
that
=
this
;
if
(
_ele
.
siblings
().
length
>
1
){
if
(
this
.
pageNo
>
2
){
// _ele.addClass('pageNumBtnCheck').siblings().removeClass('pageNumBtnCheck');
$
.
ajax
({
type
:
"POST"
,
url
:
_url
,
headers
:
{
'page'
:
_ele
.
text
(),
siteId
:
'markettest'
,
data
:{
siteId
:
'markettest'
},
headers
:
{
'page'
:
ind
,
'token'
:
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IlhXQnJlRU00T0swYTVqUUIyUTFicGtObHlxOUFWbXZkIiwibmFtZSI6ImFkbWluIiwiY29kZSI6MSwiaWF0IjoxNTAzNDUxODU0LCJleHAiOjIyODEwNTE4NTR9.3kTVzKd_jbP7l69nxOpNaFeSjVnnjZkagYMzRB8fjNo'
,
},
success
:
function
(
_data
){
if
(
_data
!=
200
){
// loger.warn(_data.data.msg)
return
;
}
that
.
classDateList
=
_data
.
returnData
.
data
;
//切换列表内容
that
.
_classDateContent
(
that
.
classDateList
);
that
.
_gainClassData
(
_data
.
returnData
.
data
);
loger
.
log
(
_data
,
'成功'
)
},
error
:
function
(
error
){
...
...
@@ -164,6 +165,7 @@ class AdministratorApe extends Ape {
let
page
=
_data
.
page
;
let
pageno
=
_data
.
pageno
;
let
_dataList
=
_data
.
meetingInfo
;
this
.
pageNo
=
pageno
;
$
(
'#classHandlerPageMsg'
).
html
(
'第'
+
page
+
'页/共'
+
pageno
+
'页,有'
+
count
+
'个记录'
);
courseContent
.
append
(
adminListTit
);
if
(
_dataList
){
...
...
src/ape/CreateClassApe.js
查看文件 @
c0cf704
...
...
@@ -164,10 +164,11 @@ class CreateClassApe extends Ape {
let
dateList
=
this
.
classDateList
;
let
_url
=
ClassDataProxy
.
locationProtocol
+
ClassDataProxy
.
locationProt
+
'/meeting/createMeeting'
;
let
userName
=
window
.
localStorage
.
getItem
(
'loginName'
);
let
userType
=
window
.
localStorage
.
getItem
(
'userType'
);
dateList
.
siteId
=
'markettest'
;
dateList
.
userId
=
'123'
;
dateList
.
userName
=
userName
;
dateList
.
userType
=
1
;
dateList
.
userType
=
userType
;
let
that
=
this
;
$
.
ajax
({
...
...
src/ape/LoginOrRegister.js
查看文件 @
c0cf704
...
...
@@ -232,6 +232,7 @@ class LoginOrRegister extends Ape {
that
.
successLogin
(
_data
);
window
.
localStorage
.
setItem
(
"loginName"
,
_name
.
value
);
window
.
localStorage
.
setItem
(
"password"
,
_passWord
.
value
);
window
.
localStorage
.
setItem
(
"userType"
,
_data
.
returnData
.
data
.
userType
);
window
.
localStorage
.
setItem
(
"token"
,
_data
.
returnData
.
data
.
token
);
}
},
...
...
请
注册
或
登录
后发表评论