You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import React , { Component } from 'react' ;
import { Modal } from 'antd' ;
import axios from 'axios' ;
import '../../modules/user/common.css' ;
//完善个人资料
class Notcompletedysl extends Component {
constructor ( props ) {
super ( props )
this . state = {
modalsType : false ,
}
}
componentDidMount ( ) {
// console.log("Notcompletedysl");
// console.log("开发了402了");
axios . interceptors . response . use ( ( response ) => {
// console.log(response);
if ( response != undefined )
if ( response && response . data . status === 402 ) {
this . setState ( {
modalsType : true
} )
}
return response ;
} , ( error ) => {
//TODO 这里如果样式变了会出现css不加载的情况
} ) ;
}
modalCancel = ( ) => {
window . location . href = "/" ;
}
setDownload = ( ) => {
window . location . href = '/account/profile' ;
}
render ( ) {
console . log ( this . props )
return (
< Modal
keyboard = { false }
closable = { false }
footer = { null }
destroyOnClose = { true }
title = "提示"
centered = { true }
visible = { this . state . modalsType }
width = "530px"
>
< div className = "educouddiv" >
< div className = { "tabeltext-alignleft mt10" } > < p > 您尚未完善个人资料 < / p > < / d i v >
< div className = { "tabeltext-alignleft mt10" } > < p > 请在完成资料后 , 提交试用申请 < / p > < / d i v >
< div className = "clearfix mt30 edu-txt-center" >
< a className = "task-btn mr30" onClick = { ( ) => this . modalCancel ( ) } > 取消 < / a >
< a className = "task-btn task-btn-orange" onClick = { ( ) => this . setDownload ( ) } > 立即完善资料 < / a >
< / d i v >
< / d i v >
< / M o d a l >
)
}
}
export default Notcompletedysl ;