Commit 07041594c84419a3aea93887203a82a64fc249aa

Authored by wangfan
1 parent 7d5033cd

测试接口 & 增加推荐区域

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) {