Showing
1 changed file
with
8 additions
and
7 deletions
| @@ -369,15 +369,16 @@ Page({ | @@ -369,15 +369,16 @@ Page({ | ||
| 369 | if(tables.length<1){ | 369 | if(tables.length<1){ |
| 370 | tablesLength=0; | 370 | tablesLength=0; |
| 371 | tables_tmp = []; | 371 | tables_tmp = []; |
| 372 | - res.data.forEach(p => { | 372 | + res.data.forEach((p,ri) => { |
| 373 | p.list.forEach(t => { | 373 | p.list.forEach(t => { |
| 374 | - tablesLength++; | 374 | + if(ri>0) tablesLength++; |
| 375 | //if(tables.length>=3) return true; | 375 | //if(tables.length>=3) return true; |
| 376 | - if (t.tid == 2) { | ||
| 377 | - tables.push(t); | ||
| 378 | - } else { | ||
| 379 | - tables_tmp.push(t); | ||
| 380 | - } | 376 | + // if (t.tid == 2) { |
| 377 | + // tables.push(t); | ||
| 378 | + // } else { | ||
| 379 | + // tables_tmp.push(t); | ||
| 380 | + // } | ||
| 381 | + tables.push(t); | ||
| 381 | }) | 382 | }) |
| 382 | }) | 383 | }) |
| 383 | if (tables.length < 3) { | 384 | if (tables.length < 3) { |
-
Please register or login to post a comment