Browse Source

课程订单,预约日期问题

zhangshuling 3 years ago
parent
commit
7c750f3006
2 changed files with 4 additions and 7 deletions
  1. 1 4
      pages/makePiano/makePiano.js
  2. 3 3
      pages/orderClassDetail/orderClassDetail.js

+ 1 - 4
pages/makePiano/makePiano.js

@@ -274,10 +274,7 @@ Page({
     let w = this.data.weekList[this.data.curIndex];
 
     let date = w.ds
-    let week = w.ws
-    if(week == 0){
-      week = 7
-    }
+    let week = w.ws + 1;
 
     let params = { 'q.orgId': sid, 'q.studentId': this.data.curStu.studentId, 'q.date': date, 'q.week': week, 'q.timeScope': this.data.timeScope }
     // params['q.timeScope'] = ''; 时段

+ 3 - 3
pages/orderClassDetail/orderClassDetail.js

@@ -46,9 +46,9 @@ Page({
     }
     util.apiPost(urls.get_order, params).then(rs => {
       if (rs != null) {
-        // rs[0].payDate = this.renderTime(rs[0].payDate)
-        // this.setData({ items: rs, order: rs[0] })
-        // this.queryContract()
+        rs[0].payDate = this.renderTime(rs[0].payDate)
+        this.setData({ items: rs, order: rs[0] })
+        this.queryContract()
       }
     })
   },