diff --git a/src/forge/Information/Component/memberApply.jsx b/src/forge/Information/Component/memberApply.jsx
new file mode 100644
index 000000000..9025026fe
--- /dev/null
+++ b/src/forge/Information/Component/memberApply.jsx
@@ -0,0 +1,82 @@
+import React , {forwardRef, useEffect} from 'react';
+import { Modal , Form , Input , Button } from 'antd';
+import UploadImage from '../../Team/Component/UploadImage';
+import { getImageUrl } from 'educoder';
+
+const { TextArea } = Input;
+
+function MemberApply(props){
+ const { getFieldDecorator, validateFields , setFieldsValue } = props.form;
+ const { current_user, onOk, visible, onCancel } = props
+
+ useEffect(()=>{
+ // if(email){
+ // setFieldsValue({email})
+ // }
+ },[current_user])
+
+ function onSure(){
+ validateFields((error,values)=>{
+ if(!error){
+ console.log(values)
+ }
+ })
+ }
+
+ function getImageId(id){
+ console.log(image)
+ }
+
+ const layout = {
+ labelCol: { span: 5 },
+ wrapperCol: { span: 18 },
+ };
+ return(
+
+
+
+
+ }
+ centered
+ >
+
+
+ 若您未填写会员头像,会员名称,我们会将您的GitLink用户头像及昵称自动填入,请知悉
+
+
+ {getFieldDecorator("name", {
+ initialValue: current_user.nickname
+ })(
+
+ )}
+
+
+
+
+
+ {getFieldDecorator("introduction",{
+ rules:[{ required:true,message:"请输入会员简介" }]
+ })(
+
+ )}
+
+
+ {getFieldDecorator("remark",{
+ rules:[{ required:true,message:"请输入申请原因" }]
+ })(
+
+ )}
+
+
+
+
+ )
+}
+export default Form.create()(forwardRef(MemberApply));
\ No newline at end of file
diff --git a/src/forge/Information/Pages/zoneVIP.jsx b/src/forge/Information/Pages/zoneVIP.jsx
index 164057897..b9b4d4b53 100644
--- a/src/forge/Information/Pages/zoneVIP.jsx
+++ b/src/forge/Information/Pages/zoneVIP.jsx
@@ -2,10 +2,12 @@ import React , { useState , useEffect } from 'react';
import Crown from '../img/crown.png';
import Nodata from '../../Nodata';
import { Link } from 'react-router-dom';
-import { Spin } from 'antd';
+import { Spin, Button } from 'antd';
import { httpUrl } from '../fetch';
import axios from 'axios';
import { tempConfig } from '../tempInfo'
+import MemberApply from '../Component/memberApply';
+
import '../indexZone1.scss'
@@ -13,6 +15,7 @@ function ZoneVIP(props){
const { deptId } = props.match.params;
const [ vipLists , setVIPLists ] = useState(undefined);
const [ isSpin , setIsSpin ] = useState(true);
+ const [ applyVisible , setApplyVisible ] = useState(false);
const { id } = props;
const temp = props.pathName
@@ -33,10 +36,17 @@ function ZoneVIP(props){
}).catch(error=>{setIsSpin(false);})
}
+ function onOk(e) {
+ console.log(e)
+ }
+
return(
{ tempConfig[temp].member }
{ tempConfig[temp].vipDesc }
+
+
setApplyVisible(!applyVisible)} current_user={props.current_user}/>
+
{
diff --git a/src/forge/Information/index.jsx b/src/forge/Information/index.jsx
index 056bc1f78..fac4e7ada 100644
--- a/src/forge/Information/index.jsx
+++ b/src/forge/Information/index.jsx
@@ -52,6 +52,9 @@ function Index(props){
const { deptId } = props.match.params;
const [ id , setId ] = useState(undefined);
const temp = props.pathName
+ const current_user = props.current_user
+ console.log(current_user)
+ console.log(props)
useEffect(()=>{
if(deptId){
diff --git a/src/forge/Information/index.scss b/src/forge/Information/index.scss
index 43240249e..2b3b97bf8 100644
--- a/src/forge/Information/index.scss
+++ b/src/forge/Information/index.scss
@@ -409,6 +409,10 @@
display: flex;
align-items: center;
}
+.flexCenterJustify{
+ display: flex;
+ justify-content: center;
+}
.detail_news_all{
.detail_banners{
background-image: url(./img/subbanner.png);