未来规划-最新进展-图片布局与显示

This commit is contained in:
WindowBird 2025-09-18 15:39:51 +08:00
parent 7f3ef19e57
commit 00054594d9
2 changed files with 11 additions and 9 deletions

View File

@ -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>

View File

@ -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>