|
@@ -323,7 +323,7 @@ const refreshStation = (location: any) => {
|
|
|
height: 34,
|
|
height: 34,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- isIgnoreChangeLocation = true;
|
|
|
|
|
|
|
+ isIgnoreChangeLocation = markers.value.length !== _markers.length
|
|
|
stationPage.value.hasNext = res.length >= stationPage.value.pageSize;
|
|
stationPage.value.hasNext = res.length >= stationPage.value.pageSize;
|
|
|
empty.value = stationPage.value.page === 1 ? res.length <= 0 : false;
|
|
empty.value = stationPage.value.page === 1 ? res.length <= 0 : false;
|
|
|
station.value =
|
|
station.value =
|
|
@@ -469,6 +469,7 @@ const resetLocation = () => {
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
const mapUpdated = (e: any) => {
|
|
const mapUpdated = (e: any) => {
|
|
|
|
|
+ // console.log('map updated', isIgnoreChangeLocation)
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
isIgnoreChangeLocation = false;
|
|
isIgnoreChangeLocation = false;
|
|
|
}, 500);
|
|
}, 500);
|
|
@@ -478,8 +479,11 @@ const mapChange = (e: any) => {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (e.type === "end" && markers.value.length) {
|
|
if (e.type === "end" && markers.value.length) {
|
|
|
- // console.log("refreshStation");
|
|
|
|
|
- const { latitude, longitude } = e.detail.centerLocation;
|
|
|
|
|
|
|
+ console.log("map change end", {
|
|
|
|
|
+ ...e.detail.centerLocation
|
|
|
|
|
+ });
|
|
|
|
|
+ const current = e.target.centerLocation;
|
|
|
|
|
+ const { latitude, longitude } = current;
|
|
|
stationPage.value.page = 1;
|
|
stationPage.value.page = 1;
|
|
|
refreshStation({
|
|
refreshStation({
|
|
|
latitude,
|
|
latitude,
|