|
@@ -9,17 +9,19 @@
|
|
|
|
|
|
<!-- 文化百科 -->
|
|
<!-- 文化百科 -->
|
|
<HomeTitle title="文化百科" />
|
|
<HomeTitle title="文化百科" />
|
|
- <view class="d-flex flex-row justify-between">
|
|
|
|
- <view
|
|
|
|
- v-for="(item, i) in categories"
|
|
|
|
- :key="i"
|
|
|
|
- class="d-flex flex-col align-center"
|
|
|
|
- @click="item.onClick"
|
|
|
|
- >
|
|
|
|
- <image :src="item.icon" class="width-100 height-100" />
|
|
|
|
- <text class="width-130 text-align-center mt-2 color-primary size-s">{{ item.name }}</text>
|
|
|
|
|
|
+ <scroll-view scroll-x>
|
|
|
|
+ <view class="d-flex flex-row">
|
|
|
|
+ <view
|
|
|
|
+ v-for="(item, i) in categories"
|
|
|
|
+ :key="i"
|
|
|
|
+ class="width-150 d-flex flex-col align-center flex-shrink-0"
|
|
|
|
+ @click="item.onClick"
|
|
|
|
+ >
|
|
|
|
+ <image :src="item.icon" class="width-100 height-100" />
|
|
|
|
+ <text class="width-130 text-align-center mt-2 color-primary size-s">{{ item.name }}</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
|
|
+ </scroll-view>
|
|
|
|
|
|
<!-- 闽南语猜猜猜 -->
|
|
<!-- 闽南语猜猜猜 -->
|
|
<view class="home-title">
|
|
<view class="home-title">
|
|
@@ -28,7 +30,9 @@
|
|
<Box2LinePlayRightArrow
|
|
<Box2LinePlayRightArrow
|
|
title="听语音猜词语"
|
|
title="听语音猜词语"
|
|
desc="每日更新,赢取积分"
|
|
desc="每日更新,赢取积分"
|
|
- @click="navTo('/pages/answer/words/index')"
|
|
|
|
|
|
+ @click="navTo('/pages/article/web/ewebview', {
|
|
|
|
+ url: 'https://mn.wenlvti.net/assets/addons/yunexamine/h5/#/pages/home/dashboard'
|
|
|
|
+ })"
|
|
/>
|
|
/>
|
|
|
|
|
|
<!-- 文化挑战 -->
|
|
<!-- 文化挑战 -->
|
|
@@ -47,14 +51,16 @@
|
|
desc="可获积分:500"
|
|
desc="可获积分:500"
|
|
>
|
|
>
|
|
<view class="width-1-5">
|
|
<view class="width-1-5">
|
|
- <u-button shape="circle" type="primary" @click="navTo('/pages/answer/index')">立即报名</u-button>
|
|
|
|
|
|
+ <u-button shape="circle" type="primary" @click="navTo('/pages/article/web/ewebview', {
|
|
|
|
+ url: 'https://mn.wenlvti.net/assets/addons/yunexamine/h5/#/pages/home/dashboard'
|
|
|
|
+ })">立即报名</u-button>
|
|
</view>
|
|
</view>
|
|
</Box2LineRightSlot>
|
|
</Box2LineRightSlot>
|
|
|
|
|
|
<!-- 文化社区 -->
|
|
<!-- 文化社区 -->
|
|
<!-- <HomeTitle title="文化社区" />
|
|
<!-- <HomeTitle title="文化社区" />
|
|
<SimplePageContentLoader :loader="communityData">
|
|
<SimplePageContentLoader :loader="communityData">
|
|
- <view class="d-flex w-100 flex-row flex-wrap align-center justify-between">
|
|
|
|
|
|
+ <view class="d-flex w-100 flex-row flex-wrap align-stretch justify-between">
|
|
<Box2LineLargeImageUserShadow
|
|
<Box2LineLargeImageUserShadow
|
|
v-for="(item, i) in communityData.content.value"
|
|
v-for="(item, i) in communityData.content.value"
|
|
:key="i"
|
|
:key="i"
|
|
@@ -70,17 +76,44 @@
|
|
</SimplePageContentLoader> -->
|
|
</SimplePageContentLoader> -->
|
|
|
|
|
|
<!-- 老照片 -->
|
|
<!-- 老照片 -->
|
|
- <HomeTitle title="老照片" showMore />
|
|
|
|
|
|
+ <HomeTitle title="老照片" showMore @clickMore="goImagesList" />
|
|
<SimplePageContentLoader :loader="imagesData">
|
|
<SimplePageContentLoader :loader="imagesData">
|
|
<scroll-view scroll-x>
|
|
<scroll-view scroll-x>
|
|
<view class="d-flex flex-row">
|
|
<view class="d-flex flex-row">
|
|
- <view v-for="(item, i) in imagesData.content.value" :key="i" class="mr-2">
|
|
|
|
- <image class="width-300 radius-base" :src="item.image" mode="widthFix" />
|
|
|
|
|
|
+ <view
|
|
|
|
+ v-for="(item, i) in imagesData.content.value"
|
|
|
|
+ :key="i"
|
|
|
|
+ class="mr-2"
|
|
|
|
+ @click="goImagesDetail(item.id)"
|
|
|
|
+ >
|
|
|
|
+ <image
|
|
|
|
+ class="width-300 height-200 radius-base"
|
|
|
|
+ :src="item.image"
|
|
|
|
+ mode="aspectFill"
|
|
|
|
+ />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</SimplePageContentLoader>
|
|
</SimplePageContentLoader>
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <!-- 文化社区 -->
|
|
|
|
+ <HomeTitle title="闽南文化" />
|
|
|
|
+ <SimplePageContentLoader :loader="cultureData">
|
|
|
|
+ <view class="d-flex w-100 flex-row flex-wrap align-stretch justify-between">
|
|
|
|
+ <Box2LineLargeImageUserShadow
|
|
|
|
+ v-for="(item, i) in cultureData.content.value"
|
|
|
|
+ :key="i"
|
|
|
|
+ :title="item.title"
|
|
|
|
+ :desc="item.desc"
|
|
|
|
+ :image="item.image"
|
|
|
|
+ :likes="item.likes"
|
|
|
|
+ :comment="item.comments"
|
|
|
|
+ @click="goCultureDetail(item.id)"
|
|
|
|
+ />
|
|
|
|
+ </view>
|
|
|
|
+ </SimplePageContentLoader>
|
|
|
|
+
|
|
<!-- 热门话题 -->
|
|
<!-- 热门话题 -->
|
|
<!-- <HomeTitle title="热门话题" />
|
|
<!-- <HomeTitle title="热门话题" />
|
|
<SimplePageContentLoader :loader="topicsData">
|
|
<SimplePageContentLoader :loader="topicsData">
|
|
@@ -120,6 +153,7 @@ import HomeTitle from './parts/HomeTitle.vue';
|
|
import { navTo } from '@/common/utils/PageAction';
|
|
import { navTo } from '@/common/utils/PageAction';
|
|
import { useSimpleDataLoader } from '@/common/composeabe/SimpleDataLoader';
|
|
import { useSimpleDataLoader } from '@/common/composeabe/SimpleDataLoader';
|
|
import SimplePageContentLoader from '@/common/components/SimplePageContentLoader.vue';
|
|
import SimplePageContentLoader from '@/common/components/SimplePageContentLoader.vue';
|
|
|
|
+import { useHomePageMiniCommonListGoMoreAndGoDetail } from './article/common/CommonContent';
|
|
|
|
|
|
const categories = [
|
|
const categories = [
|
|
{
|
|
{
|
|
@@ -167,10 +201,43 @@ const categories = [
|
|
})
|
|
})
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: '民俗信仰',
|
|
|
|
|
|
+ name: '舞蹈艺术',
|
|
|
|
+ icon: CategoryIcon3 ,
|
|
|
|
+ onClick: () => navTo('/pages/article/common/list', {
|
|
|
|
+ title: '舞蹈艺术',
|
|
|
|
+ mainBodyColumnId: 239,
|
|
|
|
+ modelId: 3,
|
|
|
|
+ itemType: 'article-common',
|
|
|
|
+ detailsPage: '/pages/article/details',
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: '海洋文化',
|
|
icon: CategoryIcon5 ,
|
|
icon: CategoryIcon5 ,
|
|
onClick: () => navTo('/pages/article/common/list', {
|
|
onClick: () => navTo('/pages/article/common/list', {
|
|
- title: '民俗信仰',
|
|
|
|
|
|
+ title: '海洋文化',
|
|
|
|
+ mainBodyColumnId: 254,
|
|
|
|
+ modelId: 3,
|
|
|
|
+ itemType: 'article-common',
|
|
|
|
+ detailsPage: '/pages/article/details',
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: '曲艺艺术',
|
|
|
|
+ icon: CategoryIcon3 ,
|
|
|
|
+ onClick: () => navTo('/pages/article/common/list', {
|
|
|
|
+ title: '曲艺艺术',
|
|
|
|
+ mainBodyColumnId: 241,
|
|
|
|
+ modelId: 3,
|
|
|
|
+ itemType: 'article-common',
|
|
|
|
+ detailsPage: '/pages/article/details',
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: '宗教信俗',
|
|
|
|
+ icon: CategoryIcon5 ,
|
|
|
|
+ onClick: () => navTo('/pages/article/common/list', {
|
|
|
|
+ title: '宗教信俗',
|
|
mainBodyColumnId: 248,
|
|
mainBodyColumnId: 248,
|
|
modelId: 4,
|
|
modelId: 4,
|
|
itemType: 'article-common',
|
|
itemType: 'article-common',
|
|
@@ -218,22 +285,31 @@ const communityData = useSimpleDataLoader(async () => {
|
|
},
|
|
},
|
|
]
|
|
]
|
|
});
|
|
});
|
|
-const imagesData = useSimpleDataLoader(async () => {
|
|
|
|
- return [
|
|
|
|
- {
|
|
|
|
- image: ImageTest2,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- image: ImageTest3,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- image: ImageTest4,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- image: ImageTest5,
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
|
|
+
|
|
|
|
+const {
|
|
|
|
+ loader: cultureData,
|
|
|
|
+ goList: goCultureList,
|
|
|
|
+ goDetail: goCultureDetail,
|
|
|
|
+} = useHomePageMiniCommonListGoMoreAndGoDetail({
|
|
|
|
+ title: '闽南文化',
|
|
|
|
+ mainBodyColumnId: [252,253,254],
|
|
|
|
+ modelId: 3,
|
|
|
|
+ itemType: 'article-common',
|
|
|
|
+ detailsPage: '/pages/article/details',
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+const {
|
|
|
|
+ loader: imagesData,
|
|
|
|
+ goList: goImagesList,
|
|
|
|
+ goDetail: goImagesDetail,
|
|
|
|
+} = useHomePageMiniCommonListGoMoreAndGoDetail({
|
|
|
|
+ title: '老照片',
|
|
|
|
+ mainBodyColumnId: 102,
|
|
|
|
+ modelId: 8,
|
|
|
|
+ itemType: 'image-large-2',
|
|
|
|
+ detailsPage: '/pages/article/details',
|
|
|
|
+});
|
|
|
|
+
|
|
const topicsData = useSimpleDataLoader(async () => {
|
|
const topicsData = useSimpleDataLoader(async () => {
|
|
return [
|
|
return [
|
|
{
|
|
{
|