|
...
|
...
|
@@ -161,9 +161,9 @@ Page({ |
|
|
|
*/
|
|
|
|
onShow: function () {
|
|
|
|
//if(!this.reserve_id || util.cache('tableid').length>0){
|
|
|
|
if (util.cache('tableid').length > 0) {
|
|
|
|
//if (util.cache('tableid').length > 0) {
|
|
|
|
this.getTables();
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
setTimeout(() => {
|
|
|
|
this.setData({
|
|
|
|
calendarMaskLoad: true,
|
|
...
|
...
|
@@ -332,7 +332,9 @@ Page({ |
|
|
|
let tablesLength = 0;
|
|
|
|
if (tableid.length > 0) {
|
|
|
|
let toastTables={...this.checkedTables}
|
|
|
|
res.data.forEach(p => {
|
|
|
|
let resData=res.data.slice(1,res.data.length);
|
|
|
|
console.log('resData',resData)
|
|
|
|
resData.forEach(p => {
|
|
|
|
//if(tables.length>=3) return true;
|
|
|
|
p.list.forEach(t => {
|
|
|
|
delete toastTables[t.id]
|
|
...
|
...
|
@@ -363,6 +365,7 @@ Page({ |
|
|
|
}
|
|
|
|
wx.removeStorage({key: 'tableid'})
|
|
|
|
}
|
|
|
|
console.log('tables',tables);
|
|
|
|
if(tables.length<1){
|
|
|
|
tablesLength=0;
|
|
|
|
tables_tmp = [];
|
...
|
...
|
|