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
f9f64d94
Commit
f9f64d94
authored
Nov 22, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹窗
parent
7a61d16d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
src/components/python/pythonStudy/index.js
+6
-10
No files found.
src/components/python/pythonStudy/index.js
View file @
f9f64d94
...
@@ -61,15 +61,11 @@ class PythonStudy extends Component {
...
@@ -61,15 +61,11 @@ class PythonStudy extends Component {
console
.
log
(
key
);
console
.
log
(
key
);
}
}
toPython
Study
=
(
id
,
isUnlock
)
=>
{
toPython
Home
=
(
isUnlock
)
=>
{
if
(
isUnlock
==
1
)
{
if
(
isUnlock
==
1
)
{
location
.
href
=
`/test/pythonStudy/
${
id
}
`
this
.
setState
({
}
toApp
:
true
}
})
toPythonHomeWork
=
(
id
,
isUnlock
)
=>
{
if
(
isUnlock
==
1
)
{
location
.
href
=
`/test/pythonHomeWork?id=
${
id
}
`
}
}
}
}
...
@@ -137,7 +133,7 @@ class PythonStudy extends Component {
...
@@ -137,7 +133,7 @@ class PythonStudy extends Component {
<
div
className
=
"python-study__subject"
<
div
className
=
"python-study__subject"
style
=
{{
opacity
:
lessonsItem
.
info
.
is_unlock
==
0
?
'.6'
:
'1'
}}
style
=
{{
opacity
:
lessonsItem
.
info
.
is_unlock
==
0
?
'.6'
:
'1'
}}
onClick
=
{()
=>
{
onClick
=
{()
=>
{
this
.
toPython
Study
(
lessonsItem
.
video_id
,
lessonsItem
.
info
.
is_unlock
)
this
.
toPython
Home
(
lessonsItem
.
info
.
is_unlock
)
}}
}}
key
=
{
index
}
>
key
=
{
index
}
>
<
img
className
=
"python-study__subject-icon"
<
img
className
=
"python-study__subject-icon"
...
@@ -163,7 +159,7 @@ class PythonStudy extends Component {
...
@@ -163,7 +159,7 @@ class PythonStudy extends Component {
<
div
className
=
"python-study__subject"
<
div
className
=
"python-study__subject"
style
=
{{
opacity
:
item
.
is_unlock
==
0
?
'.6'
:
'1'
}}
style
=
{{
opacity
:
item
.
is_unlock
==
0
?
'.6'
:
'1'
}}
onClick
=
{()
=>
{
onClick
=
{()
=>
{
this
.
toPythonHome
Work
(
item
.
id
,
item
.
is_unlock
)
this
.
toPythonHome
(
item
.
is_unlock
)
}}
}}
key
=
{
index
}
>
key
=
{
index
}
>
<
img
className
=
"python-study__subject-icon"
<
img
className
=
"python-study__subject-icon"
...
...
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