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
78dfaa70
Commit
78dfaa70
authored
2 years ago
by
wuhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
3ba939c2
master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
index.jsx
src/components/ProductCard/index.jsx
+6
-4
No files found.
src/components/ProductCard/index.jsx
View file @
78dfaa70
...
...
@@ -47,17 +47,19 @@ export default function ShopProductCard({
publish
,
authorized
,
})
{
const
{
courseName
,
picUrl
,
createTime
,
status
Name
,
type
}
=
product
;
const
{
courseName
,
picUrl
,
createTime
,
type
Name
,
type
}
=
product
;
const
[
confirm
,
setconfirm
]
=
useState
(
false
);
const
[
shut
,
setshut
]
=
useState
(
false
);
return
(
<
Card
sx=
{
{
borderRadius
:
3
}
}
className=
"hovered"
id=
"jikl"
>
<
Box
sx=
{
{
pt
:
"66%"
,
position
:
"relative"
}
}
className=
"center"
>
{
status
Name
&&
(
{
type
Name
&&
(
<
Label
variant=
"filled"
color=
{
(
statusName
===
"sale"
&&
"error"
)
||
"info"
}
color=
{
(
type
===
1
&&
"warning"
)
||
(
type
===
3
&&
"default"
)
||
"info"
}
sx=
{
{
zIndex
:
9
,
top
:
20
,
...
...
@@ -66,7 +68,7 @@ export default function ShopProductCard({
textTransform
:
"uppercase"
,
}
}
>
{
status
Name
}
{
type
Name
}
</
Label
>
)
}
<
StyledProductImg
...
...
This diff is collapsed.
Click to expand it.
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