|
@@ -3,28 +3,10 @@
|
|
|
<SimplePageContentLoader :loader="loader">
|
|
<SimplePageContentLoader :loader="loader">
|
|
|
<template v-if="loader.content.value">
|
|
<template v-if="loader.content.value">
|
|
|
<view class="d-flex flex-col">
|
|
<view class="d-flex flex-col">
|
|
|
- <swiper
|
|
|
|
|
|
|
+ <ImageSwiper
|
|
|
v-if="loader.content.value.images.length > 0"
|
|
v-if="loader.content.value.images.length > 0"
|
|
|
- circular
|
|
|
|
|
- :indicator-dots="true"
|
|
|
|
|
- :autoplay="true"
|
|
|
|
|
- :interval="3000"
|
|
|
|
|
- :duration="1000"
|
|
|
|
|
- class="height-500"
|
|
|
|
|
- >
|
|
|
|
|
- <swiper-item v-for="(item, key) in loader.content.value.images" :key="key">
|
|
|
|
|
- <view class="item">
|
|
|
|
|
- <Image
|
|
|
|
|
- :src="item"
|
|
|
|
|
- width="100%"
|
|
|
|
|
- :height="500"
|
|
|
|
|
- :radius="15"
|
|
|
|
|
- mode="aspectFill"
|
|
|
|
|
- @click="onPreviewImage(key)"
|
|
|
|
|
- />
|
|
|
|
|
- </view>
|
|
|
|
|
- </swiper-item>
|
|
|
|
|
- </swiper>
|
|
|
|
|
|
|
+ :images="loader.content.value.images"
|
|
|
|
|
+ />
|
|
|
<Image
|
|
<Image
|
|
|
v-else-if="loader.content.value.image"
|
|
v-else-if="loader.content.value.image"
|
|
|
width="100%"
|
|
width="100%"
|
|
@@ -59,7 +41,6 @@
|
|
|
:image="item.thumbnail || item.image || AppCofig.defaultImage"
|
|
:image="item.thumbnail || item.image || AppCofig.defaultImage"
|
|
|
:title="item.title"
|
|
:title="item.title"
|
|
|
:desc="item.desc"
|
|
:desc="item.desc"
|
|
|
- :badge="item.badge"
|
|
|
|
|
:wideImage="true"
|
|
:wideImage="true"
|
|
|
@click="goDetails(item.id)"
|
|
@click="goDetails(item.id)"
|
|
|
/>
|
|
/>
|
|
@@ -98,6 +79,7 @@ import AppCofig from "@/common/config/AppCofig";
|
|
|
import LikeFooter from "../parts/LikeFooter.vue";
|
|
import LikeFooter from "../parts/LikeFooter.vue";
|
|
|
import Image from "@/components/basic/Image.vue";
|
|
import Image from "@/components/basic/Image.vue";
|
|
|
import ArticleCorrect from "../parts/ArticleCorrect.vue";
|
|
import ArticleCorrect from "../parts/ArticleCorrect.vue";
|
|
|
|
|
+import ImageSwiper from "../parts/ImageSwiper.vue";
|
|
|
|
|
|
|
|
const loader = useSimplePageContentLoader<
|
|
const loader = useSimplePageContentLoader<
|
|
|
GetContentDetailItem,
|
|
GetContentDetailItem,
|
|
@@ -121,7 +103,12 @@ const recommendListLoader = useSimpleDataLoader(async () => {
|
|
|
return (await CommonContent.getContentList(new GetContentListParams()
|
|
return (await CommonContent.getContentList(new GetContentListParams()
|
|
|
.setModelId(querys.value.modelId)
|
|
.setModelId(querys.value.modelId)
|
|
|
.setMainBodyColumnId(querys.value.mainBodyColumnId)
|
|
.setMainBodyColumnId(querys.value.mainBodyColumnId)
|
|
|
- , 1, 10)).list.filter((p) => p.id !== querys.value.id);
|
|
|
|
|
|
|
+ , 1, 10)).list
|
|
|
|
|
+ .filter((p) => p.id !== querys.value.id)
|
|
|
|
|
+ .map((p) => ({
|
|
|
|
|
+ ...p,
|
|
|
|
|
+ desc: `${p.from ? `来源:${p.from}` : ''}\n${p.desc || ''}`,
|
|
|
|
|
+ }));
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
|