Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
145f4afd
Commit
145f4afd
authored
Feb 17, 2020
by
FE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'student-register'
parents
d58a31f4
00382be3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
src/components/college/index.js
+3
-7
No files found.
src/components/college/index.js
View file @
145f4afd
...
...
@@ -23,11 +23,6 @@ class CollegePage extends Component {
],
schoolList
:
[
{
id
:
1
,
name
:
'中科大软件学院(苏州)'
,
logo
:
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/zkd_logo.png'
},
{
id
:
null
,
name
:
'东华理工大学软件学院'
,
logo
:
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/dhlg_logo.png'
...
...
@@ -37,16 +32,17 @@ class CollegePage extends Component {
}
componentDidMount
()
{
//
this.fetchSchoolList();
this
.
fetchSchoolList
();
document
.
title
=
`免费提供在线教学系统 助力全国高校在线教学 - 七月在线`
}
fetchSchoolList
=
()
=>
{
const
{
schoolList
}
=
this
.
state
;
http
.
get
(
`
${
API
[
'home'
]}
/sys/school/list`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
;
if
(
code
===
200
)
{
this
.
setState
({
schoolList
:
data
,
schoolList
:
data
.
concat
(
schoolList
)
,
});
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment