Commit 60e7ecad by 陈超

T

parent 7beb5c42
......@@ -27,7 +27,6 @@
show-toolbar
title="收货地址"
:columns="columns"
:loading="loading"
@confirm="onAreaConfirm"
@cancel="onAreaCancel"
@change="onAreaChange"></van-picker>
......@@ -180,7 +179,10 @@
if(p.children.length == 0) {
that.getCity(p.id, r => {
p.children = r.map(r => { return { text: r.title, id: r.area_id, children: [] } })
that.columns = [].concat(that.columns)
if(!that.loading) {
that.loading = true
that.columns = [].concat(that.columns)
}
let c = p.children[0]
that.selected[1] = c.text
that.onCityChange(picker, c)
......
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