Commit 89c5182a authored by wuhao's avatar wuhao 🎯

asdr

parent b3bd4ed3
Pipeline #6695 passed with stages
in 7 minutes and 23 seconds
......@@ -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);
}}
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment