|
@@ -1,13 +1,13 @@
|
|
|
import { getCourseScheduleDetail_gyt } from "@/api/curriculum.api"
|
|
|
import { getRecentCourseSchedule_gym } from "@/api/homePage.api"
|
|
|
-import { httpAjaxErrMsg } from "@/plugin/httpAjax"
|
|
|
+import { httpAjaxLoadingErrMsg } from "@/plugin/httpAjax"
|
|
|
import useDialogConfirm from "@/hooks/useDialogConfirm"
|
|
|
import { format } from "@/libs/tools"
|
|
|
import router from "@/router"
|
|
|
|
|
|
/* 管乐迷 开始上课 */
|
|
|
export function handleStartClass_gym(id: string) {
|
|
|
- httpAjaxErrMsg(getRecentCourseSchedule_gym, id).then(res => {
|
|
|
+ httpAjaxLoadingErrMsg(getRecentCourseSchedule_gym, id).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
const { signInStatusEnum, isCallNames, coursewareDetailId, startClassTime, endClassTime, status } = res.data
|
|
|
if (status === "OVER") {
|
|
@@ -60,9 +60,9 @@ export function isONLINE_gym(teachMode: string) {
|
|
|
}
|
|
|
/* 管乐团 开始上课 */
|
|
|
export function handleStartClass_gyt(id: string) {
|
|
|
- httpAjaxErrMsg(getCourseScheduleDetail_gyt, id).then(res => {
|
|
|
+ httpAjaxLoadingErrMsg(getCourseScheduleDetail_gyt, id).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- const { signIn, rollCall, lessonCoursewareDetailId, startTime, endTime, status } = res.data
|
|
|
+ const { signIn, rollCall, lessonCoursewareDetailId, startTime, endTime, status, needSignIn } = res.data
|
|
|
if (status === "COMPLETE") {
|
|
|
useDialogConfirm({
|
|
|
headImg: require("@/img/curriculum/ts4.png"),
|
|
@@ -71,7 +71,7 @@ export function handleStartClass_gyt(id: string) {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!signIn) {
|
|
|
+ if (!signIn && needSignIn) {
|
|
|
useDialogConfirm({
|
|
|
headImg: require("@/img/curriculum/ts2.png"),
|
|
|
text: `您当前${format(startTime, "hh:ii")}-${format(endTime, "hh:ii")}的课程暂未签到,为避免考勤异常,请到APP进行签到。`,
|