Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
ngic-company
Project
Project
Details
Activity
Releases
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
wuhao
ngic-company
Commits
2b53adef
Commit
2b53adef
authored
Dec 12, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
edbc8fbb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
46 deletions
+73
-46
.umirc.ts
.umirc.ts
+1
-1
global.less
src/global.less
+6
-1
casedetail.jsx
src/pages/case/casedetail.jsx
+26
-15
index.jsx
src/pages/case/index.jsx
+18
-14
index.jsx
src/pages/index.jsx
+22
-15
No files found.
.umirc.ts
View file @
2b53adef
...
...
@@ -68,7 +68,7 @@ export default defineConfig({
},
proxy
:
{
'/website/'
:
{
target
:
'http://192.168.40.
117:12345
'
,
target
:
'http://192.168.40.
23:9001
'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^'
:
''
},
},
...
...
src/global.less
View file @
2b53adef
...
...
@@ -313,7 +313,6 @@ body,
.ant-card-bordered {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden;
}
...
...
@@ -1074,3 +1073,9 @@ body,
.loader span:nth-child(4) {
filter: blur(50px);
}
.ant-tag {
max-width: 88px;
overflow: hidden;
text-overflow: ellipsis;
}
src/pages/case/casedetail.jsx
View file @
2b53adef
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
styles
from
'./index.less'
;
import
{
Row
,
Col
,
Image
,
Pagination
,
Card
,
Tag
}
from
'antd'
;
import
{
Row
,
Col
,
Divider
,
Tooltip
,
Card
,
Tag
}
from
'antd'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
EyeFilled
}
from
'@ant-design/icons'
;
...
...
@@ -72,23 +72,34 @@ function Insert({ location: { query } }) {
style=
{
{
fontSize
:
'0.7rem'
}
}
className=
"html"
></
div
>
<
p
style=
{
{
margin
:
0
,
fontSize
:
'0.7rem'
,
color
:
'#999999'
}
}
>
<
Divider
></
Divider
>
<
p
style=
{
{
margin
:
0
,
fontSize
:
'0.7rem'
,
color
:
'#999999'
,
display
:
'flex'
,
marginTop
:
22
,
}
}
>
相关产品:
{
data
?.
ngCaseProductList
?.
map
((
it
,
i
)
=>
{
return
(
<
Tag
style=
{
{
margin
:
'2px'
,
padding
:
'4px 8px'
,
fontSize
:
'0.7rem'
,
}
}
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
it
?.
linkUrl
&&
window
.
open
(
it
?.
linkUrl
);
}
}
>
{
it
?.
productName
}
</
Tag
>
<
Tooltip
title=
{
it
?.
productName
}
>
<
Tag
style=
{
{
margin
:
'2px'
,
padding
:
'4px 8px'
,
fontSize
:
'0.7rem'
,
}
}
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
it
?.
linkUrl
&&
window
.
open
(
it
?.
linkUrl
);
}
}
>
{
it
?.
productName
}
</
Tag
>
</
Tooltip
>
);
})
}
</
p
>
...
...
src/pages/case/index.jsx
View file @
2b53adef
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
styles
from
'./index.less'
;
import
{
Row
,
Col
,
Tag
,
Pagination
,
Card
}
from
'antd'
;
import
{
Row
,
Col
,
Tag
,
Pagination
,
Card
,
Tooltip
,
Divider
}
from
'antd'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
EyeFilled
}
from
'@ant-design/icons'
;
...
...
@@ -101,29 +101,33 @@ function Case() {
<
p
style=
{
{
fontSize
:
'0.6rem'
,
marginTop
:
'1rem'
}
}
>
{
it
?.
caseDescribe
}
</
p
>
<
Divider
></
Divider
>
<
p
style=
{
{
margin
:
0
,
fontSize
:
'0.7rem'
,
color
:
'#999999'
,
display
:
'flex'
,
}
}
>
相关产品:
{
it
?.
ngCaseProductList
?.
map
((
it
,
i
)
=>
{
return
(
<
Tag
style=
{
{
margin
:
'2px'
,
padding
:
'4px 8px'
,
fontSize
:
'0.7rem'
,
}
}
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
it
?.
linkUrl
&&
window
.
open
(
it
?.
linkUrl
);
}
}
>
{
it
?.
productName
}
</
Tag
>
<
Tooltip
title=
{
it
?.
productName
}
>
<
Tag
style=
{
{
margin
:
'2px'
,
padding
:
'4px 8px'
,
fontSize
:
'0.7rem'
,
}
}
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
it
?.
linkUrl
&&
window
.
open
(
it
?.
linkUrl
);
}
}
>
{
it
?.
productName
}
</
Tag
>
</
Tooltip
>
);
})
}
</
p
>
...
...
src/pages/index.jsx
View file @
2b53adef
...
...
@@ -716,28 +716,35 @@ function IndexPage({ route }) {
</
span
>
</
div
>
<
p
style=
{
{
fontSize
:
'0.6rem'
,
marginTop
:
12
}
}
>
<
p
style=
{
{
fontSize
:
'0.6
5
rem'
,
marginTop
:
12
}
}
>
{
it
?.
caseDescribe
}
</
p
>
<
p
style=
{
{
margin
:
0
,
fontSize
:
'0.7rem'
,
color
:
'#999999'
}
}
style=
{
{
margin
:
0
,
fontSize
:
'0.7rem'
,
color
:
'#999999'
,
display
:
'flex'
,
}
}
>
相关产品:
{
it
?.
ngCaseProductList
?.
map
((
it
,
i
)
=>
{
return
(
<
Tag
style=
{
{
margin
:
'2px'
,
padding
:
'4px 8px'
,
fontSize
:
'0.7rem'
,
}
}
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
it
?.
linkUrl
&&
window
.
open
(
it
?.
linkUrl
);
}
}
>
{
it
?.
productName
}
</
Tag
>
<
Tooltip
title=
{
it
?.
productName
}
>
<
Tag
style=
{
{
margin
:
'2px'
,
padding
:
'4px 8px'
,
fontSize
:
'0.7rem'
,
}
}
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
it
?.
linkUrl
&&
window
.
open
(
it
?.
linkUrl
);
}
}
>
{
it
?.
productName
}
</
Tag
>
</
Tooltip
>
);
})
}
</
p
>
...
...
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