|
@@ -14,8 +14,9 @@
|
|
|
</div>
|
|
|
|
|
|
<h1>{{ newsLoader.content.value.title }}</h1>
|
|
|
- <div class="d-flex flex-row justify-content-center">
|
|
|
+ <div class="d-flex flex-row justify-content-center gap-3" >
|
|
|
<span v-if="newsLoader.content.value.from" class="small-info">转自:{{ newsLoader.content.value.from }}</span>
|
|
|
+ <span v-if="newsLoader.content.value.regionText" class="small-info">区域:{{ newsLoader.content.value.regionText }}</span>
|
|
|
<span class="small-info">时间:{{ DateUtils.formatDate(newsLoader.content.value.publishAt, DateUtils.FormatStrings.YearCommonShort) }}</span>
|
|
|
</div>
|
|
|
|
|
@@ -32,6 +33,13 @@
|
|
|
:src="newsLoader.content.value.video"
|
|
|
/>
|
|
|
|
|
|
+ <iframe
|
|
|
+ v-if="newsLoader.content.value.type === 5 && newsLoader.content.value.archives"
|
|
|
+ class="w-100 mt-3"
|
|
|
+ :style="{ height: '90vh' }"
|
|
|
+ :src="(newsLoader.content.value.archives as string[])[0]"
|
|
|
+ />
|
|
|
+
|
|
|
<SimpleRichHtml
|
|
|
class="news-content mt-3"
|
|
|
:contents="[
|
|
@@ -48,7 +56,10 @@
|
|
|
:itemsToShow="1"
|
|
|
wrapAround
|
|
|
:autoPlay="5000"
|
|
|
- class="carousel float"
|
|
|
+ :class="[
|
|
|
+ 'carousel large',
|
|
|
+ //!newsLoader.content.value.content ? 'large' : 'float',
|
|
|
+ ]"
|
|
|
>
|
|
|
<Slide v-for="(image, key) in newsLoader.content.value.images" :key="key">
|
|
|
<img :src="image" />
|
|
@@ -105,7 +116,10 @@ const newsLoader = useSimpleDataLoader<GetContentDetailItem, {
|
|
|
}>(async (p) => {
|
|
|
if (!p)
|
|
|
throw new Error('参数错误');
|
|
|
- return (await NewsIndexContent.getContentDetail<GetContentDetailItem>(p.id, p.modelId ? p.modelId : undefined));
|
|
|
+ const z = (await NewsIndexContent.getContentDetail<GetContentDetailItem>(p.id, p.modelId ? p.modelId : undefined));
|
|
|
+ console.log(z);
|
|
|
+ return z;
|
|
|
+
|
|
|
}, false)
|
|
|
|
|
|
useLoadQuerys({
|