Skip to content

Commit

Permalink
fix issues 3
Browse files Browse the repository at this point in the history
  • Loading branch information
gooking committed Jun 9, 2017
1 parent d02139e commit bc62f58
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pages/address-add/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,12 @@ Page({
},
bindPickerChange:function (event) {
var selIterm = commonCityData.cityData[this.data.selProvinceIndex].cityList[this.data.selCityIndex].districtList[event.detail.value];
this.setData({
selDistrict:selIterm.name,
selDistrictIndex:event.detail.value
})
if (selIterm && selIterm.name && event.detail.value) {
this.setData({
selDistrict: selIterm.name,
selDistrictIndex: event.detail.value
})
}
},
onLoad: function (e) {
var that = this;
Expand Down

0 comments on commit bc62f58

Please sign in to comment.