提交 9980a8fe authored 作者: 龙菲's avatar 龙菲

修改富文本字体为默认字体

上级 e870d906
...@@ -8,3 +8,4 @@ $font-size-sm:14px; ...@@ -8,3 +8,4 @@ $font-size-sm:14px;
$font-size-base:16px; $font-size-base:16px;
$font-size-lg:22px; $font-size-lg:22px;
$defaultFontFamily: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
<template>
<el-breadcrumb separator-class="el-icon-arrow-right" >
<el-breadcrumb-item v-for="(item, index) in list" :key="index" :to="{ path: item.path }">{{ item.name }}</el-breadcrumb-item>
</el-breadcrumb>
</template>
<script>
export default {
name: 'Breadcrumb',
props: {
list: {
type: Array,
default: [
{
name: '首页',
path: "/"
}
]
}
}
}
</script>
<style lang="scss" scoped>
::v-deep .el-breadcrumb__inner{
color:#ccc;
}
::v-deep .el-breadcrumb__item:last-child .el-breadcrumb__inner{
color: #999;
}
::v-deep .el-breadcrumb__inner.is-link:hover{
color: #b5800a;
}
</style>
\ No newline at end of file
...@@ -14,11 +14,7 @@ ...@@ -14,11 +14,7 @@
<div class="title wow animate__animated animate__fadeInLeft">{{ productInfo.title }}</div> <div class="title wow animate__animated animate__fadeInLeft">{{ productInfo.title }}</div>
<div class="intro wow animate__animated animate__fadeInRight" v-html="productInfo.intro"></div> <div class="intro wow animate__animated animate__fadeInRight" v-html="productInfo.intro"></div>
<div class="images wow animate__animated animate__fadeInUp"> <div class="images wow animate__animated animate__fadeInUp">
<div <div class="img-container" v-for="(item, index) in productInfo.imagesVo" :key="index">
class="img-container"
v-for="(item, index) in productInfo.imagesVo"
:key="index"
>
<img :src="$getFullUrl(item.pressUrl)" /> <img :src="$getFullUrl(item.pressUrl)" />
</div> </div>
</div> </div>
...@@ -67,21 +63,26 @@ export default { ...@@ -67,21 +63,26 @@ export default {
background: url("@/assets/imgs/ccproduct/wc-bg.png"); background: url("@/assets/imgs/ccproduct/wc-bg.png");
min-height: calc(100vh - 300px); min-height: calc(100vh - 300px);
padding: 40px 13%; padding: 40px 13%;
.back{
.back {
color: #999; color: #999;
margin: 30px 0; margin: 30px 0;
cursor: pointer; cursor: pointer;
} }
.wrapper { .wrapper {
background-color: #fff; background-color: #fff;
min-height: calc(100vh - 300px); min-height: calc(100vh - 300px);
.header { .header {
position: relative; position: relative;
.dc-right { .dc-right {
position: absolute; position: absolute;
right: 0; right: 0;
bottom: 10px; bottom: 10px;
} }
.dc-left { .dc-left {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -98,30 +99,38 @@ export default { ...@@ -98,30 +99,38 @@ export default {
} }
} }
.body{ .body {
padding: 400px 100px; padding: 400px 100px;
.title{
.title {
font-size: 32px; font-size: 32px;
font-family: "SourceHanSerifCN-Bold"; font-family: "SourceHanSerifCN-Bold";
color: #333; color: #333;
} }
.intro,.deptName{
.intro,
.deptName {
color: #999; color: #999;
} }
.intro{
&>p{ .intro {
&>p {
color: #666; color: #666;
// font-family: $defaultFontFamily;
} }
} }
.images{
.images {
padding: 20px 0; padding: 20px 0;
display: flex; display: flex;
.img-container{
.img-container {
width: 400px; width: 400px;
height: 400px; height: 400px;
background-color: #f7f7f7; background-color: #f7f7f7;
margin: 20px; margin: 20px;
img{
img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;
......
...@@ -6,17 +6,14 @@ ...@@ -6,17 +6,14 @@
</div> </div>
<div class="wrapper wow animate__animated animate__fadeInUpBig"> <div class="wrapper wow animate__animated animate__fadeInUpBig">
<div class="breadcrumb">
<Breadcrumb :list="guideList" />
</div>
<div class="inner"> <div class="inner">
<!-- 展览基本信息 --> <!-- 展览基本信息 -->
<div class="inner-left wow animate__animated animate__fadeInLeft"> <div class="inner-left wow animate__animated animate__fadeInLeft">
<!-- <div>
<SlideImage :imgList="CRDetail.imagesVo" v-if="CRDetail.imagesVo && CRDetail.imagesVo.length > 0" />
<SlideImage :imgList="[{ pressUrl: CRDetail.faceImagePressUrl }]" v-else-if="CRDetail.faceImagePressUrl" />
</div> -->
<!-- <div>
<img :src="CRDetail.faceImagePressUrl" alt="" />
</div> -->
<swiper :options="swiperOption2" ref="crSwiper"> <swiper :options="swiperOption2" ref="crSwiper">
<swiper-slide v-for="(item, i) in imagesVo" :key="i"> <swiper-slide v-for="(item, i) in imagesVo" :key="i">
<div class="img-container" @click="handelPreviewImages(imagesVo)"> <div class="img-container" @click="handelPreviewImages(imagesVo)">
...@@ -236,6 +233,7 @@ import videoPlayer from "@/components/VideoPlayer"; ...@@ -236,6 +233,7 @@ import videoPlayer from "@/components/VideoPlayer";
import SlideImage from "@/components/SlideImage/slider.vue"; import SlideImage from "@/components/SlideImage/slider.vue";
import { isElementInViewport2 } from "@/utils/index"; import { isElementInViewport2 } from "@/utils/index";
import { swiper, swiperSlide } from "vue-awesome-swiper"; import { swiper, swiperSlide } from "vue-awesome-swiper";
import Breadcrumb from '@/components/Breadcrumb/index'
export default { export default {
components: { components: {
AudioPlayer, AudioPlayer,
...@@ -244,6 +242,7 @@ export default { ...@@ -244,6 +242,7 @@ export default {
videoPlayer, videoPlayer,
SlideImage, SlideImage,
swiper, swiperSlide, swiper, swiperSlide,
Breadcrumb,
"el-image-viewer": () => "el-image-viewer": () =>
import("element-ui/packages/image/src/image-viewer"), import("element-ui/packages/image/src/image-viewer"),
}, },
...@@ -299,6 +298,16 @@ export default { ...@@ -299,6 +298,16 @@ export default {
prevEl: ".swiper-button-prev", prevEl: ".swiper-button-prev",
}, },
}, },
guideList: [
{
name: '首页',
path: '/',
},
{
name: '文物展示',
path: '/culturalRelic',
},
]
}; };
}, },
watch: { watch: {
...@@ -351,6 +360,10 @@ export default { ...@@ -351,6 +360,10 @@ export default {
let res = await getRCDetailByIdV2({ crId }); let res = await getRCDetailByIdV2({ crId });
if (res.code == 0) { if (res.code == 0) {
this.CRDetail = res.data.culturalRelicVo; this.CRDetail = res.data.culturalRelicVo;
this.guideList.push({
name: this.CRDetail.name,
path: `/culturalRelic/${this.CRDetail.crId}`
})
// this.relateRelics = res.data.recommendList.records; // this.relateRelics = res.data.recommendList.records;
if (this.CRDetail.videosVo && this.CRDetail.videosVo.length > 0) { if (this.CRDetail.videosVo && this.CRDetail.videosVo.length > 0) {
this.currentVideo = this.CRDetail.videosVo[0]; this.currentVideo = this.CRDetail.videosVo[0];
...@@ -539,6 +552,12 @@ $node-w: 700px; ...@@ -539,6 +552,12 @@ $node-w: 700px;
} }
} }
.breadcrumb {
padding: 60px;
position: relative;
z-index:999;
}
.inner { .inner {
width: 100%; width: 100%;
display: flex; display: flex;
...@@ -549,6 +568,7 @@ $node-w: 700px; ...@@ -549,6 +568,7 @@ $node-w: 700px;
// position: relative; // position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column;
.swiper-container { .swiper-container {
height: 68vh; height: 68vh;
......
...@@ -535,6 +535,13 @@ export default { ...@@ -535,6 +535,13 @@ export default {
}; };
</script> </script>
<style lang="scss">
.intro-content{
p{
font-family: $defaultFontFamily !important;
}
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
// 中国风主题样式 // 中国风主题样式
/**公共样式开始 */ /**公共样式开始 */
...@@ -750,7 +757,6 @@ $themeRed: #892325; ...@@ -750,7 +757,6 @@ $themeRed: #892325;
.intro-content { .intro-content {
font-size: 16px; font-size: 16px;
font-family: Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #444444; color: #444444;
text-indent: 32px; text-indent: 32px;
......
...@@ -85,6 +85,14 @@ export default { ...@@ -85,6 +85,14 @@ export default {
}; };
</script> </script>
<style lang="scss">
.units-content-intro,.unit-intro{
p{
font-family: $defaultFontFamily !important;
}
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
.units-content { .units-content {
margin: 100px 0; margin: 100px 0;
......
...@@ -545,8 +545,17 @@ export default { ...@@ -545,8 +545,17 @@ export default {
.page-item { .page-item {
cursor: pointer; cursor: pointer;
} }
.display-detail_intro{
.intro-content{
p{
font-family: $defaultFontFamily !important;
}
}
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
// 中国风主题样式 // 中国风主题样式
/**公共样式开始 */ /**公共样式开始 */
......
...@@ -120,6 +120,14 @@ export default { ...@@ -120,6 +120,14 @@ export default {
} }
</script> </script>
<style lang="scss">
.unit-content_intro {
p {
// color: red !important;
font-family: $defaultFontFamily !important;
}
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
.unit-container { .unit-container {
margin-bottom: 40px; margin-bottom: 40px;
......
...@@ -652,6 +652,15 @@ export default { ...@@ -652,6 +652,15 @@ export default {
}; };
</script> </script>
<style lang="scss">
.unit-content_intro {
p {
// color: red !important;
font-family: $defaultFontFamily !important;
}
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
$themeColor: #a30e0c; $themeColor: #a30e0c;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论