|
@@ -80,7 +80,7 @@ export default defineComponent({
|
|
|
onSelectDay(obj: any) {
|
|
|
const result = obj || []
|
|
|
let list = [...createState.selectCourseList]
|
|
|
- console.log(obj, list)
|
|
|
+ // console.log(obj, list)
|
|
|
result.forEach((item: any) => {
|
|
|
const isExist = list.some(
|
|
|
(course: any) => course.startTime === item.startTime
|
|
@@ -132,7 +132,7 @@ export default defineComponent({
|
|
|
},
|
|
|
async _lookCourse(callBack?: Function) {
|
|
|
try {
|
|
|
- let times = [] as any
|
|
|
+ const times = [] as any
|
|
|
createState.selectCourseList.forEach((item: any) => {
|
|
|
times.push({
|
|
|
startTime: item.startTime,
|
|
@@ -210,11 +210,11 @@ export default defineComponent({
|
|
|
},
|
|
|
async onSure() {
|
|
|
// 判断是否有锁课状态 或 是锁课类型的 并且已经有课的
|
|
|
- console.log(
|
|
|
- this.selectType,
|
|
|
- createState.coursePlanStatus,
|
|
|
- createState.live.coursePlanList
|
|
|
- )
|
|
|
+ // console.log(
|
|
|
+ // this.selectType,
|
|
|
+ // createState.coursePlanStatus,
|
|
|
+ // createState.live.coursePlanList
|
|
|
+ // )
|
|
|
let courseLength = 0
|
|
|
createState.live.coursePlanList.forEach((item: any) => {
|
|
|
item.startTime && courseLength++
|
|
@@ -285,12 +285,10 @@ export default defineComponent({
|
|
|
round
|
|
|
class="!w-44 !h-[48px] !text-base"
|
|
|
onClick={() => {
|
|
|
+ this.onReset()
|
|
|
createState.active = 1
|
|
|
// 重置选择的课次
|
|
|
createState.selectCourseList = []
|
|
|
- // const currentY =
|
|
|
- // document.documentElement.scrollTop || document.body.scrollTop
|
|
|
- // scrollAnimation(currentY, 0)
|
|
|
}}
|
|
|
>
|
|
|
上一步
|