|
|
|
@ -76,7 +76,7 @@ class CoursesNew extends Component {
|
|
|
|
|
Realnamecertification: data.authentication,
|
|
|
|
|
Professionalcertification:data.professional_certification,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.handleSearchschool(data.school);
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
@ -93,7 +93,9 @@ class CoursesNew extends Component {
|
|
|
|
|
});
|
|
|
|
|
this.setState({
|
|
|
|
|
school:user_school,
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
this.handleSearchschool(user_school);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -204,6 +206,7 @@ class CoursesNew extends Component {
|
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
|
// this.goback()
|
|
|
|
|
window.location.href=first_category_url;
|
|
|
|
|
window.localStorage.setItem('yslGuideone', true);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
@ -248,6 +251,7 @@ class CoursesNew extends Component {
|
|
|
|
|
if (response.status === 200) {
|
|
|
|
|
// this.goback
|
|
|
|
|
window.location.href=response.data.first_category_url;
|
|
|
|
|
window.localStorage.setItem('yslGuideone', true);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
@ -403,7 +407,9 @@ class CoursesNew extends Component {
|
|
|
|
|
const optionschool = this.state.searchlistscholl&&this.state.searchlistscholl.map(z => <Option key={z} value={z}>{z}</Option>);
|
|
|
|
|
// console.log(this.props.current_user.user_school)
|
|
|
|
|
// form合并了
|
|
|
|
|
|
|
|
|
|
console.log(this.state);
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
console.log(this.props.current_user);
|
|
|
|
|
return (
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
|
|
|
|
|