Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
姚宇浩 2024-07-24 15:34:44 +08:00
commit fd53ee78bf
4 changed files with 18 additions and 0 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -239,6 +239,7 @@ onMounted(() => {
position: absolute; position: absolute;
right: -70px; right: -70px;
bottom: -50px; bottom: -50px;
pointer-events: none;
} }
.leftLineClass { .leftLineClass {
@ -246,6 +247,7 @@ onMounted(() => {
transform: scaleX(-1); transform: scaleX(-1);
left: -70px; left: -70px;
bottom: -50px; bottom: -50px;
pointer-events: none;
} }
} }

View File

@ -501,6 +501,7 @@ body {
width: 180px; width: 180px;
height: 180px; height: 180px;
position: relative; position: relative;
cursor: pointer;
.fiTop { .fiTop {
width: 100%; width: 100%;
img { img {

View File

@ -333,6 +333,20 @@ const xkzCenter = reactive([
}, },
]); ]);
var map = null; var map = null;
const BMAP = () => {
//
map.addEventListener("click", function (e) {
console.log(e.point, 666);
// console.log(e.point.latLng.lng,e.point.latLng.lat, 666);
// var pt = e.point; //
map.addOverlay(marker);
var marker = new BMapGL.Marker(new BMapGL.Point(e.point.lng,e.point.lat)); //
// var marker = new BMapGL.Marker(pt); //
map.addOverlay(marker); //
});
};
const initMap = () => { const initMap = () => {
map = new BMapGL.Map("map", { minZoom: 11, maxZoom: 20 }); map = new BMapGL.Map("map", { minZoom: 11, maxZoom: 20 });
map.setMapType(BMAP_SATELLITE_MAP); map.setMapType(BMAP_SATELLITE_MAP);
@ -345,6 +359,7 @@ const initMap = () => {
addPolygonCounty(); addPolygonCounty();
// //
addJd(); addJd();
BMAP();
}; };
const loadTown = () => { const loadTown = () => {
for (let v of mapTown.features) { for (let v of mapTown.features) {