Skip to content

Commit

Permalink
fix: UI更新
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxtuneLee committed Mar 31, 2024
1 parent 21271bf commit 2eac7dc
Show file tree
Hide file tree
Showing 8 changed files with 206 additions and 111 deletions.
Binary file added src/assets/sastlogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions src/pages/home/components/SASTlogo/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.globalfooter {
// background-color: #f8f8f8;
opacity: 0.6;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 1.875rem;
.sastlogo {
width: 6.25rem;
height: 6.25rem;
display: block;
object-fit: contain;
}
.info {
color: rgba(0, 0, 0, 0.5);
}
}
14 changes: 14 additions & 0 deletions src/pages/home/components/SASTlogo/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import sastlogo from '../../../../assets/sastlogo.png'
import './index.scss'

const Footer = () => {
return (
<div className='globalfooter'>
<img className='sastlogo' src={sastlogo} alt='sastlogo'></img>
<div className='info'>通用比赛管理评审系统 version 2.1</div>
<div className='info'>{`1992 - 2024 Students' Association for Science and Technology · `}<a href='https://github.com/NJUPT-SAST' aria-label='sast github'>Github</a></div>
</div>
)
}

export default Footer
2 changes: 2 additions & 0 deletions src/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { login } from '../../api/public'
import { getUserProfile } from '../../api/user'
import LogoSvg from "../../assets/Logo.svg"
import avatar from "../../assets/avatar.jpg"
import Footer from './components/SASTlogo'

const { Header, Content, Sider } = Layout

