Showing
1 changed file
with
2 additions
and
5 deletions
| @@ -281,7 +281,6 @@ Page({ | @@ -281,7 +281,6 @@ Page({ | ||
| 281 | reserveSection:e.detail.section, | 281 | reserveSection:e.detail.section, |
| 282 | seletroomlist:e.detail.action=='click' ? [] : this.data.seletroomlist, | 282 | seletroomlist:e.detail.action=='click' ? [] : this.data.seletroomlist, |
| 283 | }) | 283 | }) |
| 284 | - this.reserve.selectroom=e.detail.action=='click' ? [] : this.reserve.selectroom; | ||
| 285 | clearTimeout(t); | 284 | clearTimeout(t); |
| 286 | },0) | 285 | },0) |
| 287 | 286 | ||
| @@ -294,15 +293,14 @@ Page({ | @@ -294,15 +293,14 @@ Page({ | ||
| 294 | this.setData({ | 293 | this.setData({ |
| 295 | seletroomlist:e.detail.selectroom | 294 | seletroomlist:e.detail.selectroom |
| 296 | }) | 295 | }) |
| 297 | - this.reserve.selectroom=e.detail.selectroom; | ||
| 298 | }, | 296 | }, |
| 299 | complete(){ | 297 | complete(){ |
| 300 | - if(!this.reserve.selectroom || (this.reserve.selectroom && this.reserve.selectroom.length==0)){ | 298 | + if(!this.data.seletroomlist || (this.data.seletroomlist && this.data.seletroomlist.length==0)){ |
| 301 | return util.toast('请选择包间类型','none'); | 299 | return util.toast('请选择包间类型','none'); |
| 302 | } | 300 | } |
| 303 | this.reserve.sid=this.options.id | 301 | this.reserve.sid=this.options.id |
| 304 | this.reserve.ddate=util.timetouUnix(this.reserve.date+' '+this.reserve.time+':00'); | 302 | this.reserve.ddate=util.timetouUnix(this.reserve.date+' '+this.reserve.time+':00'); |
| 305 | - this.reserve.room_demand=JSON.stringify(this.reserve.selectroom) | 303 | + this.reserve.room_demand=JSON.stringify(this.data.seletroomlist) |
| 306 | wx.navigateTo({ | 304 | wx.navigateTo({ |
| 307 | url:util.http_build_query(this.reserve,'./submit') | 305 | url:util.http_build_query(this.reserve,'./submit') |
| 308 | }) | 306 | }) |
| @@ -337,7 +335,6 @@ Page({ | @@ -337,7 +335,6 @@ Page({ | ||
| 337 | }) | 335 | }) |
| 338 | } | 336 | } |
| 339 | this.reserve.date=e.detail.date; | 337 | this.reserve.date=e.detail.date; |
| 340 | - this.reserve.selectroom=e.detail.action=='click' ? [] : this.reserve.selectroom; | ||
| 341 | this.setData({ | 338 | this.setData({ |
| 342 | reserveDate:e.detail.date, | 339 | reserveDate:e.detail.date, |
| 343 | seletroomlist:e.detail.action=='click' ? [] : this.data.seletroomlist, | 340 | seletroomlist:e.detail.action=='click' ? [] : this.data.seletroomlist, |
-
Please register or login to post a comment