dev_forum
杨树明 6 years ago
parent 9416d0df14
commit b63474c860

@ -1,6 +1,8 @@
import React, {Component} from 'react'; import React, {Component} from 'react';
import {Button,notification} from 'antd'; import {Button,notification} from 'antd';
import {broadcastChannelPostMessage} from 'educoder'; import {broadcastChannelPostMessage} from 'educoder';
import MyEduCoderModal from './MyEduCoderModal';
import Notcompleted from './Notcompleted';
import axios from 'axios'; import axios from 'axios';
import './common.css' import './common.css'
import mytc from './img/mytc.png'; import mytc from './img/mytc.png';
@ -155,6 +157,12 @@ class InterestpageComponent extends Component {
} }
setMyEduCoderModals=()=>{
this.setState({
MyEduCoderModals:true
})
}
//兴趣页面点击 //兴趣页面点击
Interestcompletionpage(){ Interestcompletionpage(){
if(this.state.gouxuans.length === 0){ if(this.state.gouxuans.length === 0){
@ -179,7 +187,8 @@ class InterestpageComponent extends Component {
}).then((response) => { }).then((response) => {
if (response !== undefined) { if (response !== undefined) {
// this.Jumptotheinterestpage(); // this.Jumptotheinterestpage();
window.location.href = "/" // window.location.href = "/"
this.setMyEduCoderModals()
} }
@ -218,6 +227,13 @@ class InterestpageComponent extends Component {
// console.log(error); // console.log(error);
// }) // })
// } // }
setNotcompleteds=()=>{
this.setState({
Notcompleteds:true,
MyEduCoderModals:false
})
}
render() { render() {
const { const {
gouxuans, gouxuans,
@ -228,6 +244,14 @@ class InterestpageComponent extends Component {
<div className="ysllogin_register_contents" style={{width:"800px",height: "600px"}}> <div className="ysllogin_register_contents" style={{width:"800px",height: "600px"}}>
<MyEduCoderModal
modalsType={this.state.MyEduCoderModals}
setNotcompleteds={()=>{this.setNotcompleteds()}}
/>
<Notcompleted
modalsType={this.state.Notcompleteds}
/>
<div className="ysllogin_section"> <div className="ysllogin_section">
<div className="mt15"><span className="yslspans1">请选择你的职业</span></div> <div className="mt15"><span className="yslspans1">请选择你的职业</span></div>
<div className="ysldivhome1" > <div className="ysldivhome1" >

@ -14,11 +14,12 @@ class MyEduCoderModal extends Component {
} }
modalCancel=()=>{ modalCancel=()=>{
//取消 window.location.href = "/"
} }
setDownload=()=>{ setDownload=()=>{
//立即联系 //立即联系
this.props.setNotcompleteds()
} }

@ -12,11 +12,11 @@ class Notcompleted extends Component {
} }
modalCancel=()=>{ modalCancel=()=>{
//取消 window.location.href = "/";
} }
setDownload=()=>{ setDownload=()=>{
//立即联系 window.location.href ='/account/profile';
} }

Loading…
Cancel
Save