Expand Down Expand Up @@ -211,6 +212,7 @@ const Home = () => {
}}
>
<Outlet></Outlet>
<Footer />
</Content>
</Layout>}
</Layout>
Expand Down
223 changes: 140 additions & 83 deletions src/pages/register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@ function Register() {
readOnly: true,
props: {},
},
college: {
title: '学院',
type: 'string',
readOnly: true,
props: {},
},
major: {
title: '专业',
type: 'string',
readOnly: true,
props: {},
},
// college: {
// title: '学院',
// type: 'string',
// readOnly: true,
// props: {},
// },
// major: {
// title: '专业',
// type: 'string',
// readOnly: true,
// props: {},
// },
contact: {
title: '联系方式',
type: 'string',
Expand Down Expand Up @@ -218,18 +218,18 @@ function Register() {
readOnly: true,
props: {},
},
college: {
title: '学院',
type: 'string',
readOnly: true,
props: {},
},
major: {
title: '专业',
type: 'string',
readOnly: true,
props: {},
},
// college: {
// title: '学院',
// type: 'string',
// readOnly: true,
// props: {},
// },
// major: {
// title: '专业',
// type: 'string',
// readOnly: true,
// props: {},
// },
contact: {
title: '联系方式',
type: 'string',
Expand Down Expand Up @@ -311,18 +311,18 @@ function Register() {
readOnly: true,
props: {},
},
college: {
title: '学院',
type: 'string',
readOnly: true,
props: {},
},
major: {
title: '专业',
type: 'string',
readOnly: true,
props: {},
},
// college: {
// title: '学院',
// type: 'string',
// readOnly: true,
// props: {},
// },
// major: {
// title: '专业',
// type: 'string',
// readOnly: true,
// props: {},
// },
contact: {
title: '联系方式',
type: 'string',
Expand Down Expand Up @@ -373,41 +373,98 @@ function Register() {
],
props: {},
},
[inputName3]: {
title: '学院',
type: 'string',
widget: 'select',
required: true,
props: {
options: [
{ label: '通信与信息工程学院', value: '通信与信息工程学院' },
{ label: '电子与光学工程学院、柔性电子 (未来技术)学院', value: '电子与光学工程学院、柔性电子 (未来技术)学院' },
{ label: '集成电路科学与工程学院', value: '集成电路科学与工程学院' },
{ label: '计算机学院、软件学院、网络空间安全学院', value: '计算机学院、软件学院、网络空间安全学院' },
{ label: '信息材料与纳米技术研究院、材料科学与工程学院', value: '信息材料与纳米技术研究院、材料科学与工程学院' },
{ label: '自动化学院、人工智能学院', value: '自动化学院、人工智能学院' },
{ label: '材料与工程学院', value: '材料与工程学院' },
{ label: '化学与生命科学学院', value: '化学与生命科学学院' },
{ label: '物联网学院', value: '物联网学院' },
{ label: '现代邮政学院', value: '现代邮政学院' },
{ label: '传媒与艺术学院', value: '传媒与艺术学院' },
{ label: '管理学院', value: '管理学院' },
{ label: '经济学院', value: '经济学院' },
{ label: '马克思主义学院', value: '马克思主义学院' },
{ label: '社会与人口学院', value: '社会与人口学院' },
{ label: '外国语学院', value: '外国语学院' },
{ label: '教育科学与技术学院', value: '教育科学与技术学院' },
{ label: '贝尔英才学院', value: '贝尔英才学院' },
{ label: '海外教育学院', value: '海外教育学院' },
]
},
},
[inputName4]: {
title: '专业',
type: 'string',
required: true,
props: {},
},
// [inputName3]: {
// title: '学院',
// type: 'string',
// widget: 'select',
// required: true,
// props: {
// options: [
// {
// "label": "通信与信息工程学院",
// "value": "通信与信息工程学院"
// },
// {
// "label": "电子与光学工程学院、柔性电子(未来技术)学院",
// "value": "电子与光学工程学院、柔性电子(未来技术)学院"
// },
// {
// "label": "集成电路科学与工程学院(产教融合学院)",
// "value": "集成电路科学与工程学院(产教融合学院)"
// },
// {
// "label": "计算机学院、软件学院、网络空间安全学院",
// "value": "计算机学院、软件学院、网络空间安全学院"
// },
// {
// "label": "自动化学院、人工智能学院",
// "value": "自动化学院、人工智能学院"
// },
// {
// "label": "材料科学与工程学院",
// "value": "材料科学与工程学院"
// },
// {
// "label": "化学与生命科学学院",
// "value": "化学与生命科学学院"
// },
// {
// "label": "物联网学院",
// "value": "物联网学院"
// },
// {
// "label": "理学院",
// "value": "理学院"
// },
// {
// "label": "现代邮政学院",
// "value": "现代邮政学院"
// },
// {
// "label": "传媒与艺术学院",
// "value": "传媒与艺术学院"
// },
// {
// "label": "管理学院",
// "value": "管理学院"
// },
// {
// "label": "经济学院",
// "value": "经济学院"
// },
// {
// "label": "社会与人口学院",
// "value": "社会与人口学院"
// },
// {
// "label": "外国语学院",
// "value": "外国语学院"
// },
// {
// "label": "教育科学与技术学院",
// "value": "教育科学与技术学院"
// },
// {
// "label": "贝尔英才学院",
// "value": "贝尔英才学院"
// },
// {
// "label": "波特兰学院",
// "value": "波特兰学院"
// },
// {
// "label": "应用技术学院",
// "value": "应用技术学院"
// }
// ]
// },
// },
// [inputName4]: {
// title: '专业',
// type: 'string',
// required: true,
// props: {},
// },
[inputName5]: {
title: '联系方式(手机号码)',
type: 'string',
Expand Down Expand Up @@ -570,18 +627,18 @@ function Register() {
readOnly: true,
props: {},
},
college: {
title: '学院',
type: 'string',
readOnly: true,
props: {},
},
major: {
title: '专业',
type: 'string',
readOnly: true,
props: {},
},
// college: {
// title: '学院',
// type: 'string',
// readOnly: true,
// props: {},
// },
// major: {
// title: '专业',
// type: 'string',
// readOnly: true,
// props: {},
// },
contact: {
title: '联系方式',
type: 'string',
Expand Down
28 changes: 14 additions & 14 deletions src/pages/workDetail/schema_tiao_zhan_bei.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,49 @@
"学院": {
"enum": [
"通信与信息工程学院",
"电子与光学工程学院、柔性电子 (未来技术)学院",
"集成电路科学与工程学院",
"电子与光学工程学院、柔性电子(未来技术)学院",
"集成电路科学与工程学院(产教融合学院)",
"计算机学院、软件学院、网络空间安全学院",
"信息材料与纳米技术研究院、材料科学与工程学院",
"自动化学院、人工智能学院",
"材料与工程学院",
"材料科学与工程学院",
"化学与生命科学学院",
"物联网学院",
"理学院",
"现代邮政学院",
"传媒与艺术学院",
"管理学院",
"经济学院",
"马克思主义学院",
"社会与人口学院",
"外国语学院",
"教育科学与技术学院",
"贝尔英才学院",
"海外教育学院"
"波特兰学院",
"应用技术学院"
],
"type": "string",
"title": "学院",
"widget": "select",
"required": true,
"enumNames": [
"通信与信息工程学院",
"电子与光学工程学院、柔性电子 (未来技术)学院",
"集成电路科学与工程学院",
"电子与光学工程学院、柔性电子(未来技术)学院",
"集成电路科学与工程学院(产教融合学院)",
"计算机学院、软件学院、网络空间安全学院",
"信息材料与纳米技术研究院、材料科学与工程学院",
"自动化学院、人工智能学院",
"材料与工程学院",
"材料科学与工程学院",
"化学与生命科学学院",
"物联网学院",
"理学院",
"现代邮政学院",
"传媒与艺术学院",
"管理学院",
"经济学院",
"马克思主义学院",
"社会与人口学院",
"外国语学院",
"教育科学与技术学院",
"贝尔英才学院",
"海外教育学院"
"波特兰学院",
"应用技术学院"
],
"order": 1
},
Expand Down Expand Up @@ -85,10 +85,10 @@
"项目申报书": {
"type": "string",
"widget": "customUpload",
"title": "项目申报书",
"title": "项目申报表",
"description": "允许上传格式:.pdf",
"required": true,
"props": { "inputName": "项目申报书", "accept": ".pdf" },
"props": { "inputName": "项目申报表", "accept": ".pdf" },
"order": 5
},
"创业计划书": {
Expand Down
Loading

0 comments on commit 2eac7dc

Please sign in to comment.