|
|
@ -29,7 +29,7 @@ Page({ |
|
|
// typeNum: 10,
|
|
|
// typeNum: 10,
|
|
|
// addrArray: { id: [440100000, 430426000], name: ['长沙', '深圳', '上海', '长沙', '武汉', '杭州', '北京'] },
|
|
|
// addrArray: { id: [440100000, 430426000], name: ['长沙', '深圳', '上海', '长沙', '武汉', '杭州', '北京'] },
|
|
|
addrIndex: 0, |
|
|
addrIndex: 0, |
|
|
cityName:'', |
|
|
|
|
|
|
|
|
districtName:'', |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 城市选择 |
|
|
* 城市选择 |
|
|
@ -49,12 +49,12 @@ Page({ |
|
|
// //获取本地数据
|
|
|
// //获取本地数据
|
|
|
// // 获取地址
|
|
|
// // 获取地址
|
|
|
// wx.getStorage({
|
|
|
// wx.getStorage({
|
|
|
// key: 'cityName',
|
|
|
|
|
|
|
|
|
// key: 'districtName',
|
|
|
// success: function (res) {
|
|
|
// success: function (res) {
|
|
|
// console.log(111111111111111111)
|
|
|
// console.log(111111111111111111)
|
|
|
// console.log(res.data)
|
|
|
// console.log(res.data)
|
|
|
// that.setData({
|
|
|
// that.setData({
|
|
|
// cityName: res.data
|
|
|
|
|
|
|
|
|
// districtName: res.data
|
|
|
// })
|
|
|
// })
|
|
|
// console.log(222222222222222222)
|
|
|
// console.log(222222222222222222)
|
|
|
|
|
|
|
|
|
@ -195,10 +195,11 @@ Page({ |
|
|
//获取本地数据
|
|
|
//获取本地数据
|
|
|
// 获取地址
|
|
|
// 获取地址
|
|
|
wx.getStorage({ |
|
|
wx.getStorage({ |
|
|
key: 'cityName', |
|
|
|
|
|
|
|
|
key: 'districtName', |
|
|
success: function (res) { |
|
|
success: function (res) { |
|
|
|
|
|
// console.log(res.data)
|
|
|
that.setData({ |
|
|
that.setData({ |
|
|
cityName: res.data |
|
|
|
|
|
|
|
|
districtName: res.data |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|