Files
gym-manage/gym-manage-uniapp/common/memberInfo/index.js
T
2026-06-04 14:18:53 +08:00

80 lines
2.0 KiB
JavaScript

export { memberCenterMock, userInfoMock, fitnessGoalOptions, bookingMock, memberCardMock, bodyTestMock, moduleMock, courseCatalogMock } from './mockData.js'
export { statusBarTimeMixin, subPageMixin } from './mixins.js'
export {
loadMemberStore,
saveMemberStore,
persistMemberStore,
syncStats,
computeRemainingDays,
buildCardTip,
formatUpcomingAlert,
getBookingPreview,
getCenterPageData,
cancelOngoingBooking,
renewMemberCard,
parseLocalDate,
saveUserProfile
} from './store.js'
export {
getLatestBodyTestRecord,
getBodyTestRecordById,
getBodyTestHistory,
computeChanges,
formatChangeValue,
buildBodyReportSummary,
getBodyTestTrendData,
getCompareData,
getRecommendedCourses,
getBodyTestChangeBadge,
getBodyTestYears,
updateBodyTestSettings,
connectBodyTestDevice,
disconnectBodyTestDevice,
saveSimulatedBodyTestRecord,
interpolateMeasuringMetrics,
bodyTestMock
} from './bodyTestStore.js'
export {
getTrainingReportData,
getTrainingSessionById,
filterTrainingSessions,
getCouponsByStatus,
getCouponById,
useCoupon,
deleteExpiredCoupon,
getCouponCenterList,
claimCouponFromCenter,
getPointsPageData,
redeemPointsReward,
filterPointsHistory,
getReferralPageData,
getMyCoursesData,
getMyCoursesByTab,
getOnlineCourseById,
updateOnlineProgress,
getCheckInHistory,
moduleMock
} from './moduleStore.js'
export {
filterCourses,
getCourseById,
bookCourse,
canCancelBooking,
enrichCourseForDisplay,
getWeekDates,
courseCatalogMock
} from './bookingStore.js'
export { previewImage, persistChosenImage, isLocalFilePath } from './media.js'
export { maskPhone, formatMemberCenterPhone, normalizePhoneForStore } from './format.js'
export {
validateName,
validatePhone,
validatePhoneForRebind,
validateHeight,
validateWeight,
validateBirthday,
validateFitnessGoals,
validateUserProfile,
showValidationError
} from './validate.js'