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
f4a1d98f
Commit
f4a1d98f
authored
Mar 12, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时免费分类页
parent
13150b30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
src/components/classify/courselist.js
+11
-12
No files found.
src/components/classify/courselist.js
View file @
f4a1d98f
...
@@ -82,7 +82,7 @@ class Classify extends Component {
...
@@ -82,7 +82,7 @@ class Classify extends Component {
// 获取课程接口
// 获取课程接口
getList
=
()
=>
{
getList
=
()
=>
{
const
_this
=
this
const
_this
=
this
_this
.
setState
((
state
,
props
)
=>
({
_this
.
setState
((
state
,
props
)
=>
({
isLoading
:
true
isLoading
:
true
}));
}));
http
.
get
(
`
${
API
.
home
}
/m/course/list/
${
getParam
(
'id'
)}
`
).
then
((
res
)
=>
{
http
.
get
(
`
${
API
.
home
}
/m/course/list/
${
getParam
(
'id'
)}
`
).
then
((
res
)
=>
{
...
@@ -180,9 +180,9 @@ class Classify extends Component {
...
@@ -180,9 +180,9 @@ class Classify extends Component {
renderTabBar
=
{
props
=>
{
renderTabBar
=
{
props
=>
{
return
(
return
(
<
Sticky
>
<
Sticky
>
{({
style
})
=>
{
{({
style
})
=>
{
return
(
return
(
<
div
style
=
{{
...
style
,
top
:
`
${
this
.
state
.
top
}
px`
,
zIndex
:
1
}}
>
<
div
style
=
{{...
style
,
top
:
`
${
this
.
state
.
top
}
px`
,
zIndex
:
1
}}
>
<
Tabs
.
DefaultTabBar
{...
props
}
/
>
<
Tabs
.
DefaultTabBar
{...
props
}
/
>
<
/div
>
<
/div
>
)
)
...
@@ -202,19 +202,18 @@ class Classify extends Component {
...
@@ -202,19 +202,18 @@ class Classify extends Component {
<
/p
>
<
/p
>
<
p
className
=
'contact text-overflow-2'
>
{
item
.
desc
}
<
/p
>
<
p
className
=
'contact text-overflow-2'
>
{
item
.
desc
}
<
/p
>
<
div
className
=
'des'
>
<
div
className
=
'des'
>
{
!
item
.
is_buy
&&
<
p
className
=
"course-price"
>
<
span
className
=
"new"
>
¥
{
item
.
price1
}
<
/span
>
<
span
className
=
"old"
>
¥
{
item
.
price0
}
<
/span
>
<
/p
>
}
{
item
.
is_buy
&&
<
span
className
=
"isbuy"
>
已购买
<
/span
>
}
{
{
false
&&
<
div
className
=
"limit-free"
>
!
item
.
is_buy
?
item
.
is_restricted
?
<
div
className
=
"limit-free"
>
<
span
>
限时免费
<
/span
>
<
span
>
限时免费
<
/span
>
<
span
>
¥
{
item
.
price0
}
<
/span
>
<
span
>
¥
{
item
.
price0
}
<
/span
>
<
/div
>
<
/div
>
:
<
p
className
=
"course-price"
>
<
span
className
=
"new"
>
¥
{
item
.
price1
}
<
/span
>
<
span
className
=
"old"
>
¥
{
item
.
price0
}
<
/span
>
<
/p
>
:
<
span
className
=
"isbuy"
>
已购买
<
/span
>
}
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
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