Commit 862b6a9be4aa7196281ccfa9ac6a9cdf02d5b4a8
1 parent
9bcb5dbe
Merge remote-tracking branch 'remotes/origin/timespace'
# Conflicts: # pages/book/b_addnew.js # project.config.json
Showing
1 changed file
with
8 additions
and
2 deletions
| @@ -47,12 +47,18 @@ Page({ | @@ -47,12 +47,18 @@ Page({ | ||
| 47 | { month: 'current', day: new Date().getDate(), color: 'white', background: '#AAD4F5' }, | 47 | { month: 'current', day: new Date().getDate(), color: 'white', background: '#AAD4F5' }, |
| 48 | { month: 'current', day: new Date().getDate(), color: 'white', background: '#AAD4F5' } | 48 | { month: 'current', day: new Date().getDate(), color: 'white', background: '#AAD4F5' } |
| 49 | ], | 49 | ], |
| 50 | + timePickerArray:[ | ||
| 51 | + ['6:00','6:30','7:00'], | ||
| 52 | + ['10:00','10:30','11:00'], | ||
| 53 | + [], | ||
| 54 | + ], | ||
| 55 | + timePickerIndex:[0,0,0], | ||
| 50 | }, | 56 | }, |
| 51 | tablesAll:[], | 57 | tablesAll:[], |
| 52 | /** | 58 | /** |
| 53 | * 生命周期函数--监听页面加载 | 59 | * 生命周期函数--监听页面加载 |
| 54 | */ | 60 | */ |
| 55 | - onLoad: function (options) { | 61 | + onLoad: async function (options) { |
| 56 | this.setDateStr(); | 62 | this.setDateStr(); |
| 57 | this.sellerid=util.cache('sellerid'); | 63 | this.sellerid=util.cache('sellerid'); |
| 58 | let timePickerArray= await comm.getDayTimeSpace(); | 64 | let timePickerArray= await comm.getDayTimeSpace(); |
| @@ -249,7 +255,7 @@ Page({ | @@ -249,7 +255,7 @@ Page({ | ||
| 249 | }) | 255 | }) |
| 250 | App.Reserve.Detail({rid:_id,openid:''},true) | 256 | App.Reserve.Detail({rid:_id,openid:''},true) |
| 251 | wx.navigateTo({ | 257 | wx.navigateTo({ |
| 252 | - url:'b_detail?id='+res.data.id, | 258 | + url:'b_detail?id='+_id, |
| 253 | }); | 259 | }); |
| 254 | }else{ | 260 | }else{ |
| 255 | util.toast(res.msg,'none') | 261 | util.toast(res.msg,'none') |
-
Please register or login to post a comment