|
@ -40,17 +40,19 @@ Page({ |
|
|
let street =[] |
|
|
let street =[] |
|
|
arr.map(m=>{ |
|
|
arr.map(m=>{ |
|
|
m.children.map(item=>{ |
|
|
m.children.map(item=>{ |
|
|
if (options.id==item.value) { |
|
|
if (options.id==item.value&&item.children) { |
|
|
item.children.map(items=>{ |
|
|
item.children.map(items=>{ |
|
|
gridArr.push(items.label) |
|
|
gridArr.push(items.label) |
|
|
items.childrenArr=[] |
|
|
items.childrenArr=[] |
|
|
items.children.map(itemss=>{ |
|
|
if (items.children) { |
|
|
items.childrenArr.push(itemss.label) |
|
|
|
|
|
}) |
|
|
|
|
|
if (gridArr[0]==items.label) { |
|
|
|
|
|
items.children.map(itemss=>{ |
|
|
items.children.map(itemss=>{ |
|
|
smallGrid.push(itemss.label) |
|
|
items.childrenArr.push(itemss.label) |
|
|
}) |
|
|
}) |
|
|
|
|
|
if (gridArr[0]==items.label) { |
|
|
|
|
|
items.children.map(itemss=>{ |
|
|
|
|
|
smallGrid.push(itemss.label) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
street.push(items.childrenArr) |
|
|
street.push(items.childrenArr) |
|
|
}) |
|
|
}) |
|
@ -265,5 +267,8 @@ Page({ |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
visible:true |
|
|
visible:true |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
onTap(e){ |
|
|
|
|
|
console.log(e); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |