|
@@ -154,7 +154,7 @@ const chooseItem = (i, index) => {
|
|
|
// marker.clearEvents("mousedown");
|
|
|
// marker.off("mousedown", hanlderMakerEvent);
|
|
|
tabType.value = i.type;
|
|
|
-
|
|
|
+ switchView()
|
|
|
if (markers.length) {
|
|
|
markers.forEach((item) => {
|
|
|
map.remove(item);
|
|
@@ -183,7 +183,7 @@ const setMarker = () => {
|
|
|
var customIcon = new AMap.Icon({
|
|
|
// size: new AMap.Size(50, 50),
|
|
|
image: "//vdata.amap.com/icons/b18/1/2.png",
|
|
|
- imageSize: new AMap.Size(50, 50),
|
|
|
+ imageSize: new AMap.Size(50 * 0.5, 50 * 0.5),
|
|
|
});
|
|
|
let pos = data[i].location.split(",");
|
|
|
let extData = data[i];
|
|
@@ -191,7 +191,7 @@ const setMarker = () => {
|
|
|
// position: new AMap.LngLat(106.837106, 29.712762),
|
|
|
|
|
|
position: new AMap.LngLat(pos[0], pos[1]),
|
|
|
- offset: new AMap.Pixel(-10, -10),
|
|
|
+ // offset: new AMap.Pixel(-10, -10),
|
|
|
icon: customIcon, //添加 icon 图标 URL
|
|
|
title: data[i].name,
|
|
|
zooms: [9, 20], // 设置可见级别,[最小级别,最大级别]
|
|
@@ -281,7 +281,7 @@ const initMap = async () => {
|
|
|
// layers: [layer, imageLayer],
|
|
|
layers: [layer],
|
|
|
});
|
|
|
- map.add(tilerLayer);
|
|
|
+ // map.add(tilerLayer);
|
|
|
var circle = new AMap.Rectangle({
|
|
|
bounds: new AMap.Bounds(
|
|
|
[106.837106, 29.712762], // 左下 手绘图左下相对于地图的经纬度
|
|
@@ -443,11 +443,7 @@ const openApp = () => {
|
|
|
wx.miniProgram.navigateTo({ url: path });
|
|
|
};
|
|
|
const switchView = (type) => {
|
|
|
- if (type == 1) {
|
|
|
- map.setCenter([106.837106, 29.712762], true);
|
|
|
- } else {
|
|
|
- map.setCenter([114.2983, 30.5466], true);
|
|
|
- }
|
|
|
+ map.setCenter([113.236426, 29.138033], true);
|
|
|
};
|
|
|
|
|
|
// 绘制当前区域 name: 南京市
|
|
@@ -576,7 +572,7 @@ onMounted(() => {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- padding-right: .8rem;
|
|
|
+ padding-right: 0.8rem;
|
|
|
> div {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -615,7 +611,7 @@ onMounted(() => {
|
|
|
background: url("@/assets/images/chatBg.png") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
margin-bottom: 0.5333rem;
|
|
|
- padding: 0.3rem 0.8rem 1.3333rem;
|
|
|
+ padding: 0.3rem 0.2rem 1.3333rem 0.8rem;
|
|
|
position: relative;
|
|
|
|
|
|
.ipt-box {
|
|
@@ -659,6 +655,7 @@ onMounted(() => {
|
|
|
font-weight: 400;
|
|
|
font-size: 0.3333rem;
|
|
|
line-height: 0.4667rem;
|
|
|
+ padding-right: 0.6rem;
|
|
|
overflow-y: auto;
|
|
|
> div {
|
|
|
overflow: hidden;
|