dev_newshixunModel
杨树明 5 years ago
parent 59315e4478
commit 794d35968d

@ -83,9 +83,9 @@ export function initAxiosInterceptors(props) {
}
config.url = `${proxy}${url}`;
if (config.url.indexOf('?') == -1) {
config.url = `${config.url}?debug=${debugType}`
config.url = `${config.url}?debug=${'student'}`
} else {
config.url = `${config.url}&debug=${debugType}`
config.url = `${config.url}&debug=${'student'}`
}
} else {
// 加api前缀

@ -32,7 +32,12 @@ class Fileslistitem extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -14,7 +14,12 @@ class BoardsListItem extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -21,7 +21,12 @@ class CommonWorkItem extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -58,7 +58,12 @@ class ExerciseListItem extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -140,7 +140,12 @@ class GraduateTaskItem extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -20,7 +20,12 @@ class GraduateTopicItem extends Component{
this.props.showLoginDialog("iscancel")
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -21,7 +21,12 @@ class PollListItem extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -150,7 +150,12 @@ class ShixunhomeWorkItem extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -199,7 +199,12 @@ class DetailCards extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -248,7 +248,12 @@ class DetailTop extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
@ -267,7 +272,12 @@ class DetailTop extends Component{
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return

@ -167,6 +167,14 @@ class TPMBanner extends Component {
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.setState({
AccountProfiletype:true
@ -390,6 +398,13 @@ class TPMBanner extends Component {
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.setState({
AccountProfiletype:true

@ -227,6 +227,12 @@ class Challenges extends Component {
return
}
if(this.props.checkIfProfileCompleted()===false){
this.setState({
AccountProfiletype:true
})
return
}
if(this.props.checkIfProfessionalCertification()===false){
this.setState({

Loading…
Cancel
Save