|
@@ -6,9 +6,30 @@
|
|
|
mode="widthFix"
|
|
|
/>
|
|
|
<view class="content d-flex flex-col ">
|
|
|
+
|
|
|
+ <!-- 非遗项目 -->
|
|
|
+ <HomeTitle title="非遗项目" showMore inWing @clickMore="navTo('inhert/intangible/list')" />
|
|
|
+ <SimplePageContentLoader :loader="intangibleData" >
|
|
|
+ <scroll-view scroll-x>
|
|
|
+ <view class="padding-wing-l pb-3 pt-3 d-flex flex-row overflow-visible align-stretch">
|
|
|
+ <Box2LineLargeImageUserShadow
|
|
|
+ v-for="(item, i) in intangibleData.content.value"
|
|
|
+ classNames="width-2-3 mr-2"
|
|
|
+ titleColor="title-text"
|
|
|
+ :key="i"
|
|
|
+ :title="item.title"
|
|
|
+ :desc="item.desc"
|
|
|
+ :image="item.image"
|
|
|
+ :bottomLocate="item.bottomLocate"
|
|
|
+ :bottomScore="item.bottomScore"
|
|
|
+ @click="navTo('inhert/intangible/details', { id: item.id })"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
+ </scroll-view>
|
|
|
+ </SimplePageContentLoader>
|
|
|
|
|
|
<!-- 文物 -->
|
|
|
- <HomeTitle title="文物" showMore inWing @clickMore="navTo('inhert/artifact/list')" />
|
|
|
+ <HomeTitle title="文物古迹" showMore inWing @clickMore="navTo('inhert/artifact/list')" />
|
|
|
<SimplePageContentLoader :loader="artifactData">
|
|
|
<scroll-view scroll-x>
|
|
|
<view class="padding-wing-l pb-3 pt-3 d-flex flex-row overflow-visible align-stretch">
|
|
@@ -28,13 +49,13 @@
|
|
|
</scroll-view>
|
|
|
</SimplePageContentLoader>
|
|
|
|
|
|
- <!-- 非遗 -->
|
|
|
- <HomeTitle title="非遗" showMore inWing @clickMore="navTo('inhert/intangible/list')" />
|
|
|
- <SimplePageContentLoader :loader="intangibleData" >
|
|
|
+ <!-- 非遗作品 -->
|
|
|
+ <HomeTitle title="非遗产品(作品)" showMore inWing @clickMore="navTo('inhert/intangible/list')" />
|
|
|
+ <SimplePageContentLoader :loader="productsData" >
|
|
|
<scroll-view scroll-x>
|
|
|
<view class="padding-wing-l pb-3 pt-3 d-flex flex-row overflow-visible align-stretch">
|
|
|
<Box2LineLargeImageUserShadow
|
|
|
- v-for="(item, i) in intangibleData.content.value"
|
|
|
+ v-for="(item, i) in productsData.content.value"
|
|
|
classNames="width-2-3 mr-2"
|
|
|
titleColor="title-text"
|
|
|
:key="i"
|
|
@@ -71,66 +92,66 @@
|
|
|
|
|
|
<view class="d-flex flex-col wing-l">
|
|
|
<!-- 闽南语原创歌曲 -->
|
|
|
- <HomeTitle title="闽南语原创歌曲" showMore @clickMore="goSongsList" />
|
|
|
+ <HomeTitle title="闽南语原创歌曲" showMore @clickMore="goMingnanSongsList" />
|
|
|
|
|
|
- <SimplePageContentLoader :loader="songsData" >
|
|
|
+ <SimplePageContentLoader :loader="mingnanSongsData" >
|
|
|
<Box1AudioPlay
|
|
|
- v-for="s in songsData.content.value"
|
|
|
+ v-for="s in mingnanSongsData.content.value"
|
|
|
:key="s.id"
|
|
|
:title="s.title"
|
|
|
class="w-100 mt-3"
|
|
|
- @click="goSongsDetail(s.id)"
|
|
|
+ @click="goMingnanSongsDetail(s.id)"
|
|
|
/>
|
|
|
</SimplePageContentLoader>
|
|
|
|
|
|
- <!-- 方言故事音频库 -->
|
|
|
- <HomeTitle title="方言故事音频库" showMore @clickMore="goStoryList" />
|
|
|
- <SimplePageContentLoader :loader="storyData" >
|
|
|
+ <!-- 闽南语作品库 -->
|
|
|
+ <HomeTitle title="闽南语作品库" showMore @clickMore="goSongsList" />
|
|
|
+ <SimplePageContentLoader :loader="songsData" >
|
|
|
<Box2LinePlayRightArrow
|
|
|
v-for="s in songsData.content.value"
|
|
|
:key="s.id"
|
|
|
:title="s.title"
|
|
|
:desc="s.desc"
|
|
|
- @click="goStoryDetail(s.id)"
|
|
|
+ @click="goSongsDetail(s.id)"
|
|
|
/>
|
|
|
</SimplePageContentLoader>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 童趣记忆 -->
|
|
|
- <HomeTitle title="童趣记忆" showMore inWing @clickMore="goMemoryList" />
|
|
|
- <SimplePageContentLoader :loader="memoryData" >
|
|
|
+ <!-- 老字号 -->
|
|
|
+ <HomeTitle title="老字号" showMore inWing @clickMore="goOldList" />
|
|
|
+ <SimplePageContentLoader :loader="oldData">
|
|
|
<scroll-view scroll-x>
|
|
|
<view class="padding-wing-l pb-3 pt-3 d-flex flex-row overflow-visible align-stretch">
|
|
|
<Box2LineLargeImageUserShadow
|
|
|
- v-for="(item, i) in memoryData.content.value"
|
|
|
+ v-for="(item, i) in oldData.content.value"
|
|
|
classNames="width-2-3 mr-2"
|
|
|
titleColor="title-text"
|
|
|
:key="i"
|
|
|
:title="item.title"
|
|
|
:desc="item.desc"
|
|
|
- :image="item.thumbnail || item.image"
|
|
|
- @click="goMemoryDetail(item.id)"
|
|
|
+ :image="item.thumbnail"
|
|
|
+ :bottomLocate="(item.regionText as string)"
|
|
|
+ :bottomScore="''"
|
|
|
+ @click="goOldDetail(item.id)"
|
|
|
/>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</SimplePageContentLoader>
|
|
|
|
|
|
- <!-- 老字号 -->
|
|
|
- <HomeTitle title="老字号" showMore inWing @clickMore="goOldList" />
|
|
|
- <SimplePageContentLoader :loader="oldData">
|
|
|
+ <!-- 童趣记忆 -->
|
|
|
+ <HomeTitle title="童趣记忆" showMore inWing @clickMore="goMemoryList" />
|
|
|
+ <SimplePageContentLoader :loader="memoryData" >
|
|
|
<scroll-view scroll-x>
|
|
|
<view class="padding-wing-l pb-3 pt-3 d-flex flex-row overflow-visible align-stretch">
|
|
|
<Box2LineLargeImageUserShadow
|
|
|
- v-for="(item, i) in oldData.content.value"
|
|
|
+ v-for="(item, i) in memoryData.content.value"
|
|
|
classNames="width-2-3 mr-2"
|
|
|
titleColor="title-text"
|
|
|
:key="i"
|
|
|
:title="item.title"
|
|
|
:desc="item.desc"
|
|
|
- :image="item.thumbnail"
|
|
|
- :bottomLocate="(item.regionText as string)"
|
|
|
- :bottomScore="''"
|
|
|
- @click="goOldDetail(item.id)"
|
|
|
+ :image="item.thumbnail || item.image"
|
|
|
+ @click="goMemoryDetail(item.id)"
|
|
|
/>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
@@ -169,12 +190,10 @@ import SimplePageContentLoader from '@/common/components/SimplePageContentLoader
|
|
|
import ProjectsContent from '@/api/inheritor/ProjectsContent';
|
|
|
import UnmoveableContent from '@/api/inheritor/UnmoveableContent';
|
|
|
import { useHomePageMiniCommonListGoMoreAndGoDetail } from './article/common/CommonContent';
|
|
|
+import ProductsContent from '@/api/inheritor/ProductsContent';
|
|
|
|
|
|
const artifactData = useSimpleDataLoader(async () =>
|
|
|
- (await UnmoveableContent.getContentList(new GetContentListParams().setSelfValues({
|
|
|
- type: GetContentListParams.TYPE_ARTICLE,
|
|
|
- flag: 'recommend',
|
|
|
- }), 1, 4)).list.map(p => ({
|
|
|
+ (await UnmoveableContent.getContentList(new GetContentListParams(), 1, 4)).list.map(p => ({
|
|
|
id: p.id,
|
|
|
title: p.title,
|
|
|
desc: '',
|
|
@@ -184,10 +203,18 @@ const artifactData = useSimpleDataLoader(async () =>
|
|
|
}))
|
|
|
);
|
|
|
const intangibleData = useSimpleDataLoader(async () =>
|
|
|
- (await ProjectsContent.getContentList(new GetContentListParams().setSelfValues({
|
|
|
- type: GetContentListParams.TYPE_ARTICLE,
|
|
|
- flag: 'recommend',
|
|
|
- }), 1, 4)).list.map(p => ({
|
|
|
+ (await ProjectsContent.getContentList(new GetContentListParams(), 1, 4)).list.map(p => ({
|
|
|
+ id: p.id,
|
|
|
+ title: p.title,
|
|
|
+ desc: p.desc,
|
|
|
+ image: p.thumbnail || p.image,
|
|
|
+ bottomLocate: p.area as string,
|
|
|
+ bottomScore: '5.0',
|
|
|
+ }))
|
|
|
+);
|
|
|
+
|
|
|
+const productsData = useSimpleDataLoader(async () =>
|
|
|
+ (await ProductsContent.getContentList(new GetContentListParams(), 1, 4)).list.map(p => ({
|
|
|
id: p.id,
|
|
|
title: p.title,
|
|
|
desc: p.desc,
|
|
@@ -214,7 +241,7 @@ const {
|
|
|
goList: goSongsList,
|
|
|
goDetail: goSongsDetail,
|
|
|
} = useHomePageMiniCommonListGoMoreAndGoDetail({
|
|
|
- title: '闽南语原创歌曲',
|
|
|
+ title: '闽南语作品库',
|
|
|
mainBodyColumnId: 189,
|
|
|
modelId: 16,
|
|
|
itemType: 'article-common',
|
|
@@ -222,13 +249,13 @@ const {
|
|
|
});
|
|
|
|
|
|
const {
|
|
|
- loader: storyData,
|
|
|
- goList: goStoryList,
|
|
|
- goDetail: goStoryDetail,
|
|
|
+ loader: mingnanSongsData,
|
|
|
+ goList: goMingnanSongsList,
|
|
|
+ goDetail: goMingnanSongsDetail,
|
|
|
} = useHomePageMiniCommonListGoMoreAndGoDetail({
|
|
|
- title: '方言故事频率库',
|
|
|
- mainBodyColumnId: 235,
|
|
|
- modelId: 5,
|
|
|
+ title: '闽南语原创歌曲',
|
|
|
+ mainBodyColumnId: 315,
|
|
|
+ modelId: 16,
|
|
|
itemType: 'article-common',
|
|
|
detailsPage: '/pages/video/details',
|
|
|
});
|