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
b0e54a0a
Commit
b0e54a0a
authored
Mar 13, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已购课程
parent
32fb53ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
11 deletions
+1
-11
src/components/purchased/index.js
+1
-11
No files found.
src/components/purchased/index.js
View file @
b0e54a0a
...
...
@@ -18,7 +18,6 @@ class Purchased extends Component {
componentDidMount
()
{
this
.
getList
()
this
.
limitFreeCountDown
()
}
// 获取订单
...
...
@@ -41,14 +40,6 @@ class Purchased extends Component {
history
.
push
(
`/detail?id=
${
id
}
`
)
// }));
}
limitFreeCountDown
=
timestamp
=>
{
//todo 联调
const
later
=
new
Date
(
timestamp
)
const
earlier
=
Date
.
now
()
return
dateCountDown
(
later
,
earlier
)
}
render
()
{
const
{
user
}
=
this
.
props
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
...
...
@@ -84,8 +75,7 @@ class Purchased extends Component {
<
/div
>
)
const
status
=
(
// item.is_aist && <span className='status'>返现</span>
<
span
className
=
'limit-free-status'
>
{
'*'
}
天
{
'*'
}
时
{
'*'
}
分后过期
<
/span
>
item
.
is_aist
&&
<
span
className
=
'status'
>
返现
<
/span
>
)
const
courseExpire
=
(
item
.
course_expire
&&
item
.
course_expire
!=
''
&&
...
...
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