diff --git a/public/react/src/modules/user/Interestpage.js b/public/react/src/modules/user/Interestpage.js index 9c31abd1b..b00294b58 100644 --- a/public/react/src/modules/user/Interestpage.js +++ b/public/react/src/modules/user/Interestpage.js @@ -1,6 +1,8 @@ import React, {Component} from 'react'; import {Button,notification} from 'antd'; import {broadcastChannelPostMessage} from 'educoder'; +import MyEduCoderModal from './MyEduCoderModal'; +import Notcompleted from './Notcompleted'; import axios from 'axios'; import './common.css' import mytc from './img/mytc.png'; @@ -155,6 +157,12 @@ class InterestpageComponent extends Component { } + setMyEduCoderModals=()=>{ + this.setState({ + MyEduCoderModals:true + }) + } + //兴趣页面点击 Interestcompletionpage(){ if(this.state.gouxuans.length === 0){ @@ -179,7 +187,8 @@ class InterestpageComponent extends Component { }).then((response) => { if (response !== undefined) { // this.Jumptotheinterestpage(); - window.location.href = "/" + // window.location.href = "/" + this.setMyEduCoderModals() } @@ -218,6 +227,13 @@ class InterestpageComponent extends Component { // console.log(error); // }) // } + setNotcompleteds=()=>{ + this.setState({ + Notcompleteds:true, + MyEduCoderModals:false + }) + } + render() { const { gouxuans, @@ -228,6 +244,14 @@ class InterestpageComponent extends Component {