未来规划-最新进展-图片布局与显示
This commit is contained in:
parent
7f3ef19e57
commit
00054594d9
|
|
@ -72,7 +72,7 @@
|
||||||
</view>
|
</view>
|
||||||
<image
|
<image
|
||||||
v-if="item.coverUrl"
|
v-if="item.coverUrl"
|
||||||
:src="item.coverUrl"
|
:src="item.coverUrl.split(',')[0]"
|
||||||
class="content-image"
|
class="content-image"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
></image>
|
></image>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="project-detail-container">
|
<view class="project-detail-container">
|
||||||
<!-- 封面图片 -->
|
|
||||||
<image
|
|
||||||
v-if="projectData.coverUrl"
|
|
||||||
:src="projectData.coverUrl"
|
|
||||||
class="cover-image"
|
|
||||||
mode="widthFix"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- 标题和日期 -->
|
<!-- 标题和日期 -->
|
||||||
<view class="header">
|
<view class="header">
|
||||||
<text class="title">{{ projectData.title }}</text>
|
<text class="title">{{ projectData.title }}</text>
|
||||||
|
|
@ -16,6 +8,16 @@
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 封面图片 -->
|
||||||
|
<template v-if="projectData.coverUrl">
|
||||||
|
<image
|
||||||
|
v-for="item in projectData.coverUrl.split(',')"
|
||||||
|
:src="item"
|
||||||
|
class="cover-image"
|
||||||
|
mode="widthFix"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- 内容区域 -->
|
<!-- 内容区域 -->
|
||||||
<view class="content-box">
|
<view class="content-box">
|
||||||
<rich-text :nodes="projectData.content"></rich-text>
|
<rich-text :nodes="projectData.content"></rich-text>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user