diff --git a/src/forge/javaFetch.js b/src/forge/javaFetch.js
index 02840a15b..912eca533 100644
--- a/src/forge/javaFetch.js
+++ b/src/forge/javaFetch.js
@@ -19,7 +19,6 @@ export default function javaFetch(actionUrl){
// request拦截器
service.interceptors.request.use(config => {
if (cookie.load(TokenKey)) {
- console.log(cookie.load(TokenKey));
config.headers['Authorization'] = cookie.load(TokenKey); // 让每个请求携带自定义token 请根据实际情况自行修改
}
if (window.location.port === "3007") {
diff --git a/src/glcc/api.js b/src/glcc/api.js
new file mode 100644
index 000000000..a3cee6599
--- /dev/null
+++ b/src/glcc/api.js
@@ -0,0 +1,47 @@
+import fetch from './fetch';
+
+// 获取当前用户报名信息
+export function getUserApplyInfo(params) {
+ return fetch({
+ url: '/api/applyInformation/getUserApplyInfo',
+ method: 'get',
+ params
+ });
+}
+
+// 获取单个wiki
+export function getWiki(params) {
+ return fetch({
+ url: '/api/wiki/getWiki',
+ method: 'get',
+ params
+ });
+}
+
+//新增wiki
+export function addWiki(data) {
+ return fetch({
+ url: '/api/wiki/createWiki',
+ method: 'post',
+ data: data
+ });
+}
+
+//更新wiki
+export function updateWiki(data) {
+ return fetch({
+ url: '/api/wiki/updateWiki',
+ method: 'PUT',
+ data: data
+ });
+}
+
+//删除wiki
+export function deleteWiki(data) {
+ return fetch({
+ url: '/api/wiki/deleteWiki',
+ method: 'DELETE',
+ data,
+ });
+}
+
diff --git a/src/glcc/apply/index.jsx b/src/glcc/apply/index.jsx
index ee5134d0f..db999ec33 100644
--- a/src/glcc/apply/index.jsx
+++ b/src/glcc/apply/index.jsx
@@ -1,7 +1,8 @@
import React , { useCallback, useEffect , useState } from 'react';
import { Breadcrumb, Button, Form, Icon, Input, Select, Upload } from 'antd';
import {classify} from '../static';
-import Axios from 'axios';
+import {getUserApplyInfo} from '../api';
+import axios from 'axios';
import './index.scss';
import TextArea from 'antd/lib/input/TextArea';
const Option = Select.Option;
@@ -10,7 +11,8 @@ function Apply(props) {
const {getFieldDecorator, validateFields, setFieldsValue, validateFieldsAndScroll } = form;
const [imageUrl, setImageUrl] = useState(undefined);
const [loading, setLoading] = useState(false);
-
+ const [cateList, setCateList] = useState([]);
+
const helper = useCallback(
(label, extra, name, rules, widget) => (
@@ -20,6 +22,19 @@ function Apply(props) {
[]
);
+ // 获取当前用户报名信息
+ useEffect(()=>{
+ const url = `/project_categories/pinned_index.json`;
+ axios.get(url).then(result=>{
+ if(result && result.data){
+ setCateList(result.data.project_categories);
+ }
+ }).catch(error=>{})
+ current_user && getUserApplyInfo({userId: current_user.user_id}).then(response=>{
+ console.log(response);
+ })
+ }, [])
+
// 当用户输入结束时 检验用户输入是否符合规范
function verify(dataIndex){
validateFields([dataIndex],(error, values)=>{
@@ -57,7 +72,7 @@ function Apply(props) {
'classify',
[],
)}
{helper('官网地址',
@@ -106,8 +121,8 @@ function Apply(props) {
申请说明
1、项目报名时间为4月15日—5月8日,请在报名截止时间(北京时间2022年5月8日18点)前提交报名信息。
-
2、本次夏令营使用Gitlink为代码托管平台,学员基于Gitlink上项目数量完成课程任务。如果您的项目还未在Gitlink中,请现将项目迁移到Gitlink,迁移事项请查看迁移说明文档。如在迁移过程中遇到问题,请加qq群:1071514693 联系qq群管理员。
-
3、提交社区和项目信息后,欢迎与组委会联系沟通本次编程夏令营宣传推广和后续合作工作。联系人:_TigerWang(微信号,添加请备注Gitlink编程夏令营)
+
2、本次夏令营使用Gitlink为代码托管平台,学员基于Gitlink上项目数量完成课程任务。如果您的项目还未在Gitlink中,请现将项目迁移到Gitlink,迁移事项请查看
迁移说明文档。如在迁移过程中遇到问题,请加qq群: 1071514693 联系qq群管理员。
+
3、提交社区和项目信息后,欢迎与组委会联系沟通本次编程夏令营宣传推广和后续合作工作。联系人: _TigerWang(微信号,添加请备注Gitlink编程夏令营)
diff --git a/src/glcc/apply/index.scss b/src/glcc/apply/index.scss
index 55eb117a2..ef0bf9651 100644
--- a/src/glcc/apply/index.scss
+++ b/src/glcc/apply/index.scss
@@ -29,10 +29,15 @@
margin-bottom: 0;
width: 118px;
height: 118px;
+ border: 1px solid;
}
.icon-tianjiadaohang:before{color: #b3c3db;}
.ant-upload-text{color: #a4aabb;}
- .ant-input, .ant-select-selection, .ant-upload.ant-upload-select-picture-card{background: none !important;}
+ .ant-input, .ant-select-selection, .ant-upload.ant-upload-select-picture-card{
+ background: none !important;
+ border-color: #b3c3db;
+ &:hover{border-color:#466aff;}
+ }
}
.introArea{
width: 100%;
@@ -65,5 +70,9 @@
.c000{color: #000000;}
div>.c000{font-weight: bold;}
>div{margin: 10px 0;}
+ .link{
+ color: rgba(70, 106, 255, 1);
+ &:hover{opacity: 0.8;}
+ }
}
}
\ No newline at end of file
diff --git a/src/glcc/fetch.js b/src/glcc/fetch.js
new file mode 100644
index 000000000..85fb0574e
--- /dev/null
+++ b/src/glcc/fetch.js
@@ -0,0 +1,8 @@
+import javaFetch from '../forge/javaFetch';
+
+let settings = JSON.parse(localStorage.chromesetting);
+let actionUrl = settings && settings.common.glcc;
+
+const service = javaFetch(actionUrl);
+export const httpUrl = actionUrl;
+export default service;
\ No newline at end of file
diff --git a/src/glcc/help/index.jsx b/src/glcc/help/index.jsx
index cea6ffa7a..3eaeffdc1 100644
--- a/src/glcc/help/index.jsx
+++ b/src/glcc/help/index.jsx
@@ -1,11 +1,7 @@
-import React , { useCallback, useEffect , useState } from 'react';
-import { Breadcrumb, Button, Form, Icon, Input, Select, Upload } from 'antd';
-import {classify} from '../static';
+import React , { useEffect , useState } from 'react';
import { wikiPages, getWiki } from '../../forge/Wiki/api';
-import Axios from 'axios';
+import bg from '../img/help_bg.png';
import './index.scss';
-import TextArea from 'antd/lib/input/TextArea';
-const Option = Select.Option;
function Help(props) {
const [fileArrInit, setFileArrInit] = useState(null);
const [checkItem, setCheckItem] = useState({});
@@ -51,10 +47,12 @@ function Help(props) {
帮助文档
{fileArrInit && fileArrInit.map(item => {
- // onClick={() => { setCheckItem(item) }} checkItem.name
return { setCheckItem(item) }}>{item.name}})}
-
+
+
+

+
)
diff --git a/src/glcc/help/index.scss b/src/glcc/help/index.scss
index 3acb08889..7e030cbd2 100644
--- a/src/glcc/help/index.scss
+++ b/src/glcc/help/index.scss
@@ -23,4 +23,12 @@
color:#466aff;
}
}
+ .help_cntent{
+ position: relative;
+ .bg{
+ position: absolute;
+ width: 75vw;
+ top: 0;
+ }
+ }
}
\ No newline at end of file
diff --git a/src/glcc/home/partner/index.jsx b/src/glcc/home/partner/index.jsx
index d35b71c72..a814743f8 100644
--- a/src/glcc/home/partner/index.jsx
+++ b/src/glcc/home/partner/index.jsx
@@ -1,6 +1,7 @@
import React from 'react';
import './index.scss';
-
+import ccf from '../../img/ccf_logo.png';
+import gitlink from '../../img/gitlink.png';
function Partner() {
@@ -8,7 +9,24 @@ function Partner() {
)
diff --git a/src/glcc/home/partner/index.scss b/src/glcc/home/partner/index.scss
index a2fd723c5..9246d5472 100644
--- a/src/glcc/home/partner/index.scss
+++ b/src/glcc/home/partner/index.scss
@@ -5,4 +5,30 @@
.glcc-tit{
color: #fff;
}
+ .cont1{
+ display: flex;
+ >div{
+ display: flex;
+ flex-direction: column;
+ color:#ffffff;
+ font-size: 20px;
+ margin-right: 35px;
+ }
+ >div>div{
+ background-image:linear-gradient(135deg,#e5e5f8 0%,#dee3ff 19.24%,#eff1ff 47.28%,#e6e6ff 71.19%,#ececff 100%);
+ border:2px solid #8b96ce;
+ border-radius:2px;
+ box-shadow:0px 1px 6px rgba(89, 150, 203, 0.16);
+ text-align: center;
+ width: 220px;
+ height: 85px;
+ line-height: 85px;
+ }
+ >div>div>img{
+ width: 80px;
+ }
+ >div>div>.gitlink{
+ width: 180px;
+ }
+ }
}
\ No newline at end of file
diff --git a/src/glcc/img/ccf_logo.png b/src/glcc/img/ccf_logo.png
new file mode 100644
index 000000000..1a36d4615
Binary files /dev/null and b/src/glcc/img/ccf_logo.png differ
diff --git a/src/glcc/img/gitlink.png b/src/glcc/img/gitlink.png
new file mode 100644
index 000000000..3ad4fb411
Binary files /dev/null and b/src/glcc/img/gitlink.png differ
diff --git a/src/glcc/img/help_bg.png b/src/glcc/img/help_bg.png
new file mode 100644
index 000000000..f3d1c016a
Binary files /dev/null and b/src/glcc/img/help_bg.png differ