Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_page
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_page
Commits
7de7613c
提交
7de7613c
authored
12月 19, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改地图及文物详情
上级
b1e15b91
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
35 行增加
和
39 行删除
+35
-39
cr-bg.png
src/assets/imgs/home-new/cr-bg.png
+0
-0
ms-icon-red.png
src/assets/imgs/home-new/ms-icon-red.png
+0
-0
index.vue
src/components/EntranceIcon/index.vue
+1
-1
Detail.vue
src/views/culturalRelic/Detail.vue
+2
-2
CulturalRelic.vue
src/views/home/components/CulturalRelic.vue
+16
-11
Display.vue
src/views/home/components/Display.vue
+2
-2
MuseumMap.vue
src/views/home/components/MuseumMap.vue
+14
-23
没有找到文件。
src/assets/imgs/home-new/cr-bg.png
0 → 100644
浏览文件 @
7de7613c
30.6 KB
src/assets/imgs/home-new/ms-icon-red.png
0 → 100644
浏览文件 @
7de7613c
2.8 KB
src/components/EntranceIcon/index.vue
浏览文件 @
7de7613c
...
@@ -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
:
1
4px
;
font-size
:
2
4px
;
}
}
&
:hover
{
&
:hover
{
.entrance-icon
{
.entrance-icon
{
...
...
src/views/culturalRelic/Detail.vue
浏览文件 @
7de7613c
...
@@ -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"
>
...
...
src/views/home/components/CulturalRelic.vue
浏览文件 @
7de7613c
<!-- -->
<!-- -->
<
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
:
32
px
;
font-size
:
48
px
;
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
(
2
4
0px
);
top
:
calc
(
2
2
0px
);
right
:
4
5
0px
;
right
:
4
9
0px
;
}
}
&
:nth-child
(
6
)
{
&
:nth-child
(
6
)
{
top
:
calc
(
240px
*
2
-
50px
);
top
:
calc
(
240px
*
2
-
50px
);
...
...
src/views/home/components/Display.vue
浏览文件 @
7de7613c
...
@@ -125,11 +125,11 @@ export default {
...
@@ -125,11 +125,11 @@ export default {
.title
{
.title
{
color
:
#fff
;
color
:
#fff
;
margin-top
:
7
0px
;
// margin-top: 1
0px;
// margin-bottom: 90px;
// margin-bottom: 90px;
font-family
:
"Alibaba PuHuiTi"
;
font-family
:
"Alibaba PuHuiTi"
;
flex-basis
:
auto
;
flex-basis
:
auto
;
font-size
:
32
px
;
font-size
:
48
px
;
font-weight
:
bold
;
font-weight
:
bold
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
...
...
src/views/home/components/MuseumMap.vue
浏览文件 @
7de7613c
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论