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