|
@@ -785,18 +785,25 @@ export default {
|
|
|
let markers = [];
|
|
let markers = [];
|
|
|
for (let i of medias.value) {
|
|
for (let i of medias.value) {
|
|
|
let content = `<div style='width:160px'>
|
|
let content = `<div style='width:160px'>
|
|
|
- <img id='img${i.id}' style='width:160px;height:160px;object-fit:contain;' src='${i.viewUrl}'/>
|
|
|
|
|
|
|
+ ${
|
|
|
|
|
+ i.audit == 1
|
|
|
|
|
+ ? `<img id='img${i.id}' style='width:160px;height:160px;object-fit:contain;' src='${i.viewUrl}'/>`
|
|
|
|
|
+ : ``
|
|
|
|
|
+ }
|
|
|
<img src='https://hhd-pat-1255802371.cos.ap-shanghai.myqcloud.com/frontend/ship-red-icon.png' style='display:block;width:20px;height:20px;margin:6px auto'/
|
|
<img src='https://hhd-pat-1255802371.cos.ap-shanghai.myqcloud.com/frontend/ship-red-icon.png' style='display:block;width:20px;height:20px;margin:6px auto'/
|
|
|
</div>`;
|
|
</div>`;
|
|
|
|
|
|
|
|
let marker = new AMap.Marker({
|
|
let marker = new AMap.Marker({
|
|
|
content,
|
|
content,
|
|
|
position: new AMap.LngLat(i.longitude, i.latitude),
|
|
position: new AMap.LngLat(i.longitude, i.latitude),
|
|
|
- offset: new AMap.Pixel(-75, -195),
|
|
|
|
|
- });
|
|
|
|
|
- marker.on("click", () => {
|
|
|
|
|
- openMediaModal(i.viewUrl, 1, "航次图片");
|
|
|
|
|
|
|
+ offset: new AMap.Pixel(-75, i.audit == 1 ? -195 : -30),
|
|
|
});
|
|
});
|
|
|
|
|
+ if (i.audit == 1) {
|
|
|
|
|
+ marker.on("click", () => {
|
|
|
|
|
+ openMediaModal(i.viewUrl, 1, "航次图片", i);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
markers.push(marker);
|
|
markers.push(marker);
|
|
|
}
|
|
}
|
|
|
|
|
|