Commit 60e7ecad by 陈超

T

parent 7beb5c42
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
show-toolbar show-toolbar
title="收货地址" title="收货地址"
:columns="columns" :columns="columns"
:loading="loading"
@confirm="onAreaConfirm" @confirm="onAreaConfirm"
@cancel="onAreaCancel" @cancel="onAreaCancel"
@change="onAreaChange"></van-picker> @change="onAreaChange"></van-picker>
...@@ -180,7 +179,10 @@ ...@@ -180,7 +179,10 @@
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: [] } })
if(!that.loading) {
that.loading = true
that.columns = [].concat(that.columns) 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)
......
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