Commit 7beb5c42 by 陈超

T

parent 19dfa154
...@@ -180,6 +180,7 @@ ...@@ -180,6 +180,7 @@
if(p.children.length == 0) { if(p.children.length == 0) {
that.getCity(p.id, r => { that.getCity(p.id, r => {
p.children = r.map(r => { return { text: r.title, id: r.area_id, children: [] } }) p.children = r.map(r => { return { text: r.title, id: r.area_id, children: [] } })
that.columns = [].concat(that.columns)
let c = p.children[0] let c = p.children[0]
that.selected[1] = c.text that.selected[1] = c.text
that.onCityChange(picker, c) that.onCityChange(picker, c)
...@@ -199,7 +200,6 @@ ...@@ -199,7 +200,6 @@
that.getArea(c.id, r => { that.getArea(c.id, r => {
c.children = r.map(r => { return { text: r.title, id: r.area_id } }) c.children = r.map(r => { return { text: r.title, id: r.area_id } })
that.selected[2] = c.children[0].text that.selected[2] = c.children[0].text
that.columns = [].concat(that.columns)
picker.setColumnValues(2, c.children) picker.setColumnValues(2, c.children)
}) })
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment