Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_page
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_page
Commits
84512d12
提交
84512d12
authored
8月 19, 2022
作者:
Anix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
精品展首页调整
上级
986d8eef
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
166 行增加
和
6 行删除
+166
-6
banner.jpg
src/assets/imgs/banner.jpg
+0
-0
index.vue
src/views/boutique/index.vue
+165
-5
index.vue
src/views/culturalRelic/index.vue
+1
-1
没有找到文件。
src/assets/imgs/banner.jpg
0 → 100644
浏览文件 @
84512d12
289.5 KB
src/views/boutique/index.vue
浏览文件 @
84512d12
<
template
>
<div
class=
"boutique"
>
<!--
<NavBar
/>
-->
<
h1>
精品展
</h1
>
<
!--
<h1>
精品展
</h1>
--
>
<!--
<Footer
/>
-->
<div
class=
"boutique-header"
>
<img
src=
"@/assets/imgs/banner.jpg"
width=
"100%"
/>
<div
class=
"boutique-title"
>
<p>
多彩贵州
博物盛筵
</p>
<span>
—— 精品展
</span>
</div>
<ul
class=
"tabs"
>
<li
v-for=
"node in tabs"
:key=
"node.tab"
@
click=
"handleTabClick(node)"
>
<div
:class=
"
{ active: activeTab === node.tab }">
<span>
{{
node
.
name
}}
</span>
</div>
</li>
</ul>
</div>
<div
class=
"boutique-content"
>
<div
class=
"focus-content"
>
<p>
{{
content
.
title
}}
</p>
</div>
</div>
</div>
</
template
>
...
...
@@ -12,15 +33,154 @@ import Footer from "@/components/Footer";
export
default
{
name
:
"Boutique"
,
components
:
{
NavBar
,
Footer
},
data
()
{
return
{
tabs
:
[
{
tab
:
"sdcs"
,
name
:
"四渡赤水"
},
{
tab
:
"smgz"
,
name
:
"神秘贵州"
},
{
tab
:
"jyycc"
,
name
:
"技艺与传承"
},
{
tab
:
"ylgdyw"
,
name
:
"夜郎国的疑问"
},
{
tab
:
"xxx"
,
name
:
"XXXXX"
},
],
activeTab
:
"sdcs"
,
// content: { title: "四渡赤水" }
};
},
computed
:
{
content
()
{
let
obj
=
Object
.
create
(
null
);
const
{
tabs
,
activeTab
}
=
this
;
let
node
=
tabs
.
find
((
n
)
=>
n
.
tab
===
activeTab
);
node
&&
(
obj
.
title
=
node
.
name
);
return
obj
;
},
},
methods
:
{
handleTabClick
(
data
)
{
this
.
activeTab
=
data
.
tab
;
},
},
};
</
script
>
<
style
lang=
'scss'
scoped
>
.boutique
{
<
style
lang=
"scss"
scoped
>
.boutique
{
// display: flex;
// justify-content: center;
// height: 100vh;
// align-items: center;
// background-color: #2069c4;
min-height
:
calc
(
100%
-
300px
);
.boutique-header
{
position
:
relative
;
// height: 620px;
overflow
:
hidden
;
>
img
{
position
:
absolute
;
width
:
100%
;
left
:
0
;
top
:
0
;
z-index
:
0
;
}
}
.boutique-title
{
height
:
500px
;
position
:
relative
;
overflow
:
hidden
;
z-index
:
1
;
>
p
{
margin
:
0
;
font-size
:
46px
;
font-weight
:
600
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
letter-spacing
:
12px
;
}
>
span
{
font-weight
:
600
;
font-family
:
"宋体"
;
font-size
:
24px
;
position
:
absolute
;
top
:
65%
;
left
:
60%
;
color
:
#666
;
}
}
ul
.tabs
{
display
:
flex
;
justify-content
:
space-between
;
position
:
relative
;
z-index
:
1
;
padding
:
10px
0
;
>
li
{
flex
:
1
;
>
div
{
text-align
:
center
;
>
span
{
font-size
:
20px
;
color
:
#333
;
font-weight
:
600
;
font-family
:
"楷体"
;
&
:hover
{
cursor
:
pointer
;
position
:
relative
;
color
:
#003fa7
;
&
:
:
after
{
content
:
""
;
position
:
absolute
;
left
:
0
;
width
:
100%
;
bottom
:
-10px
;
border-bottom
:
3px
solid
#2069c4
;
border-radius
:
30px
;
}
}
}
&
.active
{
>
span
{
position
:
relative
;
color
:
#003fa7
;
text-shadow
:
6px
2px
2px
#999
;
&
:
:
after
{
content
:
""
;
position
:
absolute
;
left
:
0
;
width
:
100%
;
bottom
:
-10px
;
border-bottom
:
3px
solid
#2069c4
;
border-radius
:
30px
;
}
}
}
}
}
}
.boutique-content
{
.focus-content
{
padding
:
20px
;
margin
:
20px
;
box-shadow
:
1px
12px
10px
1px
#ddd
;
margin-top
:
0
;
min-height
:
600px
;
display
:
flex
;
justify-content
:
center
;
height
:
100vh
;
align-items
:
center
;
background-color
:
#2069c4
;
font-size
:
30px
;
font-weight
:
600
;
background
:
rgb
(
239
247
255
);
>
p
{
margin
:
0
;
}
}
}
}
</
style
>
src/views/culturalRelic/index.vue
浏览文件 @
84512d12
...
...
@@ -99,7 +99,7 @@
/>
</div>
<div
class=
"showIcon"
v-if=
"item && item.url3d"
>
<img
src=
"@/assets/imgs/cr/3
D
.png"
class=
"icon"
/>
<img
src=
"@/assets/imgs/cr/3
d
.png"
class=
"icon"
/>
<div
class=
"text"
@
click
.
stop=
"handleTo3D(item.url3d)"
>
点击查看3D链接
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论