Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/ZJU-CC98/Forum into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sgjsakura committed Jan 21, 2020
2 parents 9507041 + b554c22 commit a2a8715
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
27 changes: 18 additions & 9 deletions CC98.Forum/CC98.Forum/Pages/AnnualReview/page5.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
} from "bizcharts";

export default class extends React.Component<{ data }> {

getBoardUrlById(boardId) {
return "/board/" + boardId;
}
Expand All @@ -29,13 +28,25 @@ export default class extends React.Component<{ data }> {
if (data.postCount06 > 0) {
during = "深夜";
}
if (data.postCount612 > data.postCount06) {
if (
data.postCount612 > data.postCount06 &&
data.postCount612 > data.postCount1218 &&
data.postCount612 > data.postCount1824
) {
during = "上午";
}
if (data.postCount1218 > data.postCount612) {
if (
data.postCount1218 > data.postCount06 &&
data.postCount1218 > data.postCount612 &&
data.postCount1218 > data.postCount1824
) {
during = "下午";
}
if (data.postCount1824 > data.postCount1218) {
if (
data.postCount1824 > data.postCount06 &&
data.postCount1824 > data.postCount1218 &&
data.postCount1824 > data.postCount612
) {
during = "晚上";
}

Expand All @@ -53,17 +64,15 @@ export default class extends React.Component<{ data }> {
};
return (
<div className="annual-review-page">

{during && (
<div style={{ marginTop: "7rem", marginBottom: "-2rem" }}>
你最喜欢在<span className="annual-review-page1-during">{during}</span>
你最喜欢在
<span className="annual-review-page1-during">{during}</span>
水98。
</div>
)}

<div style={{ marginTop: "3rem" }}>
你发言的时间段统计如下:
</div>
<div style={{ marginTop: "3rem" }}>你发言的时间段统计如下:</div>

<div style={{ marginTop: "1rem", marginRight: "2rem" }}>
<Chart
Expand Down
4 changes: 2 additions & 2 deletions CC98.Forum/CC98.Forum/Pages/AnnualReview/page6.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export default class extends React.Component<{ data }> {
return (
<div className="annual-review-page">
<div>你获得了以下成就:</div>
<div style={{ display: "flex", justifyContent: "space-around",marginTop:"0.5rem" }}>
<div style={{ display: "flex", justifyContent: "space-around",marginTop:"0.5rem" ,marginLeft: '1rem', marginRight: '1rem', flexWrap: 'wrap'}}>
{achievements.map((item, index) => (
<Tag
style={{ fontSize: "2vh", height: "3vh", lineHeight: "2.5vh" }}
style={{ fontSize: "2vh", height: "3vh", lineHeight: "2.5vh", marginBottom: '0.5rem' }}
color={colors[index % 4]}
>
{item}
Expand Down

0 comments on commit a2a8715

Please sign in to comment.