|
@@ -289,6 +289,21 @@ Page({
|
|
mask: true
|
|
mask: true
|
|
})
|
|
})
|
|
let id = e.currentTarget.dataset.id;
|
|
let id = e.currentTarget.dataset.id;
|
|
|
|
+ const index = e.currentTarget.dataset.index
|
|
|
|
+
|
|
|
|
+ if(this.data.schoolList[index].hasVisitNum + 1 >= this.data.schoolList[index].maxNum){
|
|
|
|
+ wx.hideLoading({
|
|
|
|
+ success: (res) => {
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: '预约上限已满',
|
|
|
|
+ icon: 'none'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
const urls = urlDef.urls;
|
|
const urls = urlDef.urls;
|
|
let w = this.data.weekList[this.data.curIndex];
|
|
let w = this.data.weekList[this.data.curIndex];
|
|
let sid = this.data.schoolList[this.data.schoolIndex].id
|
|
let sid = this.data.schoolList[this.data.schoolIndex].id
|