Browse Source

预约到指定校区

zhangshuling 3 years ago
parent
commit
08948f03cf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pages/makePiano/makePiano.js

+ 2 - 1
pages/makePiano/makePiano.js

@@ -291,7 +291,8 @@ Page({
     let id = e.currentTarget.dataset.id;
     const urls = urlDef.urls;
     let w = this.data.weekList[this.data.curIndex];
-    util.apiPost(urls.do_appointment + '?q.studentId=' + this.data.curStu.studentId + '&q.planId=' + id + '&q.orgId=' + this.data.curStu.orgId + '&q.visitDate=' + w.ds).then(rs => {
+    let sid = this.data.schoolList[this.data.schoolIndex].id
+    util.apiPost(urls.do_appointment + '?q.studentId=' + this.data.curStu.studentId + '&q.planId=' + id + '&q.orgId=' +  sid + '&q.visitDate=' + w.ds).then(rs => {
       if (rs.success > 0) {
         wx.showToast({
           title: '预约成功'