Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cs_vsofpm
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
cs_vsofpm
Commits
afae7f5c
Commit
afae7f5c
authored
Jun 05, 2023
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
5b2b8918
Pipeline
#3582
passed with stages
in 2 minutes and 47 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
319 additions
and
306 deletions
+319
-306
sxcard.jsx
src/components/ProductCard/sxcard.jsx
+319
-306
No files found.
src/components/ProductCard/sxcard.jsx
View file @
afae7f5c
...
@@ -23,7 +23,7 @@ import EditIcon from "@mui/icons-material/Edit";
...
@@ -23,7 +23,7 @@ import EditIcon from "@mui/icons-material/Edit";
import
GroupIcon
from
"@mui/icons-material/Group"
;
import
GroupIcon
from
"@mui/icons-material/Group"
;
import
PauseIcon
from
"@mui/icons-material/Pause"
;
import
PauseIcon
from
"@mui/icons-material/Pause"
;
import
{
history
,
useModel
}
from
"@umijs/max"
;
import
{
history
,
useModel
}
from
"@umijs/max"
;
import
{
Badge
,
Progress
}
from
"antd"
;
import
{
Progress
}
from
"antd"
;
import
dayjs
from
"dayjs"
;
import
dayjs
from
"dayjs"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
useEffect
,
useState
}
from
"react"
;
...
@@ -88,9 +88,28 @@ export default function ShopProductCard({
...
@@ -88,9 +88,28 @@ export default function ShopProductCard({
}));
}));
},
[
TEACH_TRAIN_MANAGE_LIST
]);
},
[
TEACH_TRAIN_MANAGE_LIST
]);
let
num
=
Numcount
?.[
id
]
??
unReadMsgCount
;
return
(
return
(
<
Badge
count=
{
Numcount
?.[
id
]
??
unReadMsgCount
}
offset=
{
[
-
10
,
10
]
}
>
<
Card
sx=
{
{
borderRadius
:
3
}
}
className=
"hovered"
id=
"jikl"
>
<
Card
sx=
{
{
borderRadius
:
3
}
}
className=
"hovered"
id=
"jikl"
>
<
div
style=
{
{
width
:
24
,
height
:
24
,
backgroundColor
:
"#ff4800"
,
position
:
"absolute"
,
right
:
6
,
top
:
6
,
zIndex
:
999
,
borderRadius
:
30
,
color
:
"#fff"
,
fontSize
:
12
,
display
:
!
num
?
"none"
:
"flex"
,
}
}
className=
"center"
>
{
num
>
100
?
"99+"
:
num
}
</
div
>
<
Box
sx=
{
{
pt
:
"66%"
,
position
:
"relative"
}
}
className=
"center"
>
<
Box
sx=
{
{
pt
:
"66%"
,
position
:
"relative"
}
}
className=
"center"
>
{
typeName
&&
(
{
typeName
&&
(
<
Label
<
Label
...
@@ -118,7 +137,6 @@ export default function ShopProductCard({
...
@@ -118,7 +137,6 @@ export default function ShopProductCard({
src=
{
picUrl
??
DEFAULT_404_IMG
}
src=
{
picUrl
??
DEFAULT_404_IMG
}
sx=
{
{
borderRadius
:
2
}
}
sx=
{
{
borderRadius
:
2
}
}
/>
/>
<
Box
<
Box
className=
"actionhover"
className=
"actionhover"
sx=
{
{
borderRadius
:
2
,
overflow
:
"hidden"
}
}
sx=
{
{
borderRadius
:
2
,
overflow
:
"hidden"
}
}
...
@@ -224,7 +242,6 @@ export default function ShopProductCard({
...
@@ -224,7 +242,6 @@ export default function ShopProductCard({
</
Stack
>
</
Stack
>
</
Box
>
</
Box
>
</
Box
>
</
Box
>
<
Stack
spacing=
{
1
}
sx=
{
{
p
:
2
}
}
>
<
Stack
spacing=
{
1
}
sx=
{
{
p
:
2
}
}
>
<
Stack
<
Stack
direction=
{
"row"
}
direction=
{
"row"
}
...
@@ -362,10 +379,7 @@ export default function ShopProductCard({
...
@@ -362,10 +379,7 @@ export default function ShopProductCard({
</
Stack
>
</
Stack
>
<
Stack
direction=
{
"row"
}
spacing=
{
0
}
>
<
Stack
direction=
{
"row"
}
spacing=
{
0
}
>
<
Tooltip
<
Tooltip
placement=
"bottom-start"
title=
{
ifs
?
"发布"
:
"暂停发布"
}
>
placement=
"bottom-start"
title=
{
ifs
?
"发布"
:
"暂停发布"
}
>
<
IconButton
<
IconButton
style=
{
{
style=
{
{
opacity
:
type
!==
5
&&
type
!==
4
?
1
:
0
,
opacity
:
type
!==
5
&&
type
!==
4
?
1
:
0
,
...
@@ -439,6 +453,5 @@ export default function ShopProductCard({
...
@@ -439,6 +453,5 @@ export default function ShopProductCard({
</
Stack
>
</
Stack
>
</
Stack
>
</
Stack
>
</
Card
>
</
Card
>
</
Badge
>
);
);
}
}
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