|
@@ -23,7 +23,7 @@
|
|
|
<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">
|
|
|
+ <div v-for="(data, key2) in stat.datas" :key="key2" @click="data.onClick">
|
|
|
<h5>{{ data.value }}</h5>
|
|
|
<p>{{ data.title }}</p>
|
|
|
</div>
|
|
@@ -131,13 +131,11 @@
|
|
|
<script setup lang="ts">
|
|
|
import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel'
|
|
|
import { onMounted, ref } from 'vue';
|
|
|
-import LawsTest from '@/assets/images/inheritor/LawsTest.jpg'
|
|
|
import Image1 from '@/assets/images/inheritor/Image1.jpg'
|
|
|
import Image2 from '@/assets/images/inheritor/Image2.jpg'
|
|
|
import Image3 from '@/assets/images/inheritor/Image3.jpg'
|
|
|
import Image4 from '@/assets/images/inheritor/Image4.jpg'
|
|
|
import Image5 from '@/assets/images/inheritor/Image5.jpg'
|
|
|
-import Image6 from '@/assets/images/inheritor/Image6.jpg'
|
|
|
import Image7 from '@/assets/images/inheritor/Image7.jpg'
|
|
|
import Image8 from '@/assets/images/inheritor/Image8.jpg'
|
|
|
import Image9 from '@/assets/images/inheritor/Image9.jpg'
|
|
@@ -147,13 +145,10 @@ import LeftRightBox from '@/components/parts/LeftRightBox.vue';
|
|
|
import ThreeImageList from '@/components/parts/ThreeImageList.vue';
|
|
|
import { usePageAction } from '@/composeable/PageAction';
|
|
|
import { useSimpleDataLoader } from '@/composeable/SimpleDataLoader';
|
|
|
-import PolicyContent from '@/api/introduction/PolicyContent';
|
|
|
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();
|
|
|
|
|
@@ -264,7 +259,6 @@ const carousel3Config = ref({
|
|
|
wrapAround: true,
|
|
|
autoplay: 3000,
|
|
|
});
|
|
|
-const carousel3Ref = ref<any>(null);
|
|
|
|
|
|
onMounted(() => {
|
|
|
if (window.innerWidth <= 435) {
|
|
@@ -286,7 +280,10 @@ const statsData = useSimpleDataLoader(async () => {
|
|
|
datas: data.ichData.map((item: any) => {
|
|
|
return {
|
|
|
title: item.level_text,
|
|
|
- value: item.total
|
|
|
+ value: item.total,
|
|
|
+ onClick: () => {
|
|
|
+ navTo('/inheritor/projects', { level: item.level_text });
|
|
|
+ },
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -296,7 +293,10 @@ const statsData = useSimpleDataLoader(async () => {
|
|
|
datas: data.inheritorData.map((item: any) => {
|
|
|
return {
|
|
|
title: item.title,
|
|
|
- value: item.total
|
|
|
+ value: item.total,
|
|
|
+ onClick: () => {
|
|
|
+ navTo('/inheritor/inheritor', { level: item.title });
|
|
|
+ },
|
|
|
}
|
|
|
})
|
|
|
},
|