Commit 9dd082b656ff8093e742fa0e4d5d7565e43024ba

Authored by vking
1 parent 320d4396

fix 灰色时段

... ... @@ -422,7 +422,7 @@ Page({
//console.log(e.type,key,val,form);
sobj.form = form;
sobj.buttonhide = this.data.buttonhide;
if (form.tid.length > 0 && form.rname.length > 0) {
if (form.tid.length > 0 && form.rname.length > 0 && this.data.timePickerArray[form.time].length>0){
sobj.buttonhide = false;
}else{
sobj.buttonhide = true;
... ... @@ -572,6 +572,9 @@ Page({
let tid = new Set(form.tid);//tid 去重
form.tid = [...tid].toString();
}
if(this.data.timePickerArray[form.time].length<1){
return util.toast('请选择时段', 'none');
}
if (!form.tid) {
return util.toast('请选择桌子', 'none');
}
... ... @@ -598,6 +601,7 @@ Page({
let ddateStr = util.unixtoTime(form.ddate, "YYYY-MM-DD " + this.data.defDtime[this.data.form.time] + ":00");
form.ddate = util.timetouUnix(ddateStr);
}
form.ddate_solt=form.time+1
App.Reserve.SetReserveInfo(form).then(res => {
if (res.ret == 200) {
this.getCustomRemark()
... ...