新增教练管理,优化预约人数计数方式

This commit is contained in:
2026-07-19 19:02:10 +08:00
parent 97a5eff678
commit df0e68469b
26 changed files with 1537 additions and 264 deletions
@@ -294,10 +294,16 @@
goBack() { uni.navigateBack() },
async handleBooking() {
if (!this.course.canBook || this.submitting) return
if (!store.isLoggedIn) {
uni.showToast({ title: '请先登录', icon: 'none' })
setTimeout(() => { uni.reLaunch({ url: '/pages/login/login' }) }, 1000)
return
}
const memberInfo = store.getMemberInfo()
const memberId = memberInfo ? (memberInfo.memberId || memberInfo.id) : null
if (!memberId) {
uni.showToast({ title: '请先登录', icon: 'none' })
setTimeout(() => { uni.reLaunch({ url: '/pages/login/login' }) }, 1000)
return
}
this.submitting = true