|
|
|
@ -182,9 +182,11 @@ Page({
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
bindMultiPickerColumnChange(e) { |
|
|
|
|
if (e.detail.column !== 0 || e.detail.value === 0) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (e.detail.column === 0 && e.detail.value === 0) { |
|
|
|
|
this.setData({ |
|
|
|
|
'multiRegion[1]': ['全部'] |
|
|
|
|
}) |
|
|
|
|
} else if (e.detail.column === 0){ |
|
|
|
|
let city = this.data.multiRegion[e.detail.column][e.detail.value]; |
|
|
|
|
$api.getAreaList(city).then(res => { |
|
|
|
|
let data = res.data |
|
|
|
@ -193,6 +195,7 @@ Page({
|
|
|
|
|
'multiRegion[1]': data |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* 生命周期函数--监听页面初次渲染完成 |
|
|
|
|