移风店大屏前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

333 lines
9.3 KiB

2 years ago
<template>
1 year ago
<div style="width: 100%; height: 100%">
<div class="bg_img">
<!-- -->
<section>
<!-- <img src="@/assets/images/index/whyf/left.png" alt=""> -->
<div class="left"></div>
<div class="body">
<div class="header">
<span></span><span>{{ tabList[active].name }}</span
><span></span>
</div>
<div class="content">
<div class="synopsis" v-html="selfObj.content"></div>
<div class="imgs">
<img
:src="item"
alt=""
v-for="item in selfObj.imageList"
:key="item"
/>
2 years ago
</div>
1 year ago
</div>
2 years ago
</div>
1 year ago
<div class="right"></div>
<!-- <img src="@/assets/images/index/whyf/right.png" alt=""> -->
</section>
<div class="tabs">
<img src="@/assets/images/index/whyf/tab-left.png" alt="" />
<section>
<div
:class="active == index ? 'active' : 'item'"
v-for="(item, index) in tabList"
:key="index"
@click="handelTab(index)"
>
<img :src="item.cover" alt="" />
<div class="bot">{{ item.name }}</div>
</div>
</section>
<img src="@/assets/images/index/whyf/tab-right.png" alt="" />
</div>
2 years ago
</div>
1 year ago
</div>
2 years ago
</template>
<script>
1 year ago
import { cultureLegacyList } from "@/api/home";
2 years ago
export default {
1 year ago
data() {
return {
tabList: [
{
name: "大欧鸟笼制作技艺",
src: require("@/assets/images/resource/whyf/1.jpg"),
},
{
name: "虎头鞋虎头帽",
src: require("@/assets/images/resource/whyf/2.jpg"),
},
{
name: "毛子埠升制作技艺",
src: require("@/assets/images/resource/whyf/5.jpg"),
},
{
name: "大沽河的传说",
src: require("@/assets/images/resource/whyf/7.jpg"),
imageList: [
require("@/assets/images/resource/whyf/7.jpg"),
require("@/assets/images/resource/whyf/9.jpg"),
require("@/assets/images/resource/whyf/10.jpg"),
],
content:
"<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2008年公布为第一批即墨市级非物质文化遗产名录。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;《大沾河的传说》,起始于春秋战国时期,距今已有二千余年历史。其流传区域.以即墨市移风店镇为中心,涉及到沿大洁河周边镇以及平度、胶州、莱西等区市。同时,有些故事在东北三省等地区也广为流传。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;移风店镇历史您久,文化底蕴丰厚,新石器时代的龙山文化遗址、春秋棠邑古城遗址及即墨县抗日民主政府旧址均位于该镇,是即墨柳腔的发源地之一。该镇民风淳朴,人民群众勤劳朴实,有传统的布艺加工、草编等民间手工技艺,并流传着许多美丽的传说,其主要故事有:“大沽河的传说&quot;(两个版本)、“入洞房的传说&quot;、“老人是宝”、“三湾崖的传说&quot;、“三个日头”、“挂甲树”、“泰山石敢当二则”、“天地传说&quot;“神医乔范”、“油匠口子”、“徐仙姑传说”、“好人好报”、“吕洞宾典故”、“虎头鞋与虎头帽的传说”、&quot;李师傅的传说”、&quot;张柄寺的传说&quot;等。这些故事经当地百姓口口相传,深深地影响了一代又一代的大沽河人。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;《大沽河的传说》,具有浓厚的民间文化底蕴,脍炙人口的故事都充分体现了沽河沿岸人民的勒劳朴实、宽厚仁爱的传统道德观念和坚忍不拔的奋斗精神</p><p><br/></p>",
},
{
name: "陈仙姑传说",
src: require("@/assets/images/resource/whyf/8.jpg"),
},
{
name: "金吉友拳法",
src: require("@/assets/images/resource/whyf/3.jpg"),
},
{
name: "张院簸箕制作技艺",
src: require("@/assets/images/resource/whyf/4.jpg"),
},
{
name: "上泊金银器打造工艺",
src: require("@/assets/images/resource/whyf/6.jpg"),
},
],
active: 7,
selfObj: {},
};
},
created() {
cultureLegacyList().then((res) => {
this.tabList = res.data.list;
this.selfObj = {
content: this.tabList[7].content,
imageList: this.tabList[7].imageList,
};
});
},
mounted() {},
methods: {
handelTab(index) {
this.active = index;
this.selfObj = {
content: this.tabList[index].content,
imageList: this.tabList[index].imageList,
};
},
1 year ago
},
components: {},
computed: {},
watch: {},
};
2 years ago
</script>
<style lang="scss" scoped>
.bg_img {
1 year ago
background: url("~@/assets/images/index/whyf/bg.jpg");
background-size: 100% 100%;
width: 100%;
height: 100%;
@include flex(column);
justify-content: center;
align-items: center;
position: relative;
section {
width: 1488px;
height: 630px;
margin-top: 106px;
2 years ago
position: relative;
1 year ago
display: flex;
justify-content: center;
2 years ago
1 year ago
> .left,
.right {
width: 174px;
height: 650px;
position: relative;
z-index: 10;
&::after {
content: "";
width: 36px;
height: 36px;
background: url("~@/assets/images/index/whyf/arrows.png");
background-size: 100% 100%;
position: absolute;
bottom: 50%;
}
}
2 years ago
1 year ago
.left {
left: 20px;
background: url("~@/assets/images/index/whyf/left.png");
background-size: 100% 100%;
2 years ago
1 year ago
&::after {
left: 23%;
transform: translate(0, 15px) rotate(177deg);
}
}
2 years ago
1 year ago
> .right {
right: 20px;
background: url("~@/assets/images/index/whyf/right.png");
background-size: 100% 100%;
2 years ago
1 year ago
&::after {
right: 23%;
transform: translate(0, 15px) rotate(2deg);
}
}
2 years ago
1 year ago
.body {
width: 1180px;
height: 630px;
background: url("~@/assets/images/index/whyf/content_bg.png");
background-size: 100% 100%;
overflow: hidden;
2 years ago
1 year ago
.header {
height: 110px;
display: flex;
justify-content: center;
align-items: center;
1 year ago
:nth-child(1) {
flex: 1;
height: 10px;
background: linear-gradient(to right, #1a5fc0, #9ac9ea);
background-position: -24px 0;
position: relative;
&::after {
content: "";
position: absolute;
right: 0;
top: 0;
width: 10px;
height: 10px;
background: #ffd4a2;
}
}
1 year ago
:nth-child(2) {
width: fit-content;
color: #f2f8fc;
font-size: 30px;
font-family: zaozigongfang;
text-align: center;
margin: 0 20px;
}
1 year ago
:nth-child(3) {
height: 10px;
flex: 1;
background: linear-gradient(to left, #1a5fc0, #9ac9ea);
position: relative;
background-position: 24px 0;
&::after {
content: "";
position: absolute;
left: 0;
top: 0;
width: 10px;
height: 10px;
background: #ffd4a2;
}
}
}
.content {
flex: 1;
padding: 0 80px;
height: 500px;
overflow: hidden;
overflow-y: scroll;
box-sizing: border-box;
color: #fff;
line-height: 1.8;
&::-webkit-scrollbar {
width: 3px;
}
2 years ago
1 year ago
&::-webkit-scrollbar-track {
border-radius: 10px;
background: rgba(12, 129, 254, 0.24);
}
2 years ago
1 year ago
&::-webkit-scrollbar-thumb {
border-radius: 10px;
background: linear-gradient(270deg, #0063fe, #0095ff);
2 years ago
}
1 year ago
}
&::after {
content: "";
width: 20px;
height: 20px;
background: url("~@/assets/images/index/whyf/arrows.png");
background-size: 100% 100%;
position: absolute;
bottom: -15px;
left: 50%;
transform: rotate(268deg);
}
}
}
2 years ago
1 year ago
.tabs {
width: 100%;
height: 146px;
margin-top: 43px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 60px;
box-sizing: border-box;
z-index: 10;
> img {
width: 64px;
height: 64px;
2 years ago
}
1 year ago
> section {
flex: 1;
display: flex;
height: 100%;
align-items: center;
justify-content: center;
margin: 0;
.item,
.active {
width: 190px;
2 years ago
height: 146px;
1 year ago
cursor: pointer;
@include flex(column);
color: #bdceea;
2 years ago
align-items: center;
1 year ago
background: rgba(9, 41, 106, 0.66);
margin-right: 8px;
padding: 8px 10px;
2 years ago
box-sizing: border-box;
1 year ago
border: 1px solid #9fccff;
2 years ago
1 year ago
img {
min-width: 173px;
min-height: 106px;
margin-bottom: 6px;
2 years ago
}
1 year ago
}
2 years ago
1 year ago
.active {
width: 260px;
height: 166px;
position: relative;
top: -10px;
}
2 years ago
}
1 year ago
}
}
</style>