Commit cacb2720 by 陈超

T

parent 021e9a69
...@@ -144,7 +144,8 @@ ...@@ -144,7 +144,8 @@
area: "{$address.location}", area: "{$address.location}",
address: "{$address['address']}", address: "{$address['address']}",
showPicker: false, showPicker: false,
areaList: areaList areaList: areaList,
selected: []
} }
}, },
created:function(){ created:function(){
...@@ -164,7 +165,7 @@ ...@@ -164,7 +165,7 @@
onAreaConfirm: function(values) { onAreaConfirm: function(values) {
let that = this let that = this
that.showPicker = false that.showPicker = false
console.log(values) that.area = values.reduce( (v, e) => { return v.length == 0 ? e.name : (v + " " + e.name) }, "")
}, },
saveAddress: function() { saveAddress: function() {
......
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