Skip to content
Snippets Groups Projects
Commit c91d5db6 authored by 汤绍坚's avatar 汤绍坚
Browse files

tsj: 首页7大行业加上跳转下钻页

parent 8896391d
No related branches found
No related tags found
No related merge requests found
......@@ -10,12 +10,13 @@ import { useModel } from '@umijs/max';
import { Flex } from 'antd';
import React, { useEffect, useState } from 'react';
import styles from './index.less';
import { useDashboard } from '@/pages/Home_v_2504/components/context';
const Advertisement: React.FC = () => {
const { initialState } = useModel('@@initialState');
const { areaId } = initialState;
const { dispatch } = useGlobalModalServices();
const [eventCount, setEventCount] = useState(0);
const { navigateTo } = useDashboard();
const commonValueStyle = {
background: 'linear-gradient(180deg, #9CF8F7 0%, #25BBFF 100%)',
......@@ -65,7 +66,7 @@ const Advertisement: React.FC = () => {
}, []);
return (
<div className={styles.container}>
<div className={styles.container} onClick={() => navigateTo('cityAppearance')}>
<Flex gap={15}>
<div className={styles.dataBox}>
<img
......
......@@ -9,9 +9,10 @@ import { Flex } from 'antd';
import dayjs from 'dayjs';
import React, { useEffect, useState } from 'react';
import styles from './index.less';
import { useDashboard } from '@/pages/Home_v_2504/components/context';
const CityLighting: React.FC = () => {
const { dispatch } = useGlobalModalServices();
const { navigateTo } = useDashboard();
const commonValueStyle = {
background: 'linear-gradient(180deg, #9CF8F7 0%, #25BBFF 100%)',
WebkitBackgroundClip: 'text',
......@@ -81,7 +82,7 @@ const CityLighting: React.FC = () => {
}, []);
return (
<div className={styles.container}>
<div className={styles.container} onClick={() => navigateTo('landscapeLighting')}>
<Flex gap={15}>
<div className={styles.dataBox}>
<img
......
......@@ -91,7 +91,7 @@ const ConstructionWaste: React.FC = () => {
return (
<div
className={styles.container}
// onClick={() => navigateTo('environment')}
onClick={() => navigateTo('constructionWaste')}
// style={{ cursor: 'pointer' }}
>
{/* 数据展示区 */}
......
......@@ -72,7 +72,7 @@ const HouseholdWaste: React.FC = () => {
return (
<div
className={styles.container}
// onClick={() => navigateTo('environment')}
onClick={() => navigateTo('domesticWaste')}
// style={{ cursor: 'pointer' }}
>
{/* 数据展示区 */}
......
......@@ -9,9 +9,10 @@ import { useRequest } from 'ahooks';
import { Flex } from 'antd';
import React from 'react';
import styles from './index.less';
import { useDashboard } from '@/pages/Home_v_2504/components/context';
const LawEnforcement: React.FC = () => {
const { dispatch } = useGlobalModalServices();
const { navigateTo } = useDashboard();
const commonValueStyle = {
background: 'linear-gradient(180deg, #9CF8F7 0%, #25BBFF 100%)',
WebkitBackgroundClip: 'text',
......@@ -44,7 +45,7 @@ const LawEnforcement: React.FC = () => {
};
return (
<div className={styles.container}>
<div className={styles.container} onClick={() => navigateTo('lawEnforcementPunishment')}>
<Flex gap={15}>
<div className={styles.dataBox}>
<img src={industry6_1} alt="" className={styles.bgImage} />
......
......@@ -10,9 +10,11 @@ import { Flex } from 'antd';
import dayjs from 'dayjs';
import React from 'react';
import styles from './index.less';
import { useDashboard } from '@/pages/Home_v_2504/components/context';
const MunicipalFacilities: React.FC = () => {
const { dispatch } = useGlobalModalServices();
const { navigateTo } = useDashboard();
const commonValueStyle = {
background: 'linear-gradient(180deg, #9CF8F7 0%, #25BBFF 100%)',
......@@ -110,7 +112,7 @@ const MunicipalFacilities: React.FC = () => {
);
return (
<div className={styles.container}>
<div className={styles.container} onClick={() => navigateTo('municipal')}>
<Flex gap={15}>
<div className={styles.dataBox}>
<img
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment