This commit is contained in:
2025-12-19 16:33:15 +08:00
parent b43eb98a1c
commit bca0d997c6

View File

@@ -2,7 +2,7 @@
<scroll-view :scroll-y="true" class="nearby-scroll" @scrolltolower="scrollBottom"> <scroll-view :scroll-y="true" class="nearby-scroll" @scrolltolower="scrollBottom">
<view class="nearby-map" @touchmove.stop.prevent> <view class="nearby-map" @touchmove.stop.prevent>
<map <map
style="width: 100%; height: 410rpx" style="width: 100%; height: 690rpx"
:latitude="latitudeVal" :latitude="latitudeVal"
:longitude="longitudeVal" :longitude="longitudeVal"
:markers="mapCovers" :markers="mapCovers"
@@ -111,11 +111,12 @@ const mapControls = ref([
id: 1, id: 1,
position: { position: {
// 控件位置 // 控件位置
left: customSystem.systemInfo.screenWidth - 48 - 14, left: customSystem.systemInfo.screenWidth - uni.upx2px(75 + 30),
top: 320, top: uni.upx2px(655 - 75 - 30),
width: 48, width: uni.upx2px(75),
height: 48, height: uni.upx2px(75),
}, },
width:100,
iconPath: LocationPng, // 控件图标 iconPath: LocationPng, // 控件图标
}, },
]); ]);
@@ -221,27 +222,23 @@ onMounted(() => {
}); });
function getInit() { function getInit() {
useLocationStore()
.getLocation()
.then((res) => {
mapCovers.value = [ mapCovers.value = [
{ {
latitude: res.latitude, latitude: latitudeVal.value,
longitude: res.longitude, longitude: longitudeVal.value,
iconPath: point2, iconPath: point2,
}, },
]; ];
mapCircles.value = [ mapCircles.value = [
{ {
latitude: res.latitude, latitude: latitudeVal.value,
longitude: res.longitude, longitude:longitudeVal.value,
radius: 1000, radius: 1000,
fillColor: '#1c52fa25', fillColor: '#1c52fa25',
color: '#256BFA', color: '#256BFA',
}, },
]; ];
getJobList('refresh'); getJobList('refresh');
});
} }
function progressChange(value) { function progressChange(value) {
@@ -363,7 +360,7 @@ defineExpose({ loadData, handleFilterConfirm });
height: 100%; height: 100%;
background: #f4f4f4; background: #f4f4f4;
.nearby-map .nearby-map
height: 400rpx; height: 655rpx;
background: #e8e8e8; background: #e8e8e8;
overflow: hidden overflow: hidden
.nearby-list .nearby-list