|
|
|
@ -130,16 +130,17 @@ class CoursesBanner extends Component {
|
|
|
|
|
axios.get(url,{params:
|
|
|
|
|
dataqueryss
|
|
|
|
|
}).then((result) => {
|
|
|
|
|
if(result.data.status===-2){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// AccountProfiletype:true,
|
|
|
|
|
// content:result.data.message,
|
|
|
|
|
// okText:"立即认证",
|
|
|
|
|
// cannelText:"稍后认证",
|
|
|
|
|
// okHref:`/account/certification`,
|
|
|
|
|
// Accounturltype:true
|
|
|
|
|
// })
|
|
|
|
|
}else{
|
|
|
|
|
try {
|
|
|
|
|
if(result.data.status===-2){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// AccountProfiletype:true,
|
|
|
|
|
// content:result.data.message,
|
|
|
|
|
// okText:"立即认证",
|
|
|
|
|
// cannelText:"稍后认证",
|
|
|
|
|
// okHref:`/account/certification`,
|
|
|
|
|
// Accounturltype:true
|
|
|
|
|
// })
|
|
|
|
|
}else{
|
|
|
|
|
if( result!=undefined){
|
|
|
|
|
let data = result.data;
|
|
|
|
|
this.setState({
|
|
|
|
@ -150,8 +151,12 @@ class CoursesBanner extends Component {
|
|
|
|
|
}else{
|
|
|
|
|
this.onloadupdatabanner()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
foo=(url)=> {
|
|
|
|
|