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
89c5182a
Commit
89c5182a
authored
Dec 25, 2023
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asdr
parent
b3bd4ed3
Pipeline
#6695
passed with stages
in 7 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
stucard.jsx
src/components/ProductCard/stucard.jsx
+8
-0
No files found.
src/components/ProductCard/stucard.jsx
View file @
89c5182a
...
...
@@ -17,6 +17,7 @@ import Label from "@/components/label";
import
difftime
from
"@/utils/difftime"
;
import
AccessTimeFilledIcon
from
"@mui/icons-material/AccessTimeFilled"
;
import
{
history
,
useModel
}
from
"@umijs/max"
;
import
{
message
}
from
"antd"
;
import
dayjs
from
"dayjs"
;
import
{
useEffect
,
useState
}
from
"react"
;
...
...
@@ -222,6 +223,13 @@ export default function ShopProductCard({ product }) {
<
Tooltip
placement=
"bottom-start"
title=
{
"开始学习"
}
>
<
IconButton
onClick=
{
()
=>
{
if
(
product
.
type
===
3
)
{
message
.
warning
(
"该课程已暂停,不能再开始学习"
);
return
;
}
else
if
(
product
.
type
===
4
)
{
message
.
warning
(
"该课程已结束,不能再开始学习"
);
return
;
}
history
.
push
(
"/work/domybustrain/"
+
product
.
id
);
}
}
>
...
...
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