Skip to content

Commit

Permalink
fix 根据标签请求文章列表
Browse files Browse the repository at this point in the history
  • Loading branch information
biaochenxuying committed Apr 14, 2019
1 parent 9a3ef64 commit 96c35dd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/components/slider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class SliderRight extends Component {
<Link
className="item"
key={item._id}
to={`/home?tag_id=${item._id}&tag_name=${item.name}&category_id=`}
to={`/articles?tag_id=${item._id}&tag_name=${item.name}&category_id=`}
>
<span key={item._id}>{item.name}</span>
</Link>
Expand Down
51 changes: 26 additions & 25 deletions src/components/slider/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -121,32 +121,33 @@
padding: 5px 10px;
border-radius: 5px;
background-color: red;
color: #fff;
color: #000;
margin: 10px 10px 0 0;
&:nth-child(2n) {
background-color: #1890ff;
}
&:nth-child(3n) {
background-color: #6fa1d1;
}
&:nth-child(4n) {
background-color: #f84d78;
}
&:nth-child(5n) {
background-color: #d675c1;
}
&:nth-child(6n) {
background-color: #4c9447;
}
&:nth-child(7n) {
background-color: #49b0bb;
}
&:nth-child(8n) {
background-color: #d0d675;
}
&:nth-child(9n) {
background-color: #de7b5d;
}
background-color: #eee;
// &:nth-child(2n) {
// background-color: #1890ff;
// }
// &:nth-child(3n) {
// background-color: #6fa1d1;
// }
// &:nth-child(4n) {
// background-color: #f84d78;
// }
// &:nth-child(5n) {
// background-color: #d675c1;
// }
// &:nth-child(6n) {
// background-color: #4c9447;
// }
// &:nth-child(7n) {
// background-color: #49b0bb;
// }
// &:nth-child(8n) {
// background-color: #d0d675;
// }
// &:nth-child(9n) {
// background-color: #de7b5d;
// }
}
}
.classification {
Expand Down

0 comments on commit 96c35dd

Please sign in to comment.