|
|
|
@ -19,7 +19,6 @@ for (let idx = min; idx <= max; idx++) {
|
|
|
|
|
label: '' + idx + '年' |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
const CITY = wx.getStorageSync('city') |
|
|
|
|
let start; |
|
|
|
|
|
|
|
|
|
Page({ |
|
|
|
@ -29,7 +28,7 @@ Page({
|
|
|
|
|
data: { |
|
|
|
|
cityList: [], |
|
|
|
|
cityIndex: 0, |
|
|
|
|
cityName: CITY, |
|
|
|
|
cityName: "", |
|
|
|
|
switchYear: true, |
|
|
|
|
satellite: 2, |
|
|
|
|
scale: 13, |
|
|
|
@ -873,6 +872,13 @@ Page({
|
|
|
|
|
start: arryList[sIdx].value, |
|
|
|
|
end: arryList[eIdx].value, |
|
|
|
|
}) |
|
|
|
|
$apiT.getCityList().then(res => { |
|
|
|
|
this.setData({ |
|
|
|
|
cityList: res.data |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
let city = wx.getStorageSync('city') |
|
|
|
|
this.setCity(city) |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* 生命周期函数--监听页面显示 |
|
|
|
@ -884,13 +890,6 @@ Page({
|
|
|
|
|
selected: 1 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
$apiT.getCityList().then(res => { |
|
|
|
|
this.setData({ |
|
|
|
|
cityList: res.data |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
let city = wx.getStorageSync('city') |
|
|
|
|
this.setCity(city) |
|
|
|
|
}, |
|
|
|
|
onShareAppMessage: function () { |
|
|
|
|
return { |
|
|
|
|