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
117b84fb
Commit
117b84fb
authored
Nov 15, 2019
by
FE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pythonClass' of gitlab.julyedu.com:baiguangyao/mr-julyedu into pythonClass
parents
00422019
d68f2fdb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
14 deletions
+73
-14
src/components/python/pythomDes/Description/index.js
+16
-5
src/components/python/pythomDes/Description/index.scss
+51
-3
src/components/python/pythomDes/index.js
+6
-6
No files found.
src/components/python/pythomDes/Description/index.js
View file @
117b84fb
...
@@ -5,11 +5,13 @@ export default class Description extends Component {
...
@@ -5,11 +5,13 @@ export default class Description extends Component {
render
()
{
render
()
{
return
(
return
(
<
div
className
=
{
'description'
}
>
<
div
className
=
{
'description'
}
>
<
p
>
课
/
程
/
介
/
绍
<
/p
>
<
p
className
=
{
'title'
}
>
课
/
程
/
介
/
绍
<
/p
>
<
p
>
对话式交互教学
+
课后实操,
20
节课全面掌握
Python
基础语法
<
/p
>
<
p
className
=
{
'sub__title'
}
>
对话式交互教学
+
课后实操,
20
节课全面掌握
Python
基础语法
<
/p
>
<
img
/>
<
img
src
=
{
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/diannao.png'
}
/
>
{
{
this
.
props
.
list
.
map
((
item
,
index
)
=>
{
return
<
DesList
item
=
{
item
}
key
=
{
index
}
><
/DesList
>
})
}
}
<
/div
>
<
/div
>
)
)
...
@@ -17,5 +19,14 @@ export default class Description extends Component {
...
@@ -17,5 +19,14 @@ export default class Description extends Component {
}
}
function
DesList
(
props
)
{
function
DesList
(
props
)
{
const
{
url
,
title
,
subTitle
}
=
props
.
item
;
return
(
<
div
className
=
{
'des__container'
}
>
<
img
src
=
{
url
}
alt
=
""
/>
<
div
>
<
p
className
=
{
'item__title'
}
>
{
title
}
<
/p
>
<
p
className
=
{
'item__sub'
}
>
{
subTitle
}
<
/p
>
<
/div
>
<
/div
>
)
}
}
src/components/python/pythomDes/Description/index.scss
View file @
117b84fb
.description
{
.description
{
width
:
100%
;
}
background
:
#0099ff
;
\ No newline at end of file
display
:
flex
;
flex-direction
:
column
;
justify-content
:
flex-start
;
align-items
:
center
;
padding
:
32px
0
38px
0
;
.title
{
font-size
:
22px
;
font-weight
:
600
;
color
:
rgba
(
255
,
255
,
255
,
1
);
margin-bottom
:
12px
;
}
.sub__title
{
font-size
:
12px
;
font-weight
:
300
;
color
:
rgba
(
255
,
255
,
255
,
1
);
margin-bottom
:
40px
;
}
img
{
width
:
290px
;
height
:
170px
;
}
.des__container
{
width
:
100%
;
height
:
64px
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
padding-left
:
50px
;
margin-top
:
28px
;
img
{
width
:
64px
;
height
:
64px
;
margin-right
:
12px
;
}
.item__title
{
font-size
:
16px
;
font-weight
:
600
;
color
:
rgba
(
255
,
255
,
255
,
1
);
margin-bottom
:
10px
;
line-height
:
16px
;
}
.item__sub
{
font-size
:
12px
;
font-weight
:
400
;
color
:
rgba
(
255
,
255
,
255
,
1
);
line-height
:
12px
;
}
}
}
src/components/python/pythomDes/index.js
View file @
117b84fb
import
React
,
{
Component
}
from
'react'
import
React
,
{
Component
}
from
'react'
import
'./index.scss'
import
'./index.scss'
import
Description
from
'./Description'
;
import
Description
from
'./Description
/index.js
'
;
export
default
class
PythonDes
extends
Component
{
export
default
class
PythonDes
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -42,15 +42,15 @@ export default class PythonDes extends Component {
...
@@ -42,15 +42,15 @@ export default class PythonDes extends Component {
}
}
],
],
desList
:
[
desList
:
[
{
url
:
''
,
title
:
'全新课程形式'
,
subTitle
:
'对话式交互教学,轻松、生动、不无聊'
},
{
url
:
'
https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xingshi.png
'
,
title
:
'全新课程形式'
,
subTitle
:
'对话式交互教学,轻松、生动、不无聊'
},
{
url
:
''
,
title
:
'在线编程环境'
,
subTitle
:
'无需安装任何编程软件'
},
{
url
:
'
https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/huanjing.png
'
,
title
:
'在线编程环境'
,
subTitle
:
'无需安装任何编程软件'
},
{
url
:
''
,
title
:
'20天零基础入门'
,
subTitle
:
'降低学习门槛,20天入门人工智能'
},
{
url
:
'
https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/rumen.png
'
,
title
:
'20天零基础入门'
,
subTitle
:
'降低学习门槛,20天入门人工智能'
},
]
]
}
}
}
}
render
()
{
render
()
{
const
{
defineList
}
=
this
.
state
;
const
{
defineList
,
desList
}
=
this
.
state
;
return
(
return
(
<
div
className
=
{
'python__des'
}
>
<
div
className
=
{
'python__des'
}
>
<
div
className
=
{
'des__start'
}
><
/div
>
<
div
className
=
{
'des__start'
}
><
/div
>
...
@@ -79,7 +79,7 @@ export default class PythonDes extends Component {
...
@@ -79,7 +79,7 @@ export default class PythonDes extends Component {
<
div
className
=
{
'sign__now'
}
>
立即报名
<
/div
>
<
div
className
=
{
'sign__now'
}
>
立即报名
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
Description
><
/Description
>
<
Description
list
=
{
desList
}
><
/Description
>
<
/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