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
0a3dc31c
Commit
0a3dc31c
authored
Nov 15, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程介绍
parent
a130082d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
12 deletions
+72
-12
src/components/python/pythomDes/Description/index.js
+16
-5
src/components/python/pythomDes/Description/index.scss
+50
-1
src/components/python/pythomDes/index.js
+6
-6
No files found.
src/components/python/pythomDes/Description/index.js
View file @
0a3dc31c
...
...
@@ -5,11 +5,13 @@ export default class Description extends Component {
render
()
{
return
(
<
div
className
=
{
'description'
}
>
<
p
>
课
/
程
/
介
/
绍
<
/p
>
<
p
>
对话式交互教学
+
课后实操,
20
节课全面掌握
Python
基础语法
<
/p
>
<
img
src
=
{}
/
>
<
p
className
=
{
'title'
}
>
课
/
程
/
介
/
绍
<
/p
>
<
p
className
=
{
'sub__title'
}
>
对话式交互教学
+
课后实操,
20
节课全面掌握
Python
基础语法
<
/p
>
<
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
>
)
...
...
@@ -17,5 +19,14 @@ export default class Description extends Component {
}
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 @
0a3dc31c
.description
{
width
:
100%
;
background
:
#0099ff
;
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 @
0a3dc31c
import
React
,
{
Component
}
from
'react'
import
'./index.scss'
import
Description
from
'./Description'
;
import
Description
from
'./Description
/index.js
'
;
export
default
class
PythonDes
extends
Component
{
constructor
(
props
)
{
...
...
@@ -42,15 +42,15 @@ export default class PythonDes extends Component {
}
],
desList
:
[
{
url
:
''
,
title
:
'全新课程形式'
,
subTitle
:
'对话式交互教学,轻松、生动、不无聊'
},
{
url
:
''
,
title
:
'在线编程环境'
,
subTitle
:
'无需安装任何编程软件'
},
{
url
:
''
,
title
:
'20天零基础入门'
,
subTitle
:
'降低学习门槛,20天入门人工智能'
},
{
url
:
'
https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xingshi.png
'
,
title
:
'全新课程形式'
,
subTitle
:
'对话式交互教学,轻松、生动、不无聊'
},
{
url
:
'
https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/huanjing.png
'
,
title
:
'在线编程环境'
,
subTitle
:
'无需安装任何编程软件'
},
{
url
:
'
https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/rumen.png
'
,
title
:
'20天零基础入门'
,
subTitle
:
'降低学习门槛,20天入门人工智能'
},
]
}
}
render
()
{
const
{
defineList
}
=
this
.
state
;
const
{
defineList
,
desList
}
=
this
.
state
;
return
(
<
div
className
=
{
'python__des'
}
>
<
div
className
=
{
'des__start'
}
><
/div
>
...
...
@@ -79,7 +79,7 @@ export default class PythonDes extends Component {
<
div
className
=
{
'sign__now'
}
>
立即报名
<
/div
>
<
/div
>
<
/div
>
<
Description
><
/Description
>
<
Description
list
=
{
desList
}
><
/Description
>
<
/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