|
...
|
...
|
@@ -35,7 +35,9 @@ Page({ |
|
|
|
activeTab:options.activeTab||'detail',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
reserveDate: options.date ? options.date : util.unixtoTime(new Date() / 1000, 'YYYY-MM-DD'),
|
|
|
|
})
|
|
|
|
App.Customer.IsCollectionSeller({
|
|
|
|
sid:options.id,
|
|
|
|
openid:getApp().openid
|
|
...
|
...
|
@@ -100,7 +102,7 @@ Page({ |
|
|
|
*/
|
|
|
|
onShow: function () {
|
|
|
|
this.selectComponent('#getpos').getPos();
|
|
|
|
if(this.data.reserveDate){//后退进入等情况刷新时段
|
|
|
|
if (this.data.reserveDate && this.data.seletroomlist){//后退进入等情况刷新时段
|
|
|
|
this.setData({
|
|
|
|
reserveDate:this.data.reserveDate
|
|
|
|
})
|
|
...
|
...
|
@@ -336,6 +338,9 @@ Page({ |
|
|
|
this.reserve.sid=this.options.id
|
|
|
|
this.reserve.ddate=util.timetouUnix(this.reserve.date+' '+this.reserve.time+':00');
|
|
|
|
this.reserve.room_demand=JSON.stringify(this.data.seletroomlist)
|
|
|
|
if(this.options.pnum){
|
|
|
|
this.reserve.pnum = this.options.pnum;
|
|
|
|
}
|
|
|
|
wx.navigateTo({
|
|
|
|
url:util.http_build_query(this.reserve,'./submit')
|
|
|
|
})
|
...
|
...
|
|