3 changed files with 27 additions and 29 deletions
-
17src/components/detail/CardTitle.vue
-
24src/components/detail/Paragraph.vue
-
15src/pages/Detail.vue
@ -1,31 +1,21 @@ |
|||
<template> |
|||
<article |
|||
:class="isHtml ? 'para_noindent' : 'paragraph_container'" |
|||
v-html="text" |
|||
></article> |
|||
<article class="paragraph_container">{{ text }}</article> |
|||
</template> |
|||
|
|||
<script setup> |
|||
const props = defineProps({ |
|||
text: String, |
|||
isHtml: Boolean, |
|||
}) |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.para_noindent { |
|||
padding: 30px 20px; |
|||
font-size: 18px; |
|||
font-weight: 300; |
|||
color: #aaaaaa; |
|||
line-height: 27px; |
|||
} |
|||
.paragraph_container { |
|||
padding: 30px 20px; |
|||
font-size: 18px; |
|||
font-size: 8px; |
|||
font-family: Source Han Sans CN; |
|||
font-weight: 300; |
|||
color: #aaaaaa; |
|||
line-height: 27px; |
|||
text-indent: 28px; |
|||
color: #4f4f4f; |
|||
line-height: 15px; |
|||
padding: 20px; |
|||
background: #fff; |
|||
} |
|||
</style> |
@ -1,22 +1,29 @@ |
|||
<template> |
|||
<div class="detail_container"> |
|||
<SubNavigation title="国网照明巡检摄像头 - 详情页" /> |
|||
<!-- <video |
|||
v-if="item?.video" |
|||
<Paragraph |
|||
text="电力运维人员的日常工作有相当一部分是需要走到第一线去的,如设备检修、线路巡检 电源放电等。电力运维人员的一线工作呈现出“点多、" |
|||
/> |
|||
<CardTitle title="设计" blue_title="研发型外观" en="APPEARANCE" /> |
|||
<video |
|||
controls |
|||
style="width: 100%; height: auto; object-fit: fill" |
|||
controlslist="nodownload" |
|||
> |
|||
<source :src="item?.video" /> |
|||
</video> --> |
|||
<source :src="MP4" /> |
|||
</video> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import SubNavigation from 'cpns/SubNavigation' |
|||
import Paragraph from 'cpns/detail/Paragraph' |
|||
import CardTitle from 'cpns/detail/CardTitle' |
|||
import MP4 from '@/static/video/a.mp4' |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.detail_container { |
|||
padding-top: $sub-header-height; |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue