|
|
@ -70,7 +70,7 @@ function booking(liveId, userId) { |
|
|
|
liveApi.addReservation(liveId,userId) |
|
|
|
.then(resp => { |
|
|
|
console.log(resp.code); |
|
|
|
if (resp.code == 0) { |
|
|
|
if (resp.code == 200) { |
|
|
|
getLive(); |
|
|
|
ElMessage.success("预约成功"); |
|
|
|
} else { |
|
|
@ -82,7 +82,7 @@ function booking(liveId, userId) { |
|
|
|
function cancelBooking(liveId, userId) { |
|
|
|
liveApi.cancelReservation(liveId, userId) |
|
|
|
.then(resp => { |
|
|
|
if (resp.code == 0) { |
|
|
|
if (resp.code == 200) { |
|
|
|
ElMessage.success("取消预约成功"); |
|
|
|
} else { |
|
|
|
ElMessage.error("取消预约失败,请联系管理员"); |
|
|
|