Commit 145f4afd by FE

Merge branch 'student-register'

parents d58a31f4 00382be3
...@@ -23,11 +23,6 @@ class CollegePage extends Component { ...@@ -23,11 +23,6 @@ class CollegePage extends Component {
], ],
schoolList: [ schoolList: [
{ {
id: 1,
name: '中科大软件学院(苏州)',
logo: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/zkd_logo.png'
},
{
id: null, id: null,
name: '东华理工大学软件学院', name: '东华理工大学软件学院',
logo: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/dhlg_logo.png' logo: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/dhlg_logo.png'
...@@ -37,16 +32,17 @@ class CollegePage extends Component { ...@@ -37,16 +32,17 @@ class CollegePage extends Component {
} }
componentDidMount() { componentDidMount() {
// this.fetchSchoolList(); this.fetchSchoolList();
document.title = `免费提供在线教学系统 助力全国高校在线教学 - 七月在线` document.title = `免费提供在线教学系统 助力全国高校在线教学 - 七月在线`
} }
fetchSchoolList = () => { fetchSchoolList = () => {
const { schoolList } = this.state;
http.get(`${API['home']}/sys/school/list`).then(res => { http.get(`${API['home']}/sys/school/list`).then(res => {
const { code, data } = res.data; const { code, data } = res.data;
if(code === 200) { if(code === 200) {
this.setState({ this.setState({
schoolList: data, schoolList: data.concat(schoolList),
}); });
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment