|
@@ -20,22 +20,15 @@
|
|
|
</div>
|
|
|
|
|
|
<SimplePageContentLoader :loader="statsData">
|
|
|
- <Carousel ref="carousel3Ref" v-bind="carousel3Config">
|
|
|
- <Slide v-for="(stat,key) in statsData.content.value" :key="key">
|
|
|
- <div :class="`main-card-box type${stat.type}`">
|
|
|
- <h4>{{ stat.title }}</h4>
|
|
|
- <div class="descs">
|
|
|
- <div v-for="(data, key2) in stat.datas" :key="key2">
|
|
|
- <h5>{{ data.title }}</h5>
|
|
|
- <p>{{ data.value }}</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div v-for="(stat,key) in statsData.content.value" :key="key" class="main-stats">
|
|
|
+ <h4>{{ stat.title }}</h4>
|
|
|
+ <div class="descs">
|
|
|
+ <div v-for="(data, key2) in stat.datas" :key="key2">
|
|
|
+ <h5>{{ data.value }}</h5>
|
|
|
+ <p>{{ data.title }}</p>
|
|
|
</div>
|
|
|
- </Slide>
|
|
|
- <template #addons>
|
|
|
- <Navigation />
|
|
|
- </template>
|
|
|
- </Carousel>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</SimplePageContentLoader>
|
|
|
</div>
|
|
|
</section>
|
|
@@ -60,77 +53,62 @@
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
- <!-- 自然遗产 -->
|
|
|
+ <!-- 世界文化遗产 -->
|
|
|
<section class="main-section pb-0">
|
|
|
<div class="content">
|
|
|
<div class="title">
|
|
|
- <h2>自然遗产</h2>
|
|
|
+ <h2>世界文化遗产</h2>
|
|
|
</div>
|
|
|
<LeftRightBox
|
|
|
- title="自然遗产"
|
|
|
+ title="世界文化遗产"
|
|
|
:desc="overviewsLoader.content.value?.[0]"
|
|
|
:image="Image9"
|
|
|
:showExpand="false"
|
|
|
+ :rightItems="heritageData.content.value"
|
|
|
+ @rightItemDefaultClick="(item) => navTo('/news/detail', { id: item.id })"
|
|
|
@moreClick="navTo('/inheritor/heritage')"
|
|
|
/>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
- <!-- 重要相关历史风貌区 -->
|
|
|
+ <!-- 重要相关文物古迹 -->
|
|
|
<section class="main-section pb-0">
|
|
|
<div class="content">
|
|
|
<div class="title">
|
|
|
- <h2>重要相关历史风貌区</h2>
|
|
|
+ <h2>重要相关文物古迹</h2>
|
|
|
</div>
|
|
|
<LeftRightBox
|
|
|
- title="历史风貌区"
|
|
|
+ title="重要相关文物古迹"
|
|
|
:desc="overviewsLoader.content.value?.[1]"
|
|
|
:image="Image11"
|
|
|
:showExpand="false"
|
|
|
left
|
|
|
+ :rightItems="areaData.content.value"
|
|
|
+ @rightItemDefaultClick="(item) => navTo('/news/detail', { id: item.id })"
|
|
|
@moreClick="navTo('/inheritor/area')"
|
|
|
/>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
- <!-- 重要相关文物和古迹 -->
|
|
|
+ <!-- 历史文化街区 -->
|
|
|
<section class="main-section pb-0">
|
|
|
<div class="content">
|
|
|
<div class="title">
|
|
|
- <h2>重要相关文物和古迹</h2>
|
|
|
+ <h2>历史文化街区</h2>
|
|
|
</div>
|
|
|
<LeftRightBox
|
|
|
- title="传统村落"
|
|
|
+ title="历史文化街区"
|
|
|
:desc="overviewsLoader.content.value?.[2]"
|
|
|
:image="Image10"
|
|
|
:showExpand="false"
|
|
|
+ :rightItems="blockData.content.value"
|
|
|
+ @rightItemDefaultClick="(item) => navTo('/news/detail', { id: item.id })"
|
|
|
@moreClick="navTo('/village/index')"
|
|
|
/>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
- <!-- 法律法规 -->
|
|
|
- <section class="main-section pb-0">
|
|
|
- <div class="content">
|
|
|
- <div class="title left-right">
|
|
|
- <h2>法律法规</h2>
|
|
|
- <div class="small-more" @click="navTo('/introduction/policy')">
|
|
|
- <span>更多信息</span>
|
|
|
- <img src="@/assets/images/index/ButtonMore.png" alt="更多" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <SimplePageContentLoader :loader="lawsData">
|
|
|
- <ImageTextSmallBlock
|
|
|
- v-for="(item, index) in lawsData.content.value"
|
|
|
- :key="index"
|
|
|
- :title="item.title"
|
|
|
- :image="item.image"
|
|
|
- :date="item.date"
|
|
|
- @click="navTo('/news/detail', { id: item.id })"
|
|
|
- />
|
|
|
- </SimplePageContentLoader>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
+
|
|
|
|
|
|
<!-- 申报入口 -->
|
|
|
<section class="main-section">
|
|
@@ -167,15 +145,15 @@ import Image10 from '@/assets/images/inheritor/Image10.jpg'
|
|
|
import Image11 from '@/assets/images/inheritor/Image11.jpg'
|
|
|
import LeftRightBox from '@/components/parts/LeftRightBox.vue';
|
|
|
import ThreeImageList from '@/components/parts/ThreeImageList.vue';
|
|
|
-import ImageTextSmallBlock from '@/components/parts/ImageTextSmallBlock.vue';
|
|
|
import { usePageAction } from '@/composeable/PageAction';
|
|
|
import { useSimpleDataLoader } from '@/composeable/SimpleDataLoader';
|
|
|
import PolicyContent from '@/api/introduction/PolicyContent';
|
|
|
-import { GetColumListParams, GetContentListParams } from '@/api/CommonContent';
|
|
|
+import CommonContent, { GetColumListParams, GetContentListParams } from '@/api/CommonContent';
|
|
|
import DateUtils from '@/common/utils/DateUtils';
|
|
|
import SimplePageContentLoader from '@/components/content/SimplePageContentLoader.vue';
|
|
|
import { NO_CONTENT_STRING } from '@/common/ConstStrings';
|
|
|
import IndexContent from '@/api/introduction/IndexContent';
|
|
|
+import { Item } from 'ant-design-vue/es/menu';
|
|
|
|
|
|
const { navTo } = usePageAction();
|
|
|
|
|
@@ -241,14 +219,23 @@ const list2 = [
|
|
|
},
|
|
|
]
|
|
|
|
|
|
-const lawsData = useSimpleDataLoader(async () =>
|
|
|
- (await PolicyContent.getContentList(new GetContentListParams(), 1, 8))
|
|
|
- .list?.map(item => ({
|
|
|
- id: item.id,
|
|
|
- title: item.title,
|
|
|
- image: item.image || LawsTest,
|
|
|
- date: DateUtils.formatDate(item.publish_at, DateUtils.FormatStrings.YearCommon),
|
|
|
- }))
|
|
|
+const areaData = useSimpleDataLoader(async () =>
|
|
|
+ (await CommonContent.getContentList(new GetContentListParams()
|
|
|
+ .setModelId(17)
|
|
|
+ .setMainBodyColumnId(286)
|
|
|
+ , 1, 6)).list
|
|
|
+)
|
|
|
+const heritageData = useSimpleDataLoader(async () =>
|
|
|
+ (await CommonContent.getContentList(new GetContentListParams()
|
|
|
+ .setModelId(17)
|
|
|
+ .setMainBodyColumnId(310)
|
|
|
+ , 1, 6)).list
|
|
|
+)
|
|
|
+const blockData = useSimpleDataLoader(async () =>
|
|
|
+ (await CommonContent.getContentList(new GetContentListParams()
|
|
|
+ .setModelId(17)
|
|
|
+ .setMainBodyColumnId(286)
|
|
|
+ , 1, 6)).list
|
|
|
)
|
|
|
const overviewsLoader = useSimpleDataLoader(async () => {
|
|
|
return [
|
|
@@ -324,9 +311,9 @@ const statsData = useSimpleDataLoader(async () => {
|
|
|
})
|
|
|
},
|
|
|
{
|
|
|
- title: '闽南文化重要相关文物古迹',
|
|
|
- type: '2',
|
|
|
- datas: data.minnanCr.map((item: any) => {
|
|
|
+ title: '传习中心',
|
|
|
+ type: '3',
|
|
|
+ datas: data.ichCenter.map((item: any) => {
|
|
|
return {
|
|
|
title: item.title,
|
|
|
value: item.total
|
|
@@ -334,9 +321,9 @@ const statsData = useSimpleDataLoader(async () => {
|
|
|
})
|
|
|
},
|
|
|
{
|
|
|
- title: '重要相关历史风貌区',
|
|
|
- type: '1',
|
|
|
- datas: data.historyData.map((item: any) => {
|
|
|
+ title: '闽南文化重要相关文物古迹',
|
|
|
+ type: '2',
|
|
|
+ datas: data.minnanCr.map((item: any) => {
|
|
|
return {
|
|
|
title: item.title,
|
|
|
value: item.total
|
|
@@ -344,9 +331,9 @@ const statsData = useSimpleDataLoader(async () => {
|
|
|
})
|
|
|
},
|
|
|
{
|
|
|
- title: '传习中心',
|
|
|
- type: '3',
|
|
|
- datas: data.ichCenter.map((item: any) => {
|
|
|
+ title: '重要相关历史风貌区',
|
|
|
+ type: '1',
|
|
|
+ datas: data.historyData.map((item: any) => {
|
|
|
return {
|
|
|
title: item.title,
|
|
|
value: item.total
|