Skip to content

Commit

Permalink
fix: 年度报告
Browse files Browse the repository at this point in the history
- 部分文案修改
- 校对了所有标点
- 取消了所有单位的样式
  • Loading branch information
adddna committed Jan 16, 2020
1 parent 05389fa commit a6ae7e3
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 40 deletions.
15 changes: 8 additions & 7 deletions CC98.Forum/CC98.Forum/Pages/AnnualReview/page1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,34 @@ export default class extends React.Component<{ data }> {
<div>
在过去的2019年里,你有
<span className="annual-review-page2-topicCount">
{data.postDay}
{data.postDay}
</span>
</div>

<div>在CC98论坛上留下了痕迹。</div>

<div style={{ marginTop: '1rem' }}>
你发表了
<span className="annual-review-page2-topicCount">
{data.topicCount}
{data.topicCount}
</span>
主题帖
个主题帖
</div>
<div>
进行了
<span className="annual-review-page2-replyCount">
{data.replyCount}
{data.replyCount}
</span>
回复
次回复
</div>
{data.hotTopicCount !== 0 && (
<div>
上了
<span className="annual-review-page2-hotTopicCount">
{data.hotTopicCount}
{data.hotTopicCount}
</span>
十大热门话题
次十大热门话题
</div>
)}
{data.hotTopicCount === 0 && (
Expand Down
41 changes: 27 additions & 14 deletions CC98.Forum/CC98.Forum/Pages/AnnualReview/page2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,50 +8,63 @@ export default class extends React.Component<{ data }> {
<div style={{ marginTop: "1rem" }}>
你送出了
<span className="annual-review-page2-topicCount">
{data.sendLikeCount}
{data.sendLikeCount}
</span>
个赞
</div>
<div>
收到他人给你的
<span className="annual-review-page2-replyCount">
{data.receiveLikeCount}
{data.receiveLikeCount}
</span>
个赞
</div>

<div style={{ marginTop: "1.5rem" }}>
你给他人评分
<span className="annual-review-page2-topicCount">
{data.sendRateCount}次,
{data.sendRateCount}
</span>
次,
</div>
<div>
收到了他人给你的
<span className="annual-review-page2-replyCount">
{data.receiveRateCount}
{data.receiveRateCount}
</span>
评分
次评分
</div>

{data.sofaCount > 0 && (
{data.sofaCount > 20 && (
<>
<div style={{ marginTop: '1.5rem' }}>你眼疾手快,</div>
<div style={{ marginTop: '1.5rem' }}>你眼疾手快</div>
<div>
抢到了
<span className="annual-review-page2-replyCount">
{data.sofaCount}
{data.sofaCount}
</span>
沙发。
次沙发。
</div>
</>
)}

{data.sofaCount <= 20 && data.sofaCount > 0 &&(
<>
<div style={{ marginTop: '1.5rem' }}>你手速尚可,</div>
<div>
抢到了
<span className="annual-review-page2-replyCount">
{data.sofaCount}
</span>
次沙发。
</div>
</>
)}

{data.sofaCount === 0 && (
<>
<div style={{ marginTop: '1.5rem' }}>你从未抢到过沙发。</div>
<div>2020年,给自己一个目标:</div>
<div>抢到一次沙发!</div>
<div style={{ marginTop: '1.5rem' }}>你佛系水帖,</div>
<div>从未抢到过沙发。</div>
</>
)}
</div>
Expand Down
46 changes: 29 additions & 17 deletions CC98.Forum/CC98.Forum/Pages/AnnualReview/page3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,60 @@ export default class extends React.Component<{ data }> {
return (
<div className="annual-review-page">
在过去的一年里,你还没有发过主题帖...
</div>
</div>
);
}
return <div className="annual-review-page">
<div>在你一年发表的主题帖中,</div>
{data.mostReplyTopicCount && (
<div>
<>
<div>
收到最多回复的一次,
</div>
<div>
共有
<span className="annual-review-page2-topicCount">
{data.mostReplyTopicCount}
{data.mostReplyTopicCount}
</span>
回复
个回复
</div>
</div>
)
}
</>
)}

{
data.mostViewTopicCount && (
<div>
<>
<div>
点击量最多的一次,
</div>
<div>
共有
<span className="annual-review-page2-replyCount">
{data.mostViewTopicCount}
</span>
点击
{data.mostViewTopicCount}
</span>
次点击
</div>
</div>
</>
)
}

{data.mostReceiveLikePostCount !== 0 && <div style={{ marginTop: '2rem' }}>你收获他人点赞最多的一个发言,</div>}
{data.mostReceiveLikePostCount !== 0 && <div>共收到了<span className="annual-review-page2-hotTopicCount">{data.mostReceiveLikePostCount}</span>赞。</div>}


</div >
{
data.mostReceiveLikePostCount !== 0 && (
<div style={{ marginTop: '2rem' }}>
你收获他人点赞最多的一个发言,
</div>
)}
{
data.mostReceiveLikePostCount !== 0 && (
<div>
共收到了
<span className="annual-review-page2-hotTopicCount">
{data.mostReceiveLikePostCount}
</span>
个赞。
</div>
)}
</div>
}

}
2 changes: 1 addition & 1 deletion CC98.Forum/CC98.Forum/Pages/AnnualReview/page4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class extends React.Component<{ data }> {
<div>
{" "}
<span className="annual-review-page2-topicCount">
{moment(data.latestPostTime).format("a h [点] mm [分]")}
{moment(data.latestPostTime).format("a hh [:] mm")}
</span>
还在98发言。
</div>
Expand Down
2 changes: 1 addition & 1 deletion CC98.Forum/CC98.Forum/Pages/AnnualReview/page5.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class extends React.Component<{ data }> {
)}

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

<div style={{ marginTop: "1rem", marginRight: "2rem" }}>
Expand Down

0 comments on commit a6ae7e3

Please sign in to comment.