详情页面加上:

标题:
内容;
This commit is contained in:
王创世 2025-04-16 16:06:51 +08:00
parent 824cca2457
commit d03078e7fe
2 changed files with 12 additions and 16 deletions

View File

@ -18,29 +18,23 @@
<t-tag v-if="detail.status == 3" theme="danger">已拒绝</t-tag>
</div>
</div>
<div class="tweet-content">
{{ detail.content }}
<div>
<div style="font-size: 20px;font-weight: bold;margin-bottom: 10px;text-align: center;">{{ detail.title }}</div>
</div>
<div class="tweet-content" v-html="detail.content"></div>
<div class="tweet-images" v-if="detail.files && detail.files.length > 0">
<h3>图片附件</h3>
<t-image-viewer v-model="visible" :images="detail.files">
<template #trigger="{ open }">
<div class="image-grid">
<div
v-for="(image, index) in detail.files"
:key="index"
class="image-item"
@click="open"
>
<img :src="image" :alt="`附件图片${index+1}`" />
<div v-for="(image, index) in detail.files" :key="index" class="image-item" @click="open">
<img :src="image" :alt="`附件图片${index + 1}`" />
</div>
</div>
</template>
</t-image-viewer>
</div>
<div class="tweet-actions" v-if="detail.status == 1">
<t-space>
<t-popconfirm content="确定要审核通过吗?" @confirm="review(1)">
@ -50,14 +44,14 @@
<template #content>
<p class="title">拒绝理由</p>
<p class="describe" style="margin-top: 10px">
<t-input v-model="reason" placeholder="请输入拒绝理由"/>
<t-input v-model="reason" placeholder="请输入拒绝理由" />
</p>
</template>
<t-button theme="warning">拒绝</t-button>
</t-popconfirm>
</t-space>
</div>
<div class="tweet-actions">
<t-space>
<t-button v-if="detail.is_top == 0" theme="success" @click="topNews">置顶</t-button>
@ -268,4 +262,4 @@ export default {
.tweet-actions {
margin-top: 20px;
}
</style>
</style>

View File

@ -90,7 +90,9 @@
<t-tag v-if="detailInfo.status == 3" theme="danger">已拒绝</t-tag>
</div>
</div>
<div>
<div style="font-size: 20px;font-weight: bold;margin-bottom: 10px;text-align: center;">{{ detailInfo.title }}</div>
</div>
<div class="tweet-content" v-html="detailInfo.content"></div>
<div class="tweet-images" v-if="detailInfo.files && detailInfo.files.length > 0">