From 2ac0198bf2b7b5c0e86ab0b521db28d978067cf8 Mon Sep 17 00:00:00 2001
From: cxz66666 <1092889706@qq.com>
Date: Fri, 28 Aug 2020 23:54:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8D=A3=E8=AA=89=E7=AE=80?=
=?UTF-8?q?=E4=BB=8B=20=E4=BD=86=E6=98=AFless=E5=86=99=E7=9A=84=E5=A5=BD?=
=?UTF-8?q?=E5=83=8F=E6=9C=89=E5=A4=A7=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/Home/Feature3.jsx | 94 +++++++++++++
src/Home/data.source.js | 256 +++++++++++++++++++++++++++++++++++
src/Home/less/edit.less | 15 ++
src/Home/less/feature31.less | 52 +++++++
src/Home/main.jsx | 10 +-
5 files changed, 423 insertions(+), 4 deletions(-)
create mode 100644 src/Home/Feature3.jsx
create mode 100644 src/Home/less/feature31.less
diff --git a/src/Home/Feature3.jsx b/src/Home/Feature3.jsx
new file mode 100644
index 0000000..660c981
--- /dev/null
+++ b/src/Home/Feature3.jsx
@@ -0,0 +1,94 @@
+import React from "react";
+import QueueAnim from "rc-queue-anim";
+import TweenOne from "rc-tween-one";
+import { Row, Col } from "antd";
+import OverPack from "rc-scroll-anim/lib/ScrollOverPack";
+import { getChildrenToRender } from "./utils";
+
+class Content31 extends React.PureComponent {
+ getDelay = (e, b) => (e % b) * 100 + Math.floor(e / b) * 100 + b * 100;
+
+ render() {
+ const { ...props } = this.props;
+ const { dataSource, isMobile } = props;
+ delete props.dataSource;
+ delete props.isMobile;
+ let clearFloatNum = 0;
+ const children = dataSource.block.children.map((item, i) => {
+ const childObj = item.children;
+ const delay = isMobile ? i * 50 : this.getDelay(i, 24 / item.md);
+ const liAnim = {
+ opacity: 0,
+ type: "from",
+ ease: "easeOutQuad",
+ delay,
+ };
+ const childrenAnim = { ...liAnim, x: "+=10", delay: delay + 100 };
+ clearFloatNum += item.md;
+ clearFloatNum = clearFloatNum > 24 ? 0 : clearFloatNum;
+ return (
+
+
+ 协会荣誉
+
+
仅摘取近期部分荣誉展示
+ + + + ), + }, + ], + }, + block: { + className: "content3-block-wrapper", + children: [ + { + name: "block0", + className: "content3-block", + md: 8, + xs: 24, + children: { + icon: { + className: "content3-icon", + children: + "https://zos.alipayobjects.com/rmsportal/ScHBSdwpTkAHZkJ.png", + }, + textWrapper: { className: "content3-text" }, + title: { + className: "content3-title", + children: ( + +五星级社团
+ + ), + }, + content: { + className: "content3-content keedl4m5lk-editor_css", + children: ( + + + +
+ 2016年协会荣升为浙江大学五星级社团,至今
+ 已经连续四年保持这一称号
+
+
十佳社团
+ + ), + }, + content: { + className: "content3-content keedn4gkykf-editor_css", + children: ( + ++ 2016-2019年连续获得三年十佳社团荣誉称号,近九年 + 累计获得七次十佳社团称号 +
+ + ), + }, + }, + }, + { + name: "block2", + className: "content3-block", + md: 8, + xs: 24, + children: { + icon: { + className: "content3-icon", + children: + "https://zos.alipayobjects.com/rmsportal/xMSBjgxBhKfyMWX.png", + }, + textWrapper: { className: "content3-text" }, + title: { + className: "content3-title", + children: ( + +五佳课程
+ + ), + }, + content: { + className: "content3-content keedi0sp7vt-editor_css", + children: ( + + ++ 近年来协会连续多次获得“五佳课程 + ”,“精品课程一等奖”等称号,精品课程也备受学员好评 +
+ + + ), + }, + }, + }, + { + name: "block3", + className: "content3-block", + md: 8, + xs: 24, + children: { + icon: { + className: "content3-icon", + children: + "https://zos.alipayobjects.com/rmsportal/MNdlBNhmDBLuzqp.png", + }, + textWrapper: { className: "content3-text" }, + title: { + className: "content3-title", + children: ( + +精品活动
+ + ), + }, + content: { + className: "content3-content keedtwaja47-editor_css", + children: ( + + ++ 在学生社团文化节上举办的精品活动多次获得奖项,2019年、2018年均获得二等奖 +
+ + + ), + }, + }, + }, + { + name: "block4", + className: "content3-block", + md: 8, + xs: 24, + children: { + icon: { + className: "content3-icon", + children: + "https://zos.alipayobjects.com/rmsportal/UsUmoBRyLvkIQeO.png", + }, + textWrapper: { className: "content3-text" }, + title: { + className: "content3-title", + children: ( + + + +公益先锋
+ + + + ), + }, + content: { + className: "content3-content", + children: ( + +
+ 2019年协会获得至美公益项目二等奖,同年获
+ “尚德学子”
+ 奖学金社会公益奖,2015年获年度浙江大学最美公益集体。
+
+
社会实践
+ + ), + }, + content: { + className: "content3-content", + children: ( + +
+ 2019年赴甘肃酒泉暑期社会实践团获杭州日报2019大学生社会实践擂台赛优秀奖、浙江大学优秀实践团队。2017年获浙江大学年度暑期大学生社会实践活动优秀论文
+
+