Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
34a373ae
Commit
34a373ae
authored
Sep 24, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分类列表优化
parent
f4b81b21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
src/common/Loading/index.js
+10
-4
src/components/classify/courselist.js
+3
-0
src/components/classify/courselist.scss
+4
-0
No files found.
src/common/Loading/index.js
View file @
34a373ae
...
...
@@ -36,12 +36,18 @@ class Loading extends Component {
})
},
fake
)
}
else
{
if
(
prevProps
.
isLoading
!=
isLoading
)
{
this
.
setState
({
isLoading
})
if
(
prevProps
.
isLoading
)
{
this
.
setState
(
()
=>
(
{
isLoading
:
false
})
)
}
}
}
else
{
if
(
prevProps
.
isLoading
!==
isLoading
)
{
this
.
setState
(()
=>
({
isLoading
:
true
}))
}
}
}
...
...
src/components/classify/courselist.js
View file @
34a373ae
...
...
@@ -82,6 +82,9 @@ class Classify extends Component {
// 获取课程接口
getList
=
()
=>
{
const
_this
=
this
_this
.
setState
((
state
,
props
)
=>
({
isLoading
:
true
}));
http
.
get
(
`
${
API
.
home
}
/m/course/list/
${
getParam
(
'id'
)}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
_this
.
setState
({
...
...
src/components/classify/courselist.scss
View file @
34a373ae
...
...
@@ -29,6 +29,10 @@ html,body,#root {
background
:
#fff
;
}
.am-tabs-top
{
height
:
93vh
;
}
.v-list-item
{
padding
:
10px
0
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment