Commit 6fa67f79 by zhanghaozhe

去选课跳转路由

parent 9e9ff746
...@@ -6,6 +6,7 @@ import { connect } from "react-redux" ...@@ -6,6 +6,7 @@ import { connect } from "react-redux"
import { fetchCoursesListIfNeeded, switchTab } from "./actions" import { fetchCoursesListIfNeeded, switchTab } from "./actions"
import InfiniteScroll from 'react-infinite-scroller' import InfiniteScroll from 'react-infinite-scroller'
import { debounce } from 'lodash' import { debounce } from 'lodash'
import { Link } from 'react-router-dom'
function getStudyTime(seconds) { function getStudyTime(seconds) {
...@@ -138,7 +139,7 @@ class MyCourses extends PureComponent { ...@@ -138,7 +139,7 @@ class MyCourses extends PureComponent {
<p><i className='iconfont iconfish'/></p> <p><i className='iconfont iconfish'/></p>
<p className='empty-prompt'>还是咸鱼一条,快去翻身~</p> <p className='empty-prompt'>还是咸鱼一条,快去翻身~</p>
<p> <p>
<button>去选课</button> <Link className='select-course' to='/classify'>去选课</Link>
</p> </p>
</div> </div>
) )
......
...@@ -83,7 +83,8 @@ ...@@ -83,7 +83,8 @@
color: $color_666; color: $color_666;
} }
button { .select-course {
display: block;
width: 131px; width: 131px;
height: 30px; height: 30px;
border: 1px solid $active; border: 1px solid $active;
...@@ -91,5 +92,7 @@ ...@@ -91,5 +92,7 @@
background: transparent; background: transparent;
color: $active; color: $active;
font-size: $font_16; font-size: $font_16;
text-align: center;
line-height: 30px;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment