Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp_estate_client
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mp_estate_backstage
mp_estate_client
Commits
ee5beccc
Commit
ee5beccc
authored
Sep 03, 2020
by
成旭东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
999d7b9e
Pipeline
#27885
failed with stage
in 1 minute 5 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
66 deletions
+38
-66
UserLayout.tsx
src/layouts/UserLayout.tsx
+30
-7
Welcome.less
src/pages/Welcome.less
+6
-7
Welcome.tsx
src/pages/Welcome.tsx
+2
-52
No files found.
src/layouts/UserLayout.tsx
View file @
ee5beccc
import
{
DefaultFooter
,
MenuDataItem
,
getMenuData
,
getPageTitle
}
from
'@ant-design/pro-layout'
;
import
{
Helmet
,
HelmetProvider
}
from
'react-helmet-async'
;
import
{
Link
,
useIntl
,
ConnectProps
,
connect
}
from
'umi'
;
import
{
GithubOutlined
}
from
'@ant-design/icons'
;
import
React
from
'react'
;
import
SelectLang
from
'@/components/SelectLang'
;
//
import SelectLang from '@/components/SelectLang';
import
{
ConnectState
}
from
'@/models/connect'
;
import
logo
from
'../assets/logo.svg'
;
import
styles
from
'./UserLayout.less'
;
...
...
@@ -42,22 +43,44 @@ const UserLayout: React.FC<UserLayoutProps> = (props) => {
</
Helmet
>
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
styles
.
lang
}
>
{
/*
<div className={styles.lang}>
<SelectLang />
</
div
>
<
div
className=
{
styles
.
content
}
>
</div>
*/
}
<
div
className=
{
styles
.
content
}
style=
{
{
marginTop
:
30
}
}
>
<
div
className=
{
styles
.
top
}
>
<
div
className=
{
styles
.
header
}
>
<
Link
to=
"/"
>
<
img
alt=
"logo"
className=
{
styles
.
logo
}
src=
{
logo
}
/>
<
span
className=
{
styles
.
title
}
>
Ant Design
</
span
>
<
span
className=
{
styles
.
title
}
>
成都房联后台
</
span
>
</
Link
>
</
div
>
<
div
className=
{
styles
.
desc
}
>
Ant Design 是西湖区最具影响力的 Web 设计规范
</
div
>
<
div
className=
{
styles
.
desc
}
>
成都房联小程序后台
</
div
>
</
div
>
{
children
}
</
div
>
<
DefaultFooter
/>
<
DefaultFooter
copyright=
{
`${new Date().getFullYear()} 杭州煎饼网络科技有限公司`
}
links=
{
[
{
key
:
'Ant Design Pro'
,
title
:
'Ant Design Pro'
,
href
:
'https://pro.ant.design'
,
blankTarget
:
true
,
},
{
key
:
'github'
,
title
:
<
GithubOutlined
/>,
href
:
'https://github.com/ant-design/ant-design-pro'
,
blankTarget
:
true
,
},
{
key
:
'Ant Design'
,
title
:
'Ant Design'
,
href
:
'https://ant.design'
,
blankTarget
:
true
,
},
]
}
/>
</
div
>
</
HelmetProvider
>
);
...
...
src/pages/Welcome.less
View file @
ee5beccc
@import '~antd/lib/style/themes/default.less';
.pre {
margin: 12px 0;
padding: 12px 20px;
background: @input-bg;
box-shadow: @card-shadow;
.title {
margin: 100px auto;
text-align: center;
font-size: 30px;
font-weight: bold;
color: #C29F6C;
}
src/pages/Welcome.tsx
View file @
ee5beccc
import
React
from
'react'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
Card
,
Typography
,
Alert
}
from
'antd'
;
import
{
Card
}
from
'antd'
;
import
styles
from
'./Welcome.less'
;
const
CodePreview
:
React
.
FC
<
{}
>
=
({
children
})
=>
(
<
pre
className=
{
styles
.
pre
}
>
<
code
>
<
Typography
.
Text
copyable
>
{
children
}
</
Typography
.
Text
>
</
code
>
</
pre
>
);
export
default
():
React
.
ReactNode
=>
(
<
PageHeaderWrapper
>
<
Card
>
<
Alert
message=
"umi ui 现已发布,点击右下角 umi 图标即可使用"
type=
"success"
showIcon
banner
style=
{
{
margin
:
-
12
,
marginBottom
:
24
,
}
}
/>
<
Typography
.
Text
strong
>
<
a
target=
"_blank"
rel=
"noopener noreferrer"
href=
"https://pro.ant.design/docs/block"
>
基于 block 开发,快速构建标准页面
</
a
>
</
Typography
.
Text
>
<
CodePreview
>
npm run ui
</
CodePreview
>
<
Typography
.
Text
strong
style=
{
{
marginBottom
:
12
,
}
}
>
<
a
target=
"_blank"
rel=
"noopener noreferrer"
href=
"https://pro.ant.design/docs/available-script#npm-run-fetchblocks"
>
获取全部区块
</
a
>
</
Typography
.
Text
>
<
CodePreview
>
npm run fetch:blocks
</
CodePreview
>
<
p
className=
{
styles
.
title
}
>
成都房联小程序后台
</
p
>
</
Card
>
<
p
style=
{
{
textAlign
:
'center'
,
marginTop
:
24
,
}
}
>
Want to add more pages? Please refer to
{
' '
}
<
a
href=
"https://pro.ant.design/docs/block-cn"
target=
"_blank"
rel=
"noopener noreferrer"
>
use block
</
a
>
。
</
p
>
</
PageHeaderWrapper
>
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment