新增教练管理,优化预约人数计数方式
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user