修正多处问题
This commit is contained in:
@@ -33,6 +33,8 @@ export function useGroupCourseList() {
|
||||
])
|
||||
const timePeriodIndex = ref(0)
|
||||
|
||||
const isRecurring = ref(false) // 常态化团课筛选
|
||||
|
||||
const showTimePicker = ref(false)
|
||||
const startDate = ref('')
|
||||
const endDate = ref('')
|
||||
@@ -138,9 +140,8 @@ export function useGroupCourseList() {
|
||||
|
||||
const handleBooking = (course) => {
|
||||
console.log('[useGroupCourseList] 预约课程:', course)
|
||||
uni.showToast({
|
||||
title: `预约课程:${course.courseName}`,
|
||||
icon: 'success'
|
||||
uni.navigateTo({
|
||||
url: `/pages/groupCourse/detail?id=${course.id}`
|
||||
})
|
||||
}
|
||||
|
||||
@@ -180,6 +181,10 @@ export function useGroupCourseList() {
|
||||
params.timePeriod = timePeriod.value
|
||||
}
|
||||
|
||||
if (isRecurring.value) {
|
||||
params.isRecurring = true
|
||||
}
|
||||
|
||||
if (sortOption.priceSort) {
|
||||
params.priceSort = sortOption.priceSort
|
||||
}
|
||||
@@ -291,6 +296,7 @@ export function useGroupCourseList() {
|
||||
sortIndex,
|
||||
timePeriodOptions,
|
||||
timePeriodIndex,
|
||||
isRecurring,
|
||||
showTimePicker,
|
||||
startDate,
|
||||
endDate,
|
||||
|
||||
Reference in New Issue
Block a user