提交 0cc32421 authored 作者: 龙菲's avatar 龙菲

优化页面

上级 00fc639a
......@@ -210,7 +210,7 @@
v-if="relateRelics.length > 0"
>
<div class="intro-title">
<svg-icon icon-class="glww"></svg-icon>
<svg-icon icon-class="glww" style="font-size: 30px"></svg-icon>
<span>相关文物</span>
</div>
<el-row :gutter="26">
......@@ -224,9 +224,9 @@
@click="handleToCr(item)"
>
<img :src="item.faceImagePressUrl" alt="" />
<div class="cr-name-intro" v-if="index == 0">
<div class="cr-name-intro">
<div class="cr-name">{{ item.name }}</div>
<div class="cr-intro">{{ item.intro }}</div>
<!-- <div class="cr-intro" v-html="item.intro"></div> -->
</div>
</div>
</el-col>
......@@ -458,6 +458,14 @@ export default {
closeImgViewer() {
this.imgViewerVisible = false;
},
handleToCr(item) {
const { crId } = item;
const newPage = this.$router.resolve({
path: "/culturalRelic/" + crId,
});
window.open(newPage.href, "_blank");
},
},
};
</script>
......@@ -627,6 +635,7 @@ $blue: #2069c4;
margin-right: 50px;
flex: 1;
overflow: hidden;
position: relative;
// .imagesVo-image-container {
// // position: relative;
......@@ -782,56 +791,96 @@ $blue: #2069c4;
text-indent: 40px;
}
.el-col {
&:first-child {
.img-container {
width: 100%;
height: 460px;
position: relative;
.cr-name-intro {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
padding: 100px 28px 50px;
.img-container {
width: 100%;
height: 460px;
position: relative;
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0.8),
rgba(0, 0, 0, 0.1)
);
.cr-name {
font-size: 48px;
font-weight: bold;
color: #ffffff;
text-align: center;
margin-bottom: 40px;
}
.cr-intro {
font-size: 16px;
font-weight: 400;
color: #ccc;
text-indent: 32px;
line-height: 40px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
}
.cr-name-intro {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
// padding: 100px 28px 50px;
display: flex;
justify-content: center;
align-items: center;
transition: all ease 0.5s;
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0.8),
rgba(0, 0, 0, 0.1)
);
.cr-name {
font-size: 48px;
font-weight: bold;
color: #ffffff;
text-align: center;
margin-bottom: 40px;
transition: all 0.5s ease;
}
img {
width: 100%;
height: 100%;
.cr-intro {
font-size: 16px;
font-weight: 400;
color: #ccc;
text-indent: 32px;
line-height: 40px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
}
}
img {
width: 100%;
height: 100%;
}
}
&:first-child {
.cr-name-intro {
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0.8),
rgba(0, 0, 0, 0.1)
);
}
}
&:not(&:first-child) {
margin-bottom: 30px;
&:hover {
.cr-name {
opacity: 1;
}
.cr-name-intro {
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0.8),
rgba(0, 0, 0, 0.1)
);
}
}
.cr-name {
font-size: 18px;
opacity: 0;
}
.cr-intro {
display: none;
}
.img-container {
height: 214px;
}
.cr-name-intro {
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0),
rgba(0, 0, 0, 0)
);
}
}
}
.img-container {
......
......@@ -202,7 +202,7 @@ export default {
return {
list: {
records: [],
size: 20,
size: 15,
current: 1,
total: 0,
},
......@@ -277,11 +277,11 @@ export default {
},
handleClick(item) {
console.log(item);
const { crId } = item;
this.$router.push({
const newPage = this.$router.resolve({
path: "culturalRelic/" + crId,
});
window.open(newPage.href, "_blank");
},
handleClickThreeD() {
this.onlyShow3d = !this.onlyShow3d;
......@@ -391,7 +391,7 @@ $text-indent: 16px;
.search-button {
cursor: pointer;
width: 156px;
height: 40px;
height: 54px;
display: flex;
justify-content: center;
align-items: center;
......@@ -495,7 +495,7 @@ $text-indent: 16px;
transition: all 0.5s ease;
background: #fff;
.name {
font-size: 18px;
font-size: 22px;
font-weight: bold;
color: #2069c4;
margin-bottom: 18px;
......@@ -590,7 +590,7 @@ $text-indent: 16px;
border-radius: 0;
background: url("@/assets/imgs/list/input-border.png");
background-size: 100% 100%;
height: 54px;
&::placeholder {
text-indent: 10px;
color: #999;
......@@ -613,7 +613,7 @@ $text-indent: 16px;
width: 28px;
height: 28px;
border-radius: 50%;
background: #77a7c9;
background: #2069c4;
min-width: 0;
}
.active {
......
......@@ -12,7 +12,7 @@
v-if="displayDetail.imagesVo && displayDetail.imagesVo.length > 0"
>
<el-image
:src="$getFullUrl(displayDetail.faceImagePressUrl)"
:src="$getFullUrl(displayDetail.faceImageUrl)"
fit="cover"
></el-image>
</div>
......@@ -337,9 +337,9 @@
:src="item.faceImagePressUrl || item.faceImageUrl"
alt=""
/>
<div class="cr-name-intro" v-if="index == 0">
<div class="cr-name-intro">
<div class="cr-name">{{ item.name }}</div>
<div class="cr-intro">{{ item.intro }}</div>
<!-- <div class="cr-intro" v-html="item.intro"></div> -->
</div>
</div>
</el-col>
......@@ -885,7 +885,7 @@ $blue: #2069c4;
display: flex;
}
.unit-content-menu {
width:460px;
width: 460px;
margin-right: 40px;
background-image: url("@/assets/imgs/display/normal/bg.png");
background-size: 1%;
......@@ -930,53 +930,82 @@ $blue: #2069c4;
background-size: 1%;
padding: 50px 0;
.el-col {
&:first-child {
.img-container {
width: 100%;
height: 460px;
position: relative;
.img-container {
width: 100%;
height: 460px;
position: relative;
.cr-name-intro {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
padding: 100px 28px 50px;
// background-image: linear-gradient(
// to top,
// rgba(0, 0, 0, 0.8),
// rgba(0, 0, 0, 0.1)
// );
.cr-name {
font-size: 48px;
font-weight: bold;
color: #ffffff;
text-align: center;
margin-bottom: 40px;
transition: all 0.5s ease;
}
.cr-intro {
font-size: 16px;
font-weight: 400;
color: #ccc;
text-indent: 32px;
line-height: 40px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
}
}
img {
width: 100%;
height: 100%;
}
}
&:first-child {
.cr-name-intro {
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0.8),
rgba(0, 0, 0, 0.1)
);
}
}
&:not(&:first-child) {
margin-bottom: 30px;
&:hover {
.cr-name {
opacity: 1;
}
.cr-name-intro {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
padding: 100px 28px 50px;
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0.8),
rgba(0, 0, 0, 0.1)
);
.cr-name {
font-size: 48px;
font-weight: bold;
color: #ffffff;
text-align: center;
margin-bottom: 40px;
}
.cr-intro {
font-size: 16px;
font-weight: 400;
color: #ccc;
text-indent: 32px;
line-height: 40px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
}
}
img {
width: 100%;
height: 100%;
}
}
}
&:not(&:first-child) {
margin-bottom: 30px;
.cr-name {
font-size: 18px;
opacity: 0;
}
.cr-intro {
display: none;
}
// .cr-name-intro {
// background-image: none;
// }
.img-container {
height: 214px;
}
......@@ -1033,8 +1062,8 @@ $blue: #2069c4;
color: $blue;
}
}
.is-current{
.el-tree-node__content{
.is-current {
.el-tree-node__content {
background-color: #fff;
color: $blue;
}
......
......@@ -52,18 +52,17 @@
</div>
<el-row :gutter="40" class="cr-list">
<el-col
:span="item.status==1?8:0"
:span="item.status == 1 ? 8 : 0"
class="cr-item"
@click.native="handleClick(item)"
@mouseenter.native="handleEnterImg(item)"
@mouseleave.native="handleLeaveImg(item)"
v-for="(item, index) in list.records"
:key="index"
>
<div
class="container wow animate__animated animate__fadeInUp"
v-if="item.status==1"
v-if="item.status == 1"
>
<div class="img-container">
<img
......@@ -179,7 +178,7 @@ export default {
return {
list: {
records: [],
size: 20,
size: 15,
current: 1,
total: 0,
},
......@@ -243,11 +242,11 @@ export default {
},
handleClick(item) {
console.log(item);
const { themeType, exhibitionId } = item;
this.$router.push({
const newPage = this.$router.resolve({
path: `display/${themeType}/${exhibitionId}`,
});
window.open(newPage.href, "_blank");
},
defImg(e) {
e.target.src = require("@/assets/404_images/no-pic.png");
......@@ -348,7 +347,7 @@ $text-indent: 16px;
color: #444;
font-size: 14px;
width: 156px;
height: 40px;
height: 54px;
&:hover {
-webkit-box-reflect: below 2px
linear-gradient(transparent, rgba(0, 0, 0, 0.3));
......@@ -442,8 +441,8 @@ $text-indent: 16px;
padding: 36px 30px;
transition: all 0.5s ease;
background: #fff;
.name {
font-size: 18px;
.name {
font-size: 22px;
font-weight: bold;
color: #2069c4;
margin-bottom: 18px;
......@@ -455,8 +454,11 @@ $text-indent: 16px;
display: flex;
align-items: flex-end;
justify-content: space-between;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.left {
flex: 1;
// flex: 1;
.deptName {
font-size: 14px;
......@@ -510,7 +512,7 @@ $text-indent: 16px;
border-radius: 0;
background: url("@/assets/imgs/list/input-border.png");
background-size: 100% 100%;
height: 54px;
&::placeholder {
text-indent: 10px;
color: #999;
......@@ -532,7 +534,7 @@ $text-indent: 16px;
width: 28px;
height: 28px;
border-radius: 50%;
background: #77a7c9;
background: #2069c4;
min-width: 0;
}
.active {
......
......@@ -7,8 +7,8 @@
<div class="wrapper">
<div class="content wow animate__animated animate__fadeIn">
<div class="name">{{ curMuseum.name }}</div>
<div class="intro">
{{ curMuseum.intro }}
<div class="intro" v-html="curMuseum.intro">
</div>
<!-- <div
class="entrance"
......
......@@ -282,7 +282,7 @@ $text-indent: 16px;
.search-button {
cursor: pointer;
width: 156px;
height: 40px;
height: 54px;
display: flex;
justify-content: center;
align-items: center;
......@@ -379,8 +379,8 @@ $text-indent: 16px;
padding: 36px 30px;
transition: all 0.5s ease;
background: #fff;
.name {
font-size: 18px;
.name {
font-size: 22px;
font-weight: bold;
color: #2069c4;
margin-bottom: 18px;
......@@ -422,7 +422,7 @@ $text-indent: 16px;
border-radius: 0;
background: url("@/assets/imgs/list/input-border.png");
background-size: 100% 100%;
height: 54px;
&::placeholder {
text-indent: 10px;
color: #999;
......@@ -440,7 +440,7 @@ $text-indent: 16px;
width: 28px;
height: 28px;
border-radius: 50%;
background: #77a7c9;
background: #2069c4;
min-width: 0;
}
.active {
......
......@@ -306,7 +306,7 @@ $text-indent: 16px;
.search-button {
cursor: pointer;
width: 156px;
height: 40px;
height: 54px;
display: flex;
justify-content: center;
align-items: center;
......@@ -411,8 +411,8 @@ $text-indent: 16px;
padding: 36px 30px;
transition: all 0.5s ease;
background: #fff;
.name {
font-size: 18px;
.name {
font-size: 22px;
font-weight: bold;
color: #2069c4;
margin-bottom: 18px;
......@@ -454,7 +454,7 @@ $text-indent: 16px;
border-radius: 0;
background: url("@/assets/imgs/list/input-border.png");
background-size: 100% 100%;
height: 54px;
&::placeholder {
text-indent: 10px;
color: #999;
......@@ -476,7 +476,7 @@ $text-indent: 16px;
width: 28px;
height: 28px;
border-radius: 50%;
background: #77a7c9;
background: #2069c4;
min-width: 0;
}
.active {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论