Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
ReactWeb5
CivWeb
Commits
d4d790c2
Commit
d4d790c2
authored
Jun 28, 2022
by
崔佳豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 新产品引导页优化
parent
916ea520
Pipeline
#54046
passed with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
title.png
src/pages/cloud/introduction/newproducts/images/title.png
+0
-0
index.js
src/pages/cloud/introduction/newproducts/index.js
+1
-2
index.less
src/pages/cloud/introduction/newproducts/index.less
+12
-0
No files found.
src/pages/cloud/introduction/newproducts/images/title.png
View file @
d4d790c2
This diff was suppressed by a .gitattributes entry.
src/pages/cloud/introduction/newproducts/index.js
View file @
d4d790c2
...
...
@@ -43,7 +43,6 @@ const NewProducts = props => {
setLoading
(
false
);
const
configData
=
JSON
.
parse
(
res
.
data
.
jsonData
||
'[]'
);
const
configMap
=
configData
.
reduce
((
pre
,
item
,
index
)
=>
{
item
[
'排序'
]
=
index
if
(
item
.
site
&&
item
[
'是否显示'
]
===
'是'
)
{
pre
[
item
.
site
]
=
item
;
}
...
...
@@ -53,7 +52,7 @@ const NewProducts = props => {
const
data
=
Groups
.
filter
(
item
=>
item
.
industry
===
'熊猫新产品'
&&
configMap
[
item
.
site
])
.
map
(
item
=>
({
...
item
,
config
:
configMap
[
item
.
site
]
}));
data
.
sort
((
a
,
b
)
=>
a
.
config
[
'排序'
]
-
b
.
config
[
'排序'
]
);
data
.
sort
((
a
,
b
)
=>
Number
(
a
.
config
[
'排序'
])
-
Number
(
b
.
config
[
'排序'
])
);
setProducts
(
chunk
(
data
,
pageSize
));
}).
catch
(
err
=>
{
setLoading
(
false
);
...
...
src/pages/cloud/introduction/newproducts/index.less
View file @
d4d790c2
@import '~antd/es/style/themes/default.less';
@wh-scale: 1080/1920;
.nowrap-text {
white-space: nowrap;
...
...
@@ -131,6 +132,17 @@
font-size: 1em;
font-weight: bold;
line-height: 1.8;
position: relative;
&::after {
content: '';
width: 1.2em;
height: 3px;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 0;
background: @primary-color;
}
}
.card-desc {
font-size: 0.7em;
...
...
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