|
|
|
@ -9,11 +9,10 @@ const global = {};
|
|
|
|
|
//年份范围
|
|
|
|
|
const date = new Date(); |
|
|
|
|
const year = date.getFullYear(); |
|
|
|
|
const yearSpan = 3; |
|
|
|
|
const max = year + yearSpan; |
|
|
|
|
const max = year |
|
|
|
|
const min = 1949; |
|
|
|
|
const arryList = []; |
|
|
|
|
for (let idx = min; idx < max; idx++) { |
|
|
|
|
for (let idx = min; idx <= max; idx++) { |
|
|
|
|
arryList.push({ |
|
|
|
|
index: idx - min, |
|
|
|
|
value: idx, |
|
|
|
@ -121,6 +120,7 @@ Page({
|
|
|
|
|
is_focusing: true, |
|
|
|
|
is_searchList: true, |
|
|
|
|
}) |
|
|
|
|
this.inputFun(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
escFun() { //关闭弹窗
|
|
|
|
@ -817,6 +817,12 @@ Page({
|
|
|
|
|
}, |
|
|
|
|
setCity: function (city) { |
|
|
|
|
let index = this.data.cityList.indexOf(city) |
|
|
|
|
if (index !== -1) { |
|
|
|
|
this.setData({ |
|
|
|
|
cityName: city, |
|
|
|
|
cityIndex: index |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
let that = this; |
|
|
|
|
qqmapsdk.geocoder({ |
|
|
|
|
address: city, |
|
|
|
@ -831,22 +837,20 @@ Page({
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.setData({ |
|
|
|
|
cityName: city, |
|
|
|
|
cityIndex: index |
|
|
|
|
polygons: [], |
|
|
|
|
actives: [] |
|
|
|
|
}) |
|
|
|
|
this.setData({ |
|
|
|
|
actives: [2] |
|
|
|
|
global.features = []; |
|
|
|
|
$api.getLandListing({ |
|
|
|
|
lon: 0, |
|
|
|
|
lat: 0 |
|
|
|
|
}).then(data => { |
|
|
|
|
if (data.data && data.data.length > 0) { |
|
|
|
|
this.checkBtn(2) |
|
|
|
|
} else { |
|
|
|
|
this.checkBtn(1) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
let { |
|
|
|
|
latitude, |
|
|
|
|
longitude, |
|
|
|
|
} = this.data.centerLocation; |
|
|
|
|
this.deletPolygon(2); |
|
|
|
|
this.removeFeaturesToList(2); |
|
|
|
|
this.inQuotation({ |
|
|
|
|
latitude, |
|
|
|
|
longitude |
|
|
|
|
}, 2); |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
@ -861,7 +865,7 @@ Page({
|
|
|
|
|
key2: [], |
|
|
|
|
key3: [], |
|
|
|
|
}; |
|
|
|
|
let sIdx = year - yearSpan - min; |
|
|
|
|
let sIdx = year - min; |
|
|
|
|
let eIdx = year - min; |
|
|
|
|
this.setData({ |
|
|
|
|
indexStart: sIdx, |
|
|
|
|