|
@@ -274,8 +274,8 @@ export default {
|
|
|
if (!Number.isInteger(this.number) || this.number < 1) {
|
|
|
Toast.fail('请正确填写人数')
|
|
|
}
|
|
|
- if (this.number > 100) {
|
|
|
- Toast.fail('人数不可大于100')
|
|
|
+ if (this.number > this.timeList[this.timeIdx].remain) {
|
|
|
+ Toast.fail('预约人数大于剩余名额')
|
|
|
}
|
|
|
return true
|
|
|
}
|