会议页面修改
This commit is contained in:
1 parent
a186a8bc32
commit
838d7ecd43
1 file changed
+4
@@ -213,6 +213,7 @@ async function reserveMeeting() {
|
||||
}
|
||||
|
||||
try {
|
||||
uni.showLoading({ title: '预约中...', mask: true })
|
||||
const date = getDateString(activeDate.value)
|
||||
const startSlot = timeSlots.value[selectedTime.value[0]]
|
||||
const endSlot = timeSlots.value[selectedTime.value[selectedTime.value.length - 1]]
|
||||
@@ -228,17 +229,20 @@ async function reserveMeeting() {
|
||||
|
||||
const response = res as unknown as ApiResponse<any>
|
||||
if (response.code === 0) {
|
||||
uni.hideLoading()
|
||||
uni.showToast({ title: '预约成功', icon: 'success' })
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
title: response.msg || '预约失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
title: '预约失败',
|
||||
icon: 'none'
|
||||
|
||||
Reference in new issue
Block a user