From dc931ec403be2245bc27bd388e873ab96737c3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 19 Aug 2019 15:26:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/modals/Certifiedprofessional.js | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 public/react/src/modules/modals/Certifiedprofessional.js diff --git a/public/react/src/modules/modals/Certifiedprofessional.js b/public/react/src/modules/modals/Certifiedprofessional.js new file mode 100644 index 000000000..52b53f915 --- /dev/null +++ b/public/react/src/modules/modals/Certifiedprofessional.js @@ -0,0 +1,74 @@ +import React, { Component } from 'react'; +import { Modal} from 'antd'; +import axios from 'axios'; +//认证职业 +class Certifiedprofessional extends Component { + + constructor(props) { + super(props); + this.state={ + occupation:1, + mydisplay:false, + } + } + + componentDidMount() { + // console.log("加入金品课堂"); + // console.log(this.props); + + } + componentDidMount() { + axios.interceptors.response.use((response) => { + if (response != undefined) + if (response && response.data.status === -1) { + if(response.data.message==="该课堂要求成员完成实名认证"){ + + }else if(response.data.message==="该课堂要求成员完成职业认证"){ + + }else if(response.data.message==="该课堂要求成员完成实名和职业认证"){ + + } + } + return response; + }, (error) => { + //TODO 这里如果样式变了会出现css不加载的情况 + + }); + } + modalCancel=()=>{ + this.props.ysljoinmodalCancel(); + }; + + setDownload=()=>{ + + + } + + + render() { + // console.log("加入金品课堂2"); + // console.log(this.props); + return( + +
+

请在完成条件后重试

+
+ this.modalCancel()}>取消 + this.setDownload()}>确认 +
+
+
+ ) + } +} + +export default Certifiedprofessional; \ No newline at end of file