diff --git a/src/assets/topic/topic_banner1.jpg b/src/assets/topic/topic_banner1.jpg deleted file mode 100644 index fd0daad..0000000 Binary files a/src/assets/topic/topic_banner1.jpg and /dev/null differ diff --git a/src/assets/topic/topic_example1.jpg b/src/assets/topic/topic_example1.jpg deleted file mode 100644 index e8e9508..0000000 Binary files a/src/assets/topic/topic_example1.jpg and /dev/null differ diff --git a/src/assets/topic/topic_example2.jpg b/src/assets/topic/topic_example2.jpg deleted file mode 100644 index 85d67db..0000000 Binary files a/src/assets/topic/topic_example2.jpg and /dev/null differ diff --git a/src/assets/topic/topic_example3.jpg b/src/assets/topic/topic_example3.jpg deleted file mode 100644 index 6f9f06e..0000000 Binary files a/src/assets/topic/topic_example3.jpg and /dev/null differ diff --git a/src/assets/topic/topic_example4.jpg b/src/assets/topic/topic_example4.jpg deleted file mode 100644 index 3345b6e..0000000 Binary files a/src/assets/topic/topic_example4.jpg and /dev/null differ diff --git a/src/assets/topic/topic_example5.jpg b/src/assets/topic/topic_example5.jpg deleted file mode 100644 index fac92f5..0000000 Binary files a/src/assets/topic/topic_example5.jpg and /dev/null differ diff --git a/src/assets/topic/topic_example6.jpg b/src/assets/topic/topic_example6.jpg deleted file mode 100644 index 117bc2b..0000000 Binary files a/src/assets/topic/topic_example6.jpg and /dev/null differ diff --git a/src/assets/topic/topic_header_img.png b/src/assets/topic/topic_header_img.png new file mode 100644 index 0000000..5e83f9e Binary files /dev/null and b/src/assets/topic/topic_header_img.png differ diff --git a/src/pages/PartyMemberTopic/Home/index.less b/src/pages/PartyMemberTopic/Home/index.less index dfb0aff..52972e1 100644 --- a/src/pages/PartyMemberTopic/Home/index.less +++ b/src/pages/PartyMemberTopic/Home/index.less @@ -25,20 +25,77 @@ margin: 0; .left-carousel { - margin-bottom: -8px; .carousel-content { height: 584px; - color: #fff; - line-height: 584px; - text-align: center; - background: #364d79; + width: 1139px; + background-repeat: no-repeat; + background-size: 100%; + display: flex; + align-items: flex-end; + + .carousel-textbg { + background: rgba(0, 0, 0, 0.6); + display: flex; + justify-content: center; + width: 100%; + padding: 12px 0px 32px; + + .carousel-text { + color: #fff; + width: 812px; + + .carousel-text-content { + font-weight: bold; + font-size: 32px; + line-height: 36px; + } + + .carousel-text-click { + font-size: 14px; + margin-left: 10px; + } + } + } } } + .left-carousel .slick-dots-bottom { + bottom: 0; + } + .left-activity { height: 103px; - background-image: url("~@/assets/topic/topic_activity_gradient.jpg") + background-image: url("~@/assets/topic/topic_activity_gradient.jpg"); + display: flex; + justify-content: left; + + .left-activity-marquee { + height: 103px; + width: 940px; + padding-left: 45px; + + .left-activity-scroll { + height: 103px; + display: flex; + justify-content: space-around; + align-items: center; + + .left-activity-scroll-content { + font-size: 18px; + color: #fff; + margin-right: 20px; + + .left-activity-scroll-end { + margin-top: 4px; + } + } + + .left-activity-scroll-content .left-activity-scroll-name { + font-weight: bold; + } + } + } } .left-card { @@ -361,4 +418,75 @@ } +} + +.topic-home-modal .ant-modal-content { + border-radius: 8px; +} + +.topic-home-modal .ant-modal-content .ant-modal-header { + border-top-left-radius: 8px; + border-top-right-radius: 8px; + background: #da3232; + padding: 0; + height: 45px; + + .bottom-modal-header { + display: flex; + justify-content: left; + align-items: center; + padding: 0 20px; + + .bottom-modal-headertext { + font-size: 20px; + font-family: '黑体'; + color: #fff; + width: 100%; + text-align: center; + position: relative; + right: 20px; + } + } +} + +.topic-home-modal .ant-modal-content .ant-modal-body { + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; + background: #eeeeee; + padding: 12px; +} + +.topic-home-modal .ant-modal-content .ant-modal-body .bottom-modal-body { + .radio-group { + padding: 0 40px 8px; + + .radio-content { + font-size: 17.16px; + font-family: '黑体'; + color: #939393; + margin-left: 12px; + } + } + + .bottom-modal-textarea { + resize: none; + border-radius: 8px; + } + + .bottom-modal-submit { + display: flex; + justify-content: space-between; + align-items: center; + margin-top: 8px; + + .submit-text { + color: #939393; + } + + .submit-button { + border-radius: 8px; + background: #d44026; + margin-left: 8px; + } + } } \ No newline at end of file diff --git a/src/pages/PartyMemberTopic/Home/index.tsx b/src/pages/PartyMemberTopic/Home/index.tsx index 14dff50..403b39f 100644 --- a/src/pages/PartyMemberTopic/Home/index.tsx +++ b/src/pages/PartyMemberTopic/Home/index.tsx @@ -1,17 +1,12 @@ -import React, { useEffect } from 'react'; +import React, { useEffect, useRef, useState } from 'react'; import './index.less'; -import { Carousel, Col, Divider, List, Row } from 'antd'; +import { Button, Carousel, Col, Divider, Input, List, message, Modal, Radio, RadioChangeEvent, Row, Spin } from 'antd'; import * as echarts from 'echarts'; +import Marquee from 'react-fast-marquee'; import topic_header from '@/assets/topic/topic_header.jpg' import topic_activity_logo from '@/assets/topic/topic_activity_logo.png' import topic_red_flag from '@/assets/topic/topic_red_flag.png' import topic_other from '@/assets/topic/topic_other.png' -import topic_example1 from '@/assets/topic/topic_example1.jpg' -import topic_example2 from '@/assets/topic/topic_example2.jpg' -import topic_example3 from '@/assets/topic/topic_example3.jpg' -import topic_example4 from '@/assets/topic/topic_example4.jpg' -import topic_example5 from '@/assets/topic/topic_example5.jpg' -import topic_example6 from '@/assets/topic/topic_example6.jpg' import topic_project_picture from '@/assets/topic/topic_project_picture.jpg' import topic_bottom_button from '@/assets/topic/topic_bottom_button.png' import topic_right_material from '@/assets/topic/topic_right_material.png' @@ -21,7 +16,11 @@ import topic_totalamount from '@/assets/topic/topic_totalamount.png' import topic_totalnumber from '@/assets/topic/topic_totalnumber.png' import topic_commodity from '@/assets/topic/topic_commodity.png' import topic_protocol from '@/assets/topic/topic_protocol.png' -import topic_banner1 from '@/assets/topic/topic_banner1.jpg' +import topic_header_img from '@/assets/topic/topic_header_img.png' +import { getHomeActivity, getHomeBanner, getHomeContact, getHomeGraceful, getHomeProject, getHomeRight, submitAdvice } from './service'; +import { getFilelist } from '@/services/download_'; +import { pictureDisplayPath } from '@/utils/DownloadUtils'; +import moment from 'moment'; const LeftCardTop = (props: any) => { return ( @@ -51,26 +50,28 @@ const RightDisplayTitle = (props: any) => { const RightDisplayContent = (props: any) => { return ( -