Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_page
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_page
Commits
8e562ed8
提交
8e562ed8
authored
9月 14, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
布展默认主题、中国风主题的适配调整
上级
98812ff0
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
107 行增加
和
424 行删除
+107
-424
index.vue
src/components/EntranceIcon/index.vue
+2
-2
index.vue
src/views/culturalRelic/index.vue
+75
-70
BlueStyle.vue
src/views/display/components/BlueStyle.vue
+0
-0
ChStyle-unit.vue
src/views/display/components/ChStyle-unit.vue
+2
-1
ChStyle.vue
src/views/display/components/ChStyle.vue
+5
-3
index.vue
src/views/display/index.vue
+12
-4
Virtural.vue
src/views/home/components/Virtural.vue
+1
-1
index-manual.vue
src/views/home/index-manual.vue
+0
-231
index-swiper.vue
src/views/home/index-swiper.vue
+0
-110
index.vue
src/views/museum/index.vue
+1
-1
index.vue
src/views/virtual/index.vue
+9
-1
没有找到文件。
src/components/EntranceIcon/index.vue
浏览文件 @
8e562ed8
...
@@ -51,8 +51,8 @@ export default {
...
@@ -51,8 +51,8 @@ export default {
height
:
2px
;
height
:
2px
;
transform
:
rotate
(
45deg
);
transform
:
rotate
(
45deg
);
position
:
absolute
;
position
:
absolute
;
right
:
-
3
px
;
right
:
-
2
px
;
top
:
-
5
px
;
top
:
-
3
px
;
}
}
}
}
</
style
>
</
style
>
src/views/culturalRelic/index.vue
浏览文件 @
8e562ed8
...
@@ -9,66 +9,66 @@
...
@@ -9,66 +9,66 @@
:span=
"2"
:span=
"2"
>
>
<el-col
:span=
"6"
>
-->
<el-col
:span=
"6"
>
-->
<el-input
<el-input
class=
"input item"
class=
"input item"
v-model=
"keyword"
v-model=
"keyword"
placeholder=
"
关键词"
placeholder=
"请输入
关键词"
@
keyup
.
enter
.
native=
"search"
@
keyup
.
enter
.
native=
"search"
clearable
clearable
>
>
</el-input>
</el-input>
<!--
</el-col>
-->
<!--
</el-col>
-->
<!--
<el-col
:span=
"6"
>
-->
<!--
<el-col
:span=
"6"
>
-->
<el-select
<el-select
class=
"type item"
class=
"type item"
v-model=
"type"
v-model=
"type"
placeholder=
"
所属类别"
placeholder=
"请选择
所属类别"
filterable
filterable
@
change=
"handleTypeChange"
@
change=
"handleTypeChange"
clearable
clearable
>
>
<el-option
<el-option
v-for=
"(value, key) in dicts.culturalRelicType"
v-for=
"(value, key) in dicts.culturalRelicType"
:key=
"key"
:key=
"key"
:label=
"value"
:label=
"value"
:value=
"key"
:value=
"key"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
<!--
</el-col>
-->
<!--
</el-col>
-->
<!--
<el-col
:span=
"6"
>
-->
<!--
<el-col
:span=
"6"
>
-->
<el-cascader
<el-cascader
class=
"years item"
class=
"years item"
v-model=
"years"
v-model=
"years"
:options=
"culturalRelicYears"
:options=
"culturalRelicYears"
:props=
"culturalRelicYearsProps"
:props=
"culturalRelicYearsProps"
placeholder=
"请选择文物年代"
placeholder=
"请选择文物年代"
filterable
filterable
@
change=
"handleYearsChange"
@
change=
"handleYearsChange"
clearable
clearable
ref=
"years"
ref=
"years"
>
>
</el-cascader>
</el-cascader>
<!--
</el-col>
-->
<!--
</el-col>
-->
<el-col
:span=
"3"
>
<el-col
:span=
"3"
>
<div
class=
"search-button"
@
click=
"search"
style=
"width: 100%"
>
<div
class=
"search-button"
@
click=
"search"
style=
"width: 100%"
>
<svg-icon
icon-class=
"search"
></svg-icon>
<svg-icon
icon-class=
"search"
></svg-icon>
检索
检索
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"3"
class=
"threeD"
@
click
.
native=
"handleClickThreeD"
>
<el-col
:span=
"3"
class=
"threeD"
@
click
.
native=
"handleClickThreeD"
>
<!--
<div
class=
"threeD"
@
click=
"handleClickThreeD"
>
<!--
<div
class=
"threeD"
@
click=
"handleClickThreeD"
>
<div
class=
"box"
>
<div
class=
"box"
>
<i
class=
"el-icon-check"
v-show=
"onlyShow3d"
></i>
<i
class=
"el-icon-check"
v-show=
"onlyShow3d"
></i>
</div>
</div>
</div>
-->
</div>
-->
<svg-icon
<svg-icon
:icon-class=
"onlyShow3d ? 'filter-s' : 'filter'"
:icon-class=
"onlyShow3d ? 'filter-s' : 'filter'"
></svg-icon>
></svg-icon>
<div
class=
"text"
>
3D
</div>
<div
class=
"text"
>
3D文物
</div>
</el-col>
</el-col>
<!--
</el-row>
-->
<!--
</el-row>
-->
</div>
</div>
<el-row
:gutter=
"40"
class=
"cr-list"
>
<el-row
:gutter=
"40"
class=
"cr-list"
>
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
<span>
{{
item
.
deptName
}}
</span>
<span>
{{
item
.
deptName
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"right"
>
<
!--
<
div
class=
"right"
>
<span
class=
"collect"
>
<span
class=
"collect"
>
<svg-icon
icon-class=
"collect"
></svg-icon>
<svg-icon
icon-class=
"collect"
></svg-icon>
<span>
{{
<span>
{{
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
<svg-icon
icon-class=
"view"
></svg-icon>
<svg-icon
icon-class=
"view"
></svg-icon>
<span>
{{
item
.
browseCount
}}
</span>
<span>
{{
item
.
browseCount
}}
</span>
</span>
</span>
</div>
</div>
-->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -337,6 +337,10 @@ $text-indent: 16px;
...
@@ -337,6 +337,10 @@ $text-indent: 16px;
height
:
214px
;
height
:
214px
;
.item
{
.item
{
margin-right
:
20px
;
margin-right
:
20px
;
&
:hover
{
-webkit-box-reflect
:
below
2px
linear-gradient
(
transparent
,
rgba
(
0
,
0
,
0
,
0
.3
));
}
}
}
.input-icon
{
.input-icon
{
height
:
100%
;
height
:
100%
;
...
@@ -349,23 +353,18 @@ $text-indent: 16px;
...
@@ -349,23 +353,18 @@ $text-indent: 16px;
.threeD
{
.threeD
{
display
:
flex
;
display
:
flex
;
cursor
:
pointer
;
cursor
:
pointer
;
font-size
:
18
px
;
font-size
:
20
px
;
color
:
#666
;
color
:
#666
;
margin-left
:
20px
;
margin-left
:
20px
;
transition
:
all
ease
.5s
;
transition
:
all
ease
0
.3s
;
.svg-icon
{
// -webkit-box-reflect: below 10px linear-gradient(transparent, rgba(0, 0, 0, 0.4));
.svg-icon
{
margin-right
:
4px
;
margin-right
:
4px
;
font-size
:
2
0
px
;
font-size
:
2
4
px
;
}
}
&
:hover
{
&
:hover
{
text-shadow
:
0
0
5px
#fff
,
-webkit-box-reflect
:
below
2px
0
0
10px
#fff
,
linear-gradient
(
transparent
,
rgba
(
0
,
0
,
0
,
0
.5
));
0
0
15px
#fff
,
0
0
20px
#2069c4
,
0
0
35px
#2069c4
,
0
0
40px
#2069c4
,
0
0
50px
#2069c4
,
0
0
75px
#2069c4
;
}
}
// .box {
// .box {
// width: 28px;
// width: 28px;
...
@@ -393,10 +392,16 @@ $text-indent: 16px;
...
@@ -393,10 +392,16 @@ $text-indent: 16px;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
background
:
url("@/assets/imgs/list/search-button-bg.png")
;
background
:
url("@/assets/imgs/list/search-button-bg.png")
transparent
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
color
:
#444
;
color
:
#444
;
font-size
:
14px
;
font-size
:
14px
;
transition
:
all
0
.2s
ease
;
&
:hover
{
-webkit-box-reflect
:
below
2px
linear-gradient
(
transparent
,
rgba
(
0
,
0
,
0
,
0
.3
));
}
.svg-icon
{
.svg-icon
{
margin-right
:
4px
;
margin-right
:
4px
;
}
}
...
...
src/views/display/components/BlueStyle.vue
浏览文件 @
8e562ed8
差异被折叠。
点击展开。
src/views/display/components/ChStyle-unit.vue
浏览文件 @
8e562ed8
...
@@ -163,6 +163,7 @@ export default {
...
@@ -163,6 +163,7 @@ export default {
}
}
.unit-node
{
.unit-node
{
width
:
1200px
;
width
:
1200px
;
// width: calc(100vw - 26%);
height
:
550px
;
height
:
550px
;
display
:
flex
;
display
:
flex
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -196,7 +197,7 @@ export default {
...
@@ -196,7 +197,7 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
200px
;
top
:
200px
;
height
:
70%
;
height
:
70%
;
padding
:
0
2
0px
;
padding
:
0
8
0px
;
}
}
}
}
}
}
...
...
src/views/display/components/ChStyle.vue
浏览文件 @
8e562ed8
...
@@ -463,7 +463,8 @@ export default {
...
@@ -463,7 +463,8 @@ export default {
// 中国风主题样式
// 中国风主题样式
/**公共样式开始 */
/**公共样式开始 */
.wrapper
{
.wrapper
{
width
:
1200px
;
// width: 1200px;
width
:
calc
(
100%
-
26%
);
//左右两边各自留13%
}
}
.custom-title
{
.custom-title
{
display
:
flex
;
display
:
flex
;
...
@@ -546,6 +547,7 @@ export default {
...
@@ -546,6 +547,7 @@ export default {
filter
:
drop-shadow
(
2px
4px
6px
#f8f8f8
);
filter
:
drop-shadow
(
2px
4px
6px
#f8f8f8
);
img
{
img
{
transform
:
translateX
(
-10px
);
transform
:
translateX
(
-10px
);
width
:
1230px
;
}
}
}
}
.left-layer
,
.left-layer
,
...
@@ -609,7 +611,7 @@ export default {
...
@@ -609,7 +611,7 @@ export default {
}
}
}
}
.tools
{
.tools
{
width
:
2
3
0px
;
width
:
2
8
0px
;
}
}
}
}
...
@@ -661,7 +663,7 @@ export default {
...
@@ -661,7 +663,7 @@ export default {
.audio
{
.audio
{
position
:
absolute
;
position
:
absolute
;
right
:
-1
0
0px
;
right
:
-1
2
0px
;
top
:
34px
;
top
:
34px
;
cursor
:
pointer
;
cursor
:
pointer
;
animation
:
audioRotate
8s
linear
infinite
;
animation
:
audioRotate
8s
linear
infinite
;
...
...
src/views/display/index.vue
浏览文件 @
8e562ed8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<el-input
<el-input
class=
"input item"
class=
"input item"
v-model=
"keyword"
v-model=
"keyword"
placeholder=
"关键词"
placeholder=
"
请输入
关键词"
@
keyup
.
enter
.
native=
"search"
@
keyup
.
enter
.
native=
"search"
clearable
clearable
>
>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<el-select
<el-select
class=
"type item"
class=
"type item"
v-model=
"type"
v-model=
"type"
placeholder=
"所属类别"
placeholder=
"
请选择
所属类别"
filterable
filterable
@
change=
"handleTypeChange"
@
change=
"handleTypeChange"
clearable
clearable
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
<span>
{{
item
.
deptName
}}
</span>
<span>
{{
item
.
deptName
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"right"
>
<
!--
<
div
class=
"right"
>
<span
class=
"collect"
>
<span
class=
"collect"
>
<svg-icon
icon-class=
"collect"
></svg-icon>
<svg-icon
icon-class=
"collect"
></svg-icon>
<span>
{{
<span>
{{
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
<svg-icon
icon-class=
"view"
></svg-icon>
<svg-icon
icon-class=
"view"
></svg-icon>
<span>
{{
item
.
browseCount
}}
</span>
<span>
{{
item
.
browseCount
}}
</span>
</span>
</span>
</div>
</div>
-->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -320,6 +320,10 @@ $text-indent: 16px;
...
@@ -320,6 +320,10 @@ $text-indent: 16px;
padding
:
90px
70px
80px
;
padding
:
90px
70px
80px
;
.item
{
.item
{
margin-right
:
20px
;
margin-right
:
20px
;
&
:hover
{
-webkit-box-reflect
:
below
2px
linear-gradient
(
transparent
,
rgba
(
0
,
0
,
0
,
0
.3
));
}
}
}
.input-icon
{
.input-icon
{
height
:
100%
;
height
:
100%
;
...
@@ -342,6 +346,10 @@ $text-indent: 16px;
...
@@ -342,6 +346,10 @@ $text-indent: 16px;
font-size
:
14px
;
font-size
:
14px
;
width
:
156px
;
width
:
156px
;
height
:
40px
;
height
:
40px
;
&
:hover
{
-webkit-box-reflect
:
below
2px
linear-gradient
(
transparent
,
rgba
(
0
,
0
,
0
,
0
.3
));
}
// height: 100%;
// height: 100%;
.svg-icon
{
.svg-icon
{
margin-right
:
4px
;
margin-right
:
4px
;
...
...
src/views/home/components/Virtural.vue
浏览文件 @
8e562ed8
...
@@ -109,7 +109,7 @@ $blue: #2069c4;
...
@@ -109,7 +109,7 @@ $blue: #2069c4;
.intro
{
.intro
{
font-family
:
"Alibaba PuHuiTi"
;
font-family
:
"Alibaba PuHuiTi"
;
color
:
#ffffff
;
color
:
#ffffff
;
margin-top
:
74
px
;
margin-top
:
110
px
;
.name
{
.name
{
margin-bottom
:
27px
;
margin-bottom
:
27px
;
font-size
:
20px
;
font-size
:
20px
;
...
...
src/views/home/index-manual.vue
deleted
100644 → 0
浏览文件 @
98812ff0
<
template
>
<div
id=
"wrap"
:style=
"
{ height: screenHeight + 'px' }">
<div
id=
"main"
:style=
"
{ top: nowTop + 'px' }">
<ul
id=
"pageUl"
type=
"circle"
v-for=
"(item, index) in buttons"
:key=
"index"
>
<li
:id=
"item"
:class=
"
{ item, active: curIndex == index + 1 }">
</li>
</ul>
<div
id=
"page1"
class=
"page"
>
<!--
<NavBar
:class=
"[curIndex != 1 ? 'navBarFixed' : 'navBar']"
/>
-->
<NavBar
class=
'navBar'
/>
<Boutique
class=
"home-item"
ref=
"Boutique"
/>
</div>
<div
id=
"page2"
class=
"page"
>
<Virtural
class=
"home-item"
ref=
"Virtural"
/>
</div>
<div
id=
"page3"
class=
"page"
>
<CulturalRelic
class=
"home-item"
ref=
"CulturalRelic"
/>
</div>
<div
id=
"page4"
class=
"page"
>
<Display
class=
"home-item"
ref=
"Display"
/>
</div>
<div
id=
"page5"
class=
"page"
>
<MuseumMap
class=
"home-item"
ref=
"MuseumMap"
/>
</div>
<!--
<div
id=
"page6"
class=
"page"
>
<Footer
/>
</div>
-->
<div
class=
"down-arrow"
>
<img
src=
"@/assets/imgs/home/down.png"
alt=
""
/>
</div>
</div>
</div>
</
template
>
<
script
>
import
NavBar
from
"@/components/NavBar"
;
import
Footer
from
"@/components/Footer"
;
import
Boutique
from
"./components/Boutique.vue"
;
import
MuseumMap
from
"./components/MuseumMap.vue"
;
import
Virtural
from
"./components/Virtural.vue"
;
import
Display
from
"./components/Display.vue"
;
import
CulturalRelic
from
"./components/CulturalRelic.vue"
;
export
default
{
components
:
{
NavBar
,
Footer
,
MuseumMap
,
Boutique
,
Virtural
,
Display
,
CulturalRelic
,
},
name
:
"Home"
,
data
()
{
return
{
screenWeight
:
0
,
// 屏幕宽度
screenHeight
:
0
,
// 屏幕高度
index
:
1
,
// 用于判断翻页
curIndex
:
1
,
// 当前页的index
startTime
:
0
,
// 翻屏起始时间
endTime
:
0
,
// 上一次翻屏结束时间
nowTop
:
0
,
// 翻屏后top的位置
pageNum
:
0
,
// 一共有多少页
main
:
Object
,
obj
:
Object
,
buttons
:
[
"pageUlLi1"
,
"pageUlLi2"
,
"pageUlLi3"
,
"pageUlLi4"
,
"pageUlLi5"
,
],
navBarFixed
:
false
,
};
},
mounted
()
{
this
.
screenWeight
=
document
.
documentElement
.
clientWidth
;
this
.
screenHeight
=
document
.
documentElement
.
clientHeight
;
this
.
main
=
document
.
getElementById
(
"main"
);
this
.
obj
=
document
.
getElementsByTagName
(
"div"
);
for
(
let
i
=
0
;
i
<
this
.
obj
.
length
;
i
++
)
{
if
(
this
.
obj
[
i
].
className
==
"page"
)
{
this
.
obj
[
i
].
style
.
height
=
this
.
screenHeight
+
"px"
;
}
}
this
.
pageNum
=
document
.
querySelectorAll
(
".page"
).
length
;
// 浏览器兼容
if
(
navigator
.
userAgent
.
toLowerCase
().
indexOf
(
"firefox"
)
!=
-
1
)
{
document
.
addEventListener
(
"DOMMouseScroll"
,
this
.
scrollFun
,
false
);
}
else
if
(
document
.
addEventListener
)
{
document
.
addEventListener
(
"mousewheel"
,
this
.
scrollFun
,
false
);
}
else
if
(
document
.
attachEvent
)
{
document
.
attachEvent
(
"onmousewheel"
,
this
.
scrollFun
);
}
else
{
document
.
onmousewheel
=
this
.
scrollFun
;
}
},
methods
:
{
scrollFun
(
event
)
{
this
.
startTime
=
new
Date
().
getTime
();
// mousewheel事件中的 “event.wheelDelta” 属性值:返回的如果是正值说明滚轮是向上滚动
// DOMMouseScroll事件中的 “event.detail” 属性值:返回的如果是负值说明滚轮是向上滚动
let
delta
=
event
.
detail
||
-
event
.
wheelDelta
;
// 如果当前滚动开始时间和上次滚动结束时间的差值小于1.5s,则不执行翻页动作,这样做是为了实现类似节流的效果
if
(
this
.
startTime
-
this
.
endTime
>
1000
)
{
if
(
delta
>
0
&&
parseInt
(
this
.
main
.
offsetTop
)
>=
-
(
this
.
screenHeight
*
(
this
.
pageNum
-
2
))
)
{
// 向下滚动
this
.
index
++
;
this
.
toPage
(
this
.
index
);
}
else
if
(
delta
<
0
&&
parseInt
(
this
.
main
.
offsetTop
)
<
0
)
{
// 向上滚动
this
.
index
--
;
this
.
toPage
(
this
.
index
);
}
// 本次翻页结束,记录结束时间,用于下次判断
this
.
endTime
=
new
Date
().
getTime
();
}
},
// 翻页
toPage
(
index
)
{
if
(
index
!=
this
.
curIndex
)
{
let
delta
=
index
-
this
.
curIndex
;
this
.
nowTop
=
this
.
nowTop
-
delta
*
this
.
screenHeight
;
this
.
curIndex
=
index
;
}
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
html
,
body
{
height
:
100%
;
}
body
,
ul
,
li
,
a
,
p
,
div
{
/*慎删*/
padding
:
0px
;
margin
:
0px
;
}
#wrap
{
overflow
:
hidden
;
width
:
100%
;
}
#main
{
position
:
relative
;
transition
:
top
1
.5s
;
}
.page
{
/*谨删*/
width
:
100%
;
margin
:
0
;
}
#pageUl
{
position
:
fixed
;
right
:
10px
;
bottom
:
50%
;
}
.active
{
color
:
red
;
}
#page1
{
position
:
relative
;
flex-direction
:
column
;
.navBar
{
position
:
absolute
;
top
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0
.25
);
// left: 0;
transition
:
all
1s
ease
;
}
.navBarFixed
{
position
:
fixed
;
top
:
0
;
z-index
:
999
;
background
:
#2069c4
;
transition
:
all
1s
ease
;
}
}
.home-item
{
height
:
100%
;
}
.down-arrow
{
position
:
fixed
;
bottom
:
20px
;
left
:
0
;
right
:
0
;
display
:
flex
;
justify-content
:
center
;
animation
:
arrowBounce
2s
infinite
;
z-index
:
999
;
}
@keyframes
arrowBounce
{
0
%
,
20
%
,
50
%
,
80
%
,
100
%
{
transform
:
translateY
(
0
);
}
40
%
{
transform
:
translateY
(
-30px
);
}
60
%
{
transform
:
translateY
(
-15px
);
}
}
</
style
>
\ No newline at end of file
src/views/home/index-swiper.vue
deleted
100644 → 0
浏览文件 @
98812ff0
<
template
>
<div>
<swiper
id=
"swiperBox"
:options=
"swiperOption"
ref=
"mySwiper"
>
<swiper-slide
class=
"swiper-slide"
>
<NavBar
class=
"NavBar"
/>
<Boutique
class=
"home-item"
ref=
"Boutique"
/>
</swiper-slide>
<swiper-slide
class=
"swiper-slide"
>
<Virtural
class=
"home-item"
ref=
"Virtural"
/>
</swiper-slide>
<swiper-slide
class=
"swiper-slide"
>
<CulturalRelic
class=
"home-item"
ref=
"CulturalRelic"
/>
</swiper-slide>
<swiper-slide
class=
"swiper-slide"
>
<Display
class=
"home-item"
ref=
"Display"
/>
</swiper-slide>
<swiper-slide
class=
"swiper-slide"
>
<MuseumMap
class=
"home-item"
ref=
"MuseumMap"
/>
</swiper-slide>
<div
class=
"swiper-pagination"
slot=
"pagination"
></div>
</swiper>
<Footer/>
</div>
</
template
>
<
script
>
import
NavBar
from
"@/components/NavBar"
;
import
Footer
from
"@/components/Footer"
;
import
Boutique
from
"./components/Boutique.vue"
;
import
MuseumMap
from
"./components/MuseumMap.vue"
;
import
Virtural
from
"./components/Virtural.vue"
;
import
Display
from
"./components/Display.vue"
;
import
CulturalRelic
from
"./components/CulturalRelic.vue"
;
import
{
swiper
,
swiperSlide
}
from
"vue-awesome-swiper"
;
export
default
{
components
:
{
NavBar
,
Footer
,
swiper
,
swiperSlide
,
MuseumMap
,
Boutique
,
Virtural
,
Display
,
CulturalRelic
,
},
name
:
"Home"
,
data
()
{
return
{
list
:
[
1
,
2
,
3
,
4
],
swiperOption
:
{
notNextTick
:
true
,
//notNextTick是一个组件自有属性,如果notNextTick设置为true,组件则不会通过NextTick来实例化swiper,也就意味着你可以在第一时间获取到swiper对象,假如你需要刚加载遍使用获取swiper对象来做什么事,那么这个属性一定要是true
direction
:
"vertical"
,
//垂直方向移动
grabCursor
:
true
,
//鼠标覆盖Swiper时指针会变成手掌形状,拖动时指针会变成抓手形状
setWrapperSize
:
true
,
//Swiper使用flexbox布局(display: flex),开启这个设定会在Wrapper上添加等于slides相加的宽或高,在对flexbox布局的支持不是很好的浏览器中可能需要用到。
autoHeight
:
true
,
//自动高度。设置为true时,wrapper和container会随着当前slide的高度而发生变化
slidesPerView
:
1
,
//设置slider容器能够同时显示的slides数量(carousel模式)。可以设置为数字(可为小数,小数不可loop),或者 'auto'则自动根据slides的宽度来设定数量。loop模式下如果设置为'auto'还需要设置另外一个参数loopedSlides。
mousewheel
:
true
,
//开启鼠标滚轮控制Swiper切换。可设置鼠标选项,默认值false
mousewheelControl
:
true
,
//同上
height
:
window
.
innerHeight
,
// 高度设置,占满设备高度
resistanceRatio
:
0
,
//抵抗率。边缘抵抗力的大小比例。值越小抵抗越大越难将slide拖离边缘,0时完全无法拖离。本业务需要
observeParents
:
true
,
//将observe应用于Swiper的父元素。当Swiper的父元素变化时,例如window.resize,Swiper更新
// 分页器
pagination
:
{
el
:
".swiper-pagination"
,
bulletClass
:
"my-bullet"
,
//自定义分页器样式
bulletActiveClass
:
"my-bullet-active"
,
//自定义当前选中样式
clickable
:
true
,
//点击切换轮播
},
},
};
},
computed
:
{
swiper
()
{
return
this
.
$refs
.
mySwiper
.
swiper
;
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.my-bullet
{
display
:
block
;
width
:
11px
;
height
:
11px
;
background
:
rgba
(
255
,
255
,
255
,
0
.5
);
border-radius
:
50%
;
margin
:
10px
0
;
}
.my-bullet-active
{
width
:
11px
;
height
:
25px
;
background
:
#fff
;
border-radius
:
20px
;
margin
:
10px
0
;
}
.home-item
{
height
:
100vh
;
width
:
100%
;
}
.navBar
{
position
:
absolute
;
top
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0
.25
);
// left: 0;
transition
:
all
1s
ease
;
}
</
style
>
\ No newline at end of file
src/views/museum/index.vue
浏览文件 @
8e562ed8
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
class=
"input item"
class=
"input item"
suffix-icon=
"el-icon-search"
suffix-icon=
"el-icon-search"
v-model=
"keyword"
v-model=
"keyword"
placeholder=
"关键词"
placeholder=
"
请输入
关键词"
@
keyup
.
enter
.
native=
"search"
@
keyup
.
enter
.
native=
"search"
clearable
clearable
>
>
...
...
src/views/virtual/index.vue
浏览文件 @
8e562ed8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<el-input
<el-input
class=
"input item"
class=
"input item"
v-model=
"keyword"
v-model=
"keyword"
placeholder=
"关键词"
placeholder=
"
请输入
关键词"
@
keyup
.
enter
.
native=
"search"
@
keyup
.
enter
.
native=
"search"
clearable
clearable
>
>
...
@@ -286,6 +286,10 @@ $text-indent: 16px;
...
@@ -286,6 +286,10 @@ $text-indent: 16px;
margin-bottom
:
63px
;
margin-bottom
:
63px
;
.item
{
.item
{
margin-right
:
20px
;
margin-right
:
20px
;
&
:hover
{
-webkit-box-reflect
:
below
2px
linear-gradient
(
transparent
,
rgba
(
0
,
0
,
0
,
0
.3
));
}
}
}
.input-icon
{
.input-icon
{
height
:
100%
;
height
:
100%
;
...
@@ -307,6 +311,10 @@ $text-indent: 16px;
...
@@ -307,6 +311,10 @@ $text-indent: 16px;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
color
:
#444
;
color
:
#444
;
font-size
:
14px
;
font-size
:
14px
;
&
:hover
{
-webkit-box-reflect
:
below
2px
linear-gradient
(
transparent
,
rgba
(
0
,
0
,
0
,
0
.3
));
}
.svg-icon
{
.svg-icon
{
margin-right
:
4px
;
margin-right
:
4px
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论