|
@@ -1,12 +1,16 @@
|
|
|
<template>
|
|
|
- <div class="unit-list">
|
|
|
+ <div
|
|
|
+ class="unit-list"
|
|
|
+ :class="[`type-${$route.query.themeIdx}`]"
|
|
|
+ >
|
|
|
<main>
|
|
|
<h3 class="foreword">
|
|
|
前言
|
|
|
</h3>
|
|
|
- <p class="foreword">
|
|
|
- {{ data?.preface }}
|
|
|
- </p>
|
|
|
+ <div
|
|
|
+ class="foreword normal-txt"
|
|
|
+ v-html="data?.preface"
|
|
|
+ />
|
|
|
<ul>
|
|
|
<li
|
|
|
v-for="(item, idx) in data?.list"
|
|
@@ -19,13 +23,16 @@
|
|
|
},
|
|
|
})"
|
|
|
>
|
|
|
- <h3>{{ item.label }}</h3>
|
|
|
- <p>{{ item.info }}</p>
|
|
|
+ <h3>第{{ int2zh(idx) }}部分{{ item.label }}</h3>
|
|
|
+ <div
|
|
|
+ class="normal-txt"
|
|
|
+ v-html="item.info"
|
|
|
+ />
|
|
|
<button class="detail-entry">
|
|
|
藏品鉴赏
|
|
|
<img
|
|
|
class="arrow"
|
|
|
- src="@/assets/images/red-arrow-right.png"
|
|
|
+ :src="require(`@/assets/images/entry-arrow-${$route.query.themeIdx}.png`)"
|
|
|
alt=""
|
|
|
draggable="false"
|
|
|
>
|
|
@@ -53,6 +60,9 @@ export default {
|
|
|
console.log(this.data, 'dskfjslkfj')
|
|
|
},
|
|
|
methods: {
|
|
|
+ int2zh(idx) {
|
|
|
+ return idx
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -67,14 +77,13 @@ export default {
|
|
|
background-position: center center;
|
|
|
overflow: auto;
|
|
|
&::-webkit-scrollbar { width: 0; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
|
|
|
-
|
|
|
h3{
|
|
|
font-size: 30px;
|
|
|
font-family: KingHwa_OldSong-Regular, KingHwa_OldSong;
|
|
|
font-weight: 400;
|
|
|
color: #404036;
|
|
|
}
|
|
|
- p{
|
|
|
+ .normal-txt, :deep(p){
|
|
|
font-size: 16px;
|
|
|
font-family: KingHwa_OldSong-Regular, KingHwa_OldSong;
|
|
|
font-weight: 400;
|
|
@@ -91,7 +100,7 @@ export default {
|
|
|
margin-top: 46px;
|
|
|
margin-bottom: 32px;
|
|
|
}
|
|
|
- >p.foreword{
|
|
|
+ >div.foreword{
|
|
|
margin-bottom: 90px;
|
|
|
}
|
|
|
>ul{
|
|
@@ -120,7 +129,7 @@ export default {
|
|
|
background-position: center center;
|
|
|
}
|
|
|
}
|
|
|
- >p{
|
|
|
+ >.normal-txt{
|
|
|
margin-bottom: 33px;
|
|
|
}
|
|
|
>button.detail-entry{
|
|
@@ -137,7 +146,7 @@ export default {
|
|
|
margin-top: 42px;
|
|
|
margin-bottom: 32px;
|
|
|
}
|
|
|
- >p{
|
|
|
+ >.normal-txt{
|
|
|
margin-bottom: 99px;
|
|
|
}
|
|
|
>button.detail-entry{
|
|
@@ -159,4 +168,75 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.unit-list.type-1{
|
|
|
+ background-image: url(@/assets/images/unit-list-bg-1.jpg);
|
|
|
+ &::-webkit-scrollbar { width: 0; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
|
|
|
+ h3{
|
|
|
+ }
|
|
|
+ p{
|
|
|
+ }
|
|
|
+ >main{
|
|
|
+ >h3.foreword{
|
|
|
+ }
|
|
|
+ .normal-txt, :deep(p){
|
|
|
+ }
|
|
|
+ >ul{
|
|
|
+ >li{
|
|
|
+ &:hover{
|
|
|
+ background-color: rgba(57, 106, 168, 0.55);
|
|
|
+ >h3{
|
|
|
+ &::before{
|
|
|
+ content: '';
|
|
|
+ display: inline-block;
|
|
|
+ position: absolute;
|
|
|
+ left: -23px;
|
|
|
+ top: 50%;
|
|
|
+ transform: translate(-100%, -70%);
|
|
|
+ width: 78px;
|
|
|
+ height: 28px;
|
|
|
+ background-image: url(@/assets/images/title-deco-left-1.png);
|
|
|
+ background-size: contain;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: center center;
|
|
|
+ }
|
|
|
+ &::after{
|
|
|
+ content: '';
|
|
|
+ display: inline-block;
|
|
|
+ position: absolute;
|
|
|
+ right: -23px;
|
|
|
+ top: 50%;
|
|
|
+ transform: translate(100%, -70%);
|
|
|
+ width: 78px;
|
|
|
+ height: 28px;
|
|
|
+ background-image: url(@/assets/images/title-deco-right-1.png);
|
|
|
+ background-size: contain;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: center center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ >.normal-txt{
|
|
|
+ }
|
|
|
+ >button.detail-entry{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ >img.arrow{
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ >h3{
|
|
|
+ }
|
|
|
+ >.normal-txt{
|
|
|
+ }
|
|
|
+ >button.detail-entry{
|
|
|
+ display: none;
|
|
|
+ background-image: none;
|
|
|
+ color: #fff;
|
|
|
+ border: 1px dotted #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|