Commit f5ca4176c1ae876ec7f8e7731c38e42f2ac9c680

Authored by vking
1 parent 64104151

blue ui other

... ... @@ -101,7 +101,7 @@ Page({
hasDishesImage=true
dishes.image=dishes.image.replace('//qn.colorcun','//nosqn.colorcun')
}else{
hasDishesText:true
hasDishesText=true
}
})
}
... ...
... ... @@ -34,6 +34,16 @@ Page({
this.setData({
reserveDate: options.date ? options.date : util.unixtoTime(new Date() / 1000, 'YYYY-MM-DD'),
})
if(options.act=='update'){//修改预订
//act=update&section=night&time=16:00&date=2020-12-27&sid=1&ddate=1609056000&room_demand=[{"id":"30","name":"6人间"},{"id":"31","name":"10人间"},{"id":"32","name":"12人间"}]
this.setData({
reserveDate: options.date,
seletroomlist:JSON.parse(options.room_demand),
reserveSection:options.section
})
this.reserve.section=options.section;
this.reserve.time=options.time;
}
},
GetSellerDetail(){
let options=this.options
... ... @@ -182,7 +192,7 @@ Page({
if(this.options.pnum){
this.reserve.pnum = this.options.pnum;
}
wx.navigateTo({
wx.redirectTo({
url:util.http_build_query(this.reserve,'./submit')
})
},
... ...
... ... @@ -26,7 +26,8 @@ Page({
*/
options:null,
onLoad: function (options) {
console.log(options)
//section=noon&time=11:00&date=2020-12-27&sid=1&ddate=1609038000&room_demand=[{"id":"30","name":"6人间"},{"id":"31","name":"10人间"}]
console.log(options)
options.room_demand=JSON.parse(decodeURIComponent(options.room_demand))
this.options=options
this.GetSellerDetail();
... ... @@ -197,7 +198,16 @@ Page({
return util.timetouUnix(ddate[0]+' '+rd[0]+':00')+'-'+util.timetouUnix(ddate[0]+' '+rd[1]+':00')
},
editorReserve(){
wx.navigateBack()
console.log(this.options)
let params={
act:'update',
...this.options,
}
params.room_demand=JSON.stringify(params.room_demand)
params.id=params.sid,
wx.redirectTo({
url:util.http_build_query(params,'/pages/reserve/reserve'),
})
},
getphone(e){
console.log('getphone',e);
... ...