提交 7de7613c authored 作者: 龙菲's avatar 龙菲

修改地图及文物详情

上级 b1e15b91
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
align-items: center; align-items: center;
.entrance-text { .entrance-text {
margin-right: 12px; margin-right: 12px;
font-size: 14px; font-size: 24px;
} }
&:hover { &:hover {
.entrance-icon { .entrance-icon {
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
<img src="@/assets/imgs/show/bg.png" alt="" class="main" /> <img src="@/assets/imgs/show/bg.png" alt="" class="main" />
</div> </div>
<!-- <div class="mask"></div> --> <!-- <div class="mask"></div> -->
<div class="color"> <!-- <div class="color">
<img src="@/assets/imgs/show/circle-bg.png" alt="" class="cb" /> <img src="@/assets/imgs/show/circle-bg.png" alt="" class="cb" />
<img src="@/assets/imgs/show/river.png" alt="" class="river" /> <img src="@/assets/imgs/show/river.png" alt="" class="river" />
<img src="@/assets/imgs/show/circle.png" alt="" class="circle" /> <img src="@/assets/imgs/show/circle.png" alt="" class="circle" />
</div> </div> -->
</div> </div>
<div class="wrapper wow animate__animated animate__fadeInUpBig"> <div class="wrapper wow animate__animated animate__fadeInUpBig">
......
<!-- --> <!-- -->
<template> <template>
<div class="home-cr"> <div class="home-cr">
<div class="text wow animate__animated animate__fadeIn">文物</div>
<div class="title wow animate__animated animate__fadeInUp"> <div class="title wow animate__animated animate__fadeInUp">
<!-- <div class="ch">每日推送</div> <!-- <div class="ch">每日推送</div>
<div class="en">Daily Exhibition Push</div> --> <div class="en">Daily Exhibition Push</div> -->
<div class="title-img"> <!-- <div class="title-img">
<img src="@/assets/imgs/home-new/daily.png" alt="" /> <img src="@/assets/imgs/home-new/daily.png" alt="" />
</div> </div> -->
<div class="all" @click="handleToAll"> <div class="all" @click="handleToAll">
<img src="@/assets/imgs/home-new/all.png" alt="" /> <img src="@/assets/imgs/home-new/all.png" alt="" />
</div> </div>
</div> </div>
<div class="text wow animate__animated animate__fadeIn">文物</div>
<div class="list wow animate__animated animate__zoomIn"> <div class="list wow animate__animated animate__zoomIn">
<div <div
class="list-item" class="list-item"
...@@ -179,12 +180,12 @@ $blue: $themeColor; ...@@ -179,12 +180,12 @@ $blue: $themeColor;
margin-bottom: 36px; margin-bottom: 36px;
margin-top: 40px; margin-top: 40px;
font-family: "Alibaba PuHuiTi"; font-family: "Alibaba PuHuiTi";
font-size: 32px; font-size: 48px;
font-weight: bold; font-weight: bold;
} }
.list { .list {
width: 100%; width: 100%;
// padding: 0 6%; padding: 0 6%;
height: 492px; height: 492px;
display: flex; display: flex;
position: relative; position: relative;
...@@ -193,6 +194,7 @@ $blue: $themeColor; ...@@ -193,6 +194,7 @@ $blue: $themeColor;
width: 280px; width: 280px;
height: 280px; height: 280px;
background-color: #a5b8d4; background-color: #a5b8d4;
border-radius: 50%; border-radius: 50%;
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -207,6 +209,8 @@ $blue: $themeColor; ...@@ -207,6 +209,8 @@ $blue: $themeColor;
} }
&:hover { &:hover {
background-color: transparent; background-color: transparent;
background-image: url("@/assets/imgs/home-new/cr-bg.png");
background-size: contain;
} }
& > .title { & > .title {
background-image: url("@/assets/imgs/home-new/title-bg.png"); background-image: url("@/assets/imgs/home-new/title-bg.png");
...@@ -227,7 +231,7 @@ $blue: $themeColor; ...@@ -227,7 +231,7 @@ $blue: $themeColor;
&:nth-child(2), &:nth-child(2),
&:nth-child(3) { &:nth-child(3) {
position: absolute; position: absolute;
left: 0; left: 100px;
.title { .title {
right: -80px; right: -80px;
} }
...@@ -236,8 +240,9 @@ $blue: $themeColor; ...@@ -236,8 +240,9 @@ $blue: $themeColor;
top: 0; top: 0;
} }
&:nth-child(2) { &:nth-child(2) {
top: calc(200px); top: calc(130px);
left: 450px;
left: 570px;
} }
&:nth-child(3) { &:nth-child(3) {
top: calc(200px * 2 - 50px); top: calc(200px * 2 - 50px);
...@@ -246,7 +251,7 @@ $blue: $themeColor; ...@@ -246,7 +251,7 @@ $blue: $themeColor;
&:nth-child(5), &:nth-child(5),
&:nth-child(6) { &:nth-child(6) {
position: absolute; position: absolute;
right: 0; right: 100px;
.title { .title {
left: -80px; left: -80px;
} }
...@@ -255,8 +260,8 @@ $blue: $themeColor; ...@@ -255,8 +260,8 @@ $blue: $themeColor;
top: 0; top: 0;
} }
&:nth-child(5) { &:nth-child(5) {
top: calc(240px); top: calc(220px);
right: 450px; right: 490px;
} }
&:nth-child(6) { &:nth-child(6) {
top: calc(240px * 2 - 50px); top: calc(240px * 2 - 50px);
......
...@@ -125,11 +125,11 @@ export default { ...@@ -125,11 +125,11 @@ export default {
.title { .title {
color: #fff; color: #fff;
margin-top: 70px; // margin-top: 10px;
// margin-bottom: 90px; // margin-bottom: 90px;
font-family: "Alibaba PuHuiTi"; font-family: "Alibaba PuHuiTi";
flex-basis: auto; flex-basis: auto;
font-size: 32px; font-size: 48px;
font-weight: bold; font-weight: bold;
margin-bottom: 20px; margin-bottom: 20px;
} }
......
...@@ -152,16 +152,28 @@ export default { ...@@ -152,16 +152,28 @@ export default {
}); });
// 图标 // 图标
const series = seriesList.map((v) => { const series = seriesList.map((v) => {
// console.log("123", seriesList);
return { return {
type: "custom", //配置显示方式为用户自定义 type: "custom", //配置显示方式为用户自定义
coordinateSystem: "geo", coordinateSystem: "geo",
data: v.data, data: v.data,
renderItem(params, api) { renderItem(params, api) {
console.log("params", v.data[params.dataIndex].type);
let type = v.data[params.dataIndex].type;
let url;
let width;
if (type == "红色文化博物馆") {
url = "ms-icon-red";
width = 8;
} else {
url = "ms-icon";
width=20
}
//具体实现自定义图标的方法 //具体实现自定义图标的方法
return { return {
type: "image", type: "image",
style: { style: {
image: require("@/assets/imgs/home-new/ms-icon.png"), image: require(`@/assets/imgs/home-new/${url}.png`),
x: api.coord([ x: api.coord([
v.data[params.dataIndex].value[0], v.data[params.dataIndex].value[0],
v.data[params.dataIndex].value[1], v.data[params.dataIndex].value[1],
...@@ -170,7 +182,7 @@ export default { ...@@ -170,7 +182,7 @@ export default {
v.data[params.dataIndex].value[0], v.data[params.dataIndex].value[0],
v.data[params.dataIndex].value[1], v.data[params.dataIndex].value[1],
])[1], ])[1],
width: 20, width:width
}, },
}; };
}, },
...@@ -197,7 +209,6 @@ export default { ...@@ -197,7 +209,6 @@ export default {
faceImageUrl = `<div> faceImageUrl = `<div>
<div style="text-align:center;line-height:26px;color:#000;font-weight:bold">${item.name} <div style="text-align:center;line-height:26px;color:#000;font-weight:bold">${item.name}
<div/> <div/>
</div>`; </div>`;
that.curMuseum = item; that.curMuseum = item;
return; return;
...@@ -205,26 +216,6 @@ export default { ...@@ -205,26 +216,6 @@ export default {
}); });
return faceImageUrl; return faceImageUrl;
}, },
// formatter: function (a) {
// let faceImageUrl = "";
// that.museumList.forEach((item) => {
// if (
// item.longitude &&
// item.latitude &&
// item.longitude == a.value[0] &&
// item.latitude == a.value[1]
// ) {
// faceImageUrl = `<div>
// <div style="text-align:center;line-height:26px;color:#000;font-weight:bold">${item.name}
// <div/>
// <img width="400px" src="${item.faceImagePressUrl}" />
// </div>`;
// that.curMuseum = item;
// return;
// }
// });
// return faceImageUrl;
// },
}, },
// visualMap: { // visualMap: {
// min: 0, // min: 0,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论