Commit 07041594c84419a3aea93887203a82a64fc249aa

Authored by wangfan
1 parent 7d5033cd

测试接口 & 增加推荐区域

Showing 1 changed file with 8 additions and 7 deletions
... ... @@ -369,15 +369,16 @@ Page({
if(tables.length<1){
tablesLength=0;
tables_tmp = [];
res.data.forEach(p => {
res.data.forEach((p,ri) => {
p.list.forEach(t => {
tablesLength++;
if(ri>0) tablesLength++;
//if(tables.length>=3) return true;
if (t.tid == 2) {
tables.push(t);
} else {
tables_tmp.push(t);
}
// if (t.tid == 2) {
// tables.push(t);
// } else {
// tables_tmp.push(t);
// }
tables.push(t);
})
})
if (tables.length < 3) {
... ...