diff --git a/src/App.js b/src/App.js index d1c049dc0..eb6985bae 100644 --- a/src/App.js +++ b/src/App.js @@ -160,7 +160,7 @@ const Topic = Loadable({ }) // 此处仅维护前端可能的一级路由,不用进行项目或者组织判断的字段。 -const keyWord = ["explore", "settings", "setting", "mulan", "wiki", "issues", "setting", "trending", "code", "projects", "pulls", "mine", "login", "register", "email", "export", "nopage", "404", "403", "500", "501", "search", "organize", "login", "register", "resetPassword", "aboutus","educoder", "glcc","bindlogin", "softbot","zone"]; +const keyWord = ["explore", "settings", "setting", "mulan", "wiki", "issues", "setting", "trending", "code", "projects", "pulls", "mine", "login", "register", "email", "export", "nopage", "404", "403", "500", "501", "search", "organize", "login", "register", "resetPassword", "aboutus","educoder", "glcc","bindlogin", "softbot","zone","zone1"]; class App extends Component { constructor(props) { @@ -388,6 +388,14 @@ class App extends Component { } }> + { + return () + } + }> + { + initList(); + },[personList]) + + return( +
+ { + showList && showList.length > 0 ? + + { + showList.map((i,k)=>{ + return( +
+ { i.name && +
+ +
{i.name}
+

{i.introduction || "暂无~"}

+
+ } +
+ ) + }) + } +
+ :"" + } +
+ + ) +} +export default Contributor; \ No newline at end of file diff --git a/src/forge/Information/Component/hot.jsx b/src/forge/Information/Component/hot.jsx index ba9c224fd..4096b0a86 100644 --- a/src/forge/Information/Component/hot.jsx +++ b/src/forge/Information/Component/hot.jsx @@ -1,7 +1,7 @@ import React from 'react'; import { Link } from 'react-router-dom'; -function Hot({list , title,deptId}){ +function Hot({list , title, deptId, temp}){ return(

{title}

@@ -13,7 +13,7 @@ function Hot({list , title,deptId}){ return(
  • {k+1} - {i.name} + {i.name}
  • ) }) diff --git a/src/forge/Information/Component/memberApply.jsx b/src/forge/Information/Component/memberApply.jsx new file mode 100644 index 000000000..af84eee67 --- /dev/null +++ b/src/forge/Information/Component/memberApply.jsx @@ -0,0 +1,79 @@ +import React , {forwardRef, useEffect, useState} from 'react'; +import { Modal , Form , Input , Button, Icon } from 'antd'; +import UploadImage from '../../Team/Component/UploadImage'; +import { getImageUrlAbsolute, getZoneUrl } from 'educoder'; + +const { TextArea } = Input; + +function MemberApply(props){ + const { getFieldDecorator, validateFields , setFieldsValue } = props.form; + const { current_user, onOk, visible, onCancel } = props + const [imageUrl, setImageUrl] = useState(undefined) + + useEffect(()=>{ + if (current_user) { + setImageUrl(getImageUrlAbsolute(`/${current_user.image_url}`)); + } + },[current_user]) + + function onSure(){ + validateFields((error,values)=>{ + if(!error){ + values.imageUrl = imageUrl + onOk(values) + } + }) + } + + const layout = { + labelCol: { span: 5 }, + wrapperCol: { span: 18 }, + }; + return( + + + +
    + } + centered + > +
    +
    + + {getFieldDecorator("name", { + initialValue: current_user.nickname, + rules:[{ required:true,message:"请输入申请原因" }] + })( + + )} + + + setImageUrl(url) } url={ getImageUrlAbsolute(`/${current_user.image_url}`)} action={ getZoneUrl(`/api/cms/common/upload`) } /> + + + {getFieldDecorator("introduction",{ + rules:[{ required:true,message:"请输入会员简介" }] + })( +