Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
前端-吴智勇
jinfa-platform
Commits
26920268
Commit
26920268
authored
Dec 04, 2020
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 首页适配修改
parent
5463ef6a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
15 deletions
+21
-15
index.tsx
src/pages/home/components/AdvertisementSpace/index.tsx
+9
-7
index.less
src/pages/home/index.less
+4
-1
index.tsx
src/pages/home/index.tsx
+8
-7
No files found.
src/pages/home/components/AdvertisementSpace/index.tsx
View file @
26920268
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
styles
from
'./index.less'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
}
from
'antd'
;
interface
Iprops
{
// title: string,
...
...
@@ -28,19 +29,20 @@ const AdvertisementContainer = () => {
},
[])
return
(
<
div
>
<
Row
gutter=
{
[
24
,
0
]
}
>
{
data
.
map
((
item
,
key
)
=>
{
return
(
<
AdvertisementSpace
urlLink=
{
item
.
link
}
imageUrl=
{
item
.
imageUrl
}
key=
{
key
}
/>
<
Col
xxl=
{
24
}
xl=
{
8
}
lg=
{
8
}
md=
{
12
}
sm=
{
24
}
xs=
{
12
}
key=
{
key
}
>
<
AdvertisementSpace
urlLink=
{
item
.
link
}
imageUrl=
{
item
.
imageUrl
}
/>
</
Col
>
)
})
}
</
div
>
</
Row
>
)
}
...
...
src/pages/home/index.less
View file @
26920268
...
...
@@ -73,7 +73,7 @@
grid-column-start: 1;
grid-column-end: 19;
grid-row-start: 1;
margin-top: -4
25
px;
margin-top: -4
30
px;
}
.anyQuestion {
grid-column-start: 19;
...
...
@@ -98,3 +98,6 @@
}
}
@media (min-width: 1200px) and (max-width: 1599px) {
}
src/pages/home/index.tsx
View file @
26920268
...
...
@@ -78,10 +78,10 @@ const Home: React.FC<{}> = () => {
<
UserCenter
/>
</
div
>
<
div
className=
{
styles
.
announce
}
>
<
LatestAnnounce
/
>
</
div
>
<
div
className=
{
styles
.
recentVisit
}
>
<
RecentVisit
/
>
<
Row
gutter=
{
[
24
,
12
]
}
>
<
Col
xxl=
{
24
}
xl=
{
12
}
lg=
{
12
}
md=
{
24
}
sm=
{
24
}
><
LatestAnnounce
/></
Col
>
<
Col
xxl=
{
24
}
xl=
{
12
}
lg=
{
12
}
md=
{
24
}
sm=
{
24
}
><
RecentVisit
/></
Col
>
<
/
Row
>
</
div
>
</
div
>
<
div
className=
{
styles
.
bottom
}
>
...
...
@@ -106,10 +106,11 @@ const Home: React.FC<{}> = () => {
</
div
>
<
div
className=
{
styles
.
anyQuestion
}
>
<
AnyQuestion
/>
<
div
className=
{
styles
.
advertise
}
>
<
AdvertisementContainer
/>
</
div
>
</
div
>
<
div
className=
{
styles
.
advertise
}
>
<
AdvertisementContainer
/>
</
div
>
</
div
>
</
div
>
...
...
